hacktiv-overflow
URL : http://hacktiv-overflow.nafies.tech/
Base API url : http://api-hacktiv-overflow.nafies.tech/
Home
Route | Method | Request(s) | Response(s) | Description |
---|---|---|---|---|
/ |
GET | none |
200 OK |
Show Welcome to HacktivOverflow API in a JSON format |
User :
Route | Method | Request(s) | Response(s) | Description |
---|---|---|---|---|
/user/register |
POST | Body name: String email: String password: String |
Success201 CreatedError 500 Internal Server Error |
Create a user |
/user/login |
POST | Body email: String password: String |
Success200 OKError 400 Bad Request |
Sign a user in |
/user/:id |
POST | None |
Success200 OKError 400 Bad Request |
Get data a user |
Question :
Route | Method | Request(s) | Response(s) | Description |
---|---|---|---|---|
/questions |
POST | Headers token: String Body title: String description: String |
Success201 CreatedError 401 Authorization Error500 Internal Server Error |
Create a question |
/questions |
GET | HeadersNone |
Success200 OKError 400 Not Found 500 Internal Server Error |
Get all questions |
/questions/:id |
GET | Headers token: String |
Success200 OKError 401 Authorization Error500 Internal Server Error |
Get one question |
/questions/:id |
PUT | Headers token: String Body title: String content: String file: File |
Success200 OKError 401 Authorization Error500 Internal Server Error |
Update a question |
/questions/:id |
DELETE | Headers token: String |
Success200 OKError 401 Authorization Error500 Internal Server Error |
Delete a question |
Answer :
Route | Method | Request(s) | Response(s) | Description |
---|---|---|---|---|
/answers |
POST | Headers token: String Body title: String content: String |
Success201 CreatedError 401 Authorization Error500 Internal Server Error |
Create a answer |
/answers |
GET | HeadersNone |
Success200 OKError 401 Authorization Error500 Internal Server Error |
Get all answers |
/answers/:id |
GET | Headers token: String |
Success200 OKError 401 Authorization Error500 Internal Server Error |
Get one answer |
/answers/:id |
PUT | Headers token: String Body title: String content: String file: File |
Success200 OKError 401 Authorization Error500 Internal Server Error |
Update a answer |
Undefined Route :
Route | Method | Request(s) | Response(s) | Description |
---|---|---|---|---|
/* |
any | any | Error404 Route not found |
Show result if route not found |