Download OpenAPI specification:Download
The rest api of a simple compliments system, just for learning porpouses.
If you not authenticated yet you should register yourself
Created user object
name | string |
string | |
password | string |
admin | boolean |
{- "name": "string",
- "email": "string",
- "password": "string",
- "admin": true
}
{- "id": 0,
- "name": "string",
- "password": "string",
- "admin": true,
- "created_at": "string",
- "updated_at": "string"
}
Will list all compliments which you have been the receiver
includes | Array of any Items Enum: "sender" "receiver" "tag" Idicates which entiry relation should be displayed on response |
[- {
- "id": "string",
- "user_sender": "string",
- "user_receiver": "string",
- "tag_id": "string",
- "message": "string",
- "created_at": "string"
}
]
If you not authenticated yet you should register yourself
Created user object
tag_id | string |
user_receiver | string |
message | string |
{- "tag_id": "string",
- "user_receiver": "string",
- "message": "string"
}
{- "id": "string",
- "user_sender": "string",
- "user_receiver": "string",
- "tag_id": "string",
- "message": "string",
- "created_at": "string"
}
You can create if you want use a new tag
Tag information
name | string |
{- "name": "string"
}
{- "id": "string",
- "name": "string",
- "created_at": "string",
- "updated_at": "string"
}
If you not authenticated yet you should ahthenticate getting your access token
Authenticates an user
string | |
password | string |
{- "email": "string",
- "password": "string"
}
{- "token": "string"
}