Added authenication/authorization. Refactored api startup.
This commit is contained in:
@@ -1,6 +1,31 @@
|
||||
@host = http://localhost:5226
|
||||
@contentType = application/json
|
||||
|
||||
### Login
|
||||
POST {{host}}/auth/login
|
||||
Content-Type: {{contentType}}
|
||||
|
||||
{
|
||||
"Username": "brister",
|
||||
"Password": "password"
|
||||
}
|
||||
|
||||
### Logout
|
||||
POST {{host}}/auth/logout
|
||||
Content-Type: {{contentType}}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
### Get current user
|
||||
GET {{host}}/api/me
|
||||
Content-Type: {{contentType}}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
### Search tags by name
|
||||
POST {{host}}/api/tags/search
|
||||
Content-Type: {{contentType}}
|
||||
|
||||
Reference in New Issue
Block a user