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
Success
201 Created
Error
500 Internal Server Error
Create a user
/user/login POST Body
email: String
password: String
Success
200 OK
Error
400 Bad Request
Sign a user in
/user/:id POST None Success
200 OK
Error
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
Success
201 Created
Error
401 Authorization Error
500 Internal Server Error
Create a question
/questions GET Headers
None
Success
200 OK
Error
400 Not Found
500 Internal Server Error
Get all questions
/questions/:id GET Headers
token: String
Success
200 OK
Error
401 Authorization Error
500 Internal Server Error
Get one question
/questions/:id PUT Headers
token: String
Body
title: String
content: String
file: File
Success
200 OK
Error
401 Authorization Error
500 Internal Server Error
Update a question
/questions/:id DELETE Headers
token: String
Success
200 OK
Error
401 Authorization Error
500 Internal Server Error
Delete a question

Answer :

Route Method Request(s) Response(s) Description
/answers POST Headers
token: String
Body
title: String
content: String
Success
201 Created
Error
401 Authorization Error
500 Internal Server Error
Create a answer
/answers GET Headers
None
Success
200 OK
Error
401 Authorization Error
500 Internal Server Error
Get all answers
/answers/:id GET Headers
token: String
Success
200 OK
Error
401 Authorization Error
500 Internal Server Error
Get one answer
/answers/:id PUT Headers
token: String
Body
title: String
content: String
file: File
Success
200 OK
Error
401 Authorization Error
500 Internal Server Error
Update a answer

Undefined Route :

Route Method Request(s) Response(s) Description
/* any any Error
404
Route not found
Show result if route not found