@SaKu2110まで
-
[GET] /ping
- Request: なし
- Response: {"message": "ping"} / HttpStatusCode(200)
-
[POST] /signin
- Request: Header: UserId
string, Passwordstring - Response: {"token": 任意の文字列} / HttpStatusCode(200)
- Request: Header: UserId
-
[POST] /signup
- Request: Header: UserId
string, Passwordstring - Response: {"token": 任意の文字列} / HttpStatusCode(201)
- Request: Header: UserId
- git clone "URL about this repo"
- cd backend_tutorial
- cp .env.sample .env
- docker compose up
- curl -c cookie.txt -X POST --url http://localhost:8080/signup -d 'UserId=rintaro' -d 'Password=pass'
- curl -b cookie.txt -X POST --url http://localhost:8080/signin -d 'UserId=rintaro' -d 'Password=pass'