Skip to content

abadojack/StackOverflow-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackOverflow-lite

Build Status Coverage Status

StackOverflow-lite is a platform where people can ask questions and provide answers

Try it out on Heroku

Documentation

Endpoints

Sign up

POST /api/v1/auth/signup
{
  "username": "abadojack",
  "password": "password",
  "email"   : "[email protected]"
}

Login

POST /api/v1/auth/login
{
  "username": "abadojack",
  "password": "password"
}

Sign out

POST /api/v1/auth/signout

Fetch all questions

GET /api/v1/questions
Header
{
  "token": "token_from_login"
}

Get a specific question

GET /api/v1/questions/{question_id}
Header
{
  "token": "token_from_login"
}

Post a question

POST /api/v1/questions
Header
{
  "token": "token_from_login"
}
Body
{
  "title": "question title", 
  "body" : "question body"
  }

Delete question

DELETE /api/v1/questions/{question_id}
Header
{
  "token": "token_from_login"
}

Post an answer to a question

POST /api/v1/questions/{questiond_id}/answers
Header
{
  "token": "token_from_login"
}
Body
{ 
  "body" : "answer body"
}

Mark an answer as accepted or update an answer.

PUT /questions/{question_id}/answers/{answer_id}
Header
{
  "token": "token_from_login"
}
Body
{ 
  "body" : "answer body"
}

License

License: MIT This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published