practice-api is practice service for practice-ios
❯ git clone https://github.com/atsushi130/practice-api
❯ cd practice-api
❯ docker-compose up --build
request
❯ curl localhost:8080/sign_up POST\
-H "OS: iOS"\
-H "OSVersion: 12.0.0"\
-H "AppVersion: 1.0.0"\
-H "Content-Type: application/json"\
-d '{ "userId": "atsushi130", "password": "password" }'
response
{
"sessionId": "5755BECA-1A85-4714-AF0C-4ECE06E5BE16",
"userId": "atsushi130"
}
request
❯ curl localhost:8080/latest_items GET\
-H "Cookie: sessionId=5755BECA-1A85-4714-AF0C-4ECE06E5BE16"\
-H "OS: iOS"\
-H "OSVersion: 12.0.0"\
-H "AppVersion: 1.0.0"
response
[
{
"id": 1,
"name": "NOMOS",
"subName": "NOMOS Metro wristwatch",
"registeredUserId": "atsushi130",
"wants": {
"state": false,
"count": 2
},
"haves": {
"state": false,
"count": 1
}
}
]
- spring-boot
- CleanArchitecture
practice-api is available under the MIT license. See the LICENSE file.