go-cook/rest.http

21 lines
468 B
Plaintext
Raw Normal View History

2024-03-26 17:54:32 -07:00
###
POST http://localhost:1323/api/v1/register?username=test&password=test
###
POST http://localhost:1323/api/v1/login?username=test&password=test
###
GET http://localhost:1323/api/v1/demo/hello
###
GET http://localhost:1323/api/v1/demo/hello/james
###
GET http://localhost:1323/api/v1/demo/hello/body
Content-Type: application/json
2024-03-26 17:54:32 -07:00
{
"name": "body"
}
###
POST http://localhost:1323/api/v1/login?username=test
###
GET http://localhost:1323/api/v1/demo/protected