features/module-name #14
@ -2,12 +2,12 @@
|
|||||||
POST http://localhost:1323/api/v1/auth/register
|
POST http://localhost:1323/api/v1/auth/register
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
name=test&password=test1234!
|
username=test&password=test1234!
|
||||||
### Login with user
|
### Login with user
|
||||||
POST http://localhost:1323/api/v1/auth/login
|
POST http://localhost:1323/api/v1/auth/login
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
name=test&password=test1234!
|
username=test&password=test1234!
|
||||||
|
|
||||||
|
|
||||||
### Login with the admin token
|
### Login with the admin token
|
||||||
@ -23,7 +23,7 @@ Content-Type: application/json
|
|||||||
Authorization: Bearer
|
Authorization: Bearer
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "test",
|
"username": "test",
|
||||||
"scopes": [
|
"scopes": [
|
||||||
"recipe:create"
|
"recipe:create"
|
||||||
]
|
]
|
||||||
@ -35,7 +35,7 @@ Content-Type: application/json
|
|||||||
Authorization: Bearer
|
Authorization: Bearer
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "test",
|
"username": "test",
|
||||||
"scopes": [
|
"scopes": [
|
||||||
"recipe:create"
|
"recipe:create"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user