这是indexloc提供的服务,不要输入任何密码
Skip to content

atsushi130/practice-api

Repository files navigation

practice-api

practice-api is practice service for practice-ios

Bootstrap

❯ git clone https://github.com/atsushi130/practice-api
❯ cd practice-api
❯ docker-compose up --build

Create user

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"
}

Get Latest Items

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
    }
  }
]

Framework

  • spring-boot

Architecture

  • CleanArchitecture

License

practice-api is available under the MIT license. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published