-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints Page
Pablo Hernandez edited this page Dec 21, 2021
·
5 revisions
Description of the endpoint available in the application
URI | Inputs | Outputs | Scope | Description |
---|---|---|---|---|
POST /api/users | $file.request | 201 Created $file | write | create user |
GET /api/auth/active.account/:token | token sent to email | 200 OK | write | active account of user |
POST /api/auth/# | $login.request | 200 OK $auth.response | read | get a authentication token |
POST /api/files | $file | 201 Created | write | upload a file |
GET /api/files/:id | file id | 200 OK $file | read | get a file |
PUT /api/files/:id | file id | 200 OK | write | replace a file |
GET /api/user/:id/files | user id | 200 OK | read | read all files by user id |
DELETE /api/files/:id | file id | 200 OK $string | delete | delete a file by id |
file.request
{
"username": "james.java01",
"firstName": "james",
"lastName": "gosling",
"numEmployee": 89678945,
"email": "test@test.com",
"password": "Admin123#"
}
file
{
"username": "james.java01",
"firstName": "james",
"lastName": "gosling",
"numEmployee": 89678945,
"email": "test@test.com",
"password": "Admin123#"
}
login.request
{
"username": "john.smith01",
"password": "Admin123#"
}
auth.response
{
"token": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJteS5maWxlcy5qd3QiLCJzdWIiOiJqYW1lcy5qYXZhMDEiLCJhdXRob3JpdGllcyI6WyJST0xFX1VTRVIiXSwiaWF0IjoxNjM5MzE5ODIyLCJleHAiOjE2MzkzMjU4MjJ9.g_B6dhRq34J7xLV4jKBb2tk4GIaJSPK-hoa6pxLD1rM",
"username": "john.smith01",
"time": "08:37:02 2021-12-12"
}