View Code? Open in Web Editor
NEW
License: GNU General Public License v3.0
basic-backend-server's Introduction
data |
type |
required |
id |
integer |
no |
email |
string |
yes |
username |
string |
yes |
password |
string |
yes |
data |
type |
required |
id |
integer |
no |
title |
string |
yes |
image url |
string |
yes |
story |
string |
no |
user_id |
integer |
no |
Method |
Endpoint |
Token Required |
Description |
|
POST |
api/auth/register |
no |
Registers a new user Required: email, username, and password. Returns .... |
|
POST |
api/auth/login |
no |
Signs in user and returns a token. Required: username and password. |
|
Method |
Endpoint |
Token Required |
Description |
GET |
api/posts |
yes |
Returns all posts |
GET |
api/posts/:id |
yes |
Returns a single post by id |
POST |
api/posts |
yes |
Returns newly added post |
PUT |
api/posts/:id |
yes |
Returns newly updated post |
DELETE |
api/posts/:id |
yes |
Deletes a single post |
basic-backend-server's People
Contributors
Watchers