https://snipshare-api.herokuapp.com/
https://snipshare-api-staging.herokuapp.com/
POST on /users with payload :
{
"user": {
"email": "",
"password": ""
}
}
POST on /users/sign_in with payload :
{
"user": {
"email": "",
"password": ""
}
}
DELETE on /users/sign_out with auth
GET on /profile with Auth
GET on /profiles/:id with auth
PATCH on /profile with auth and payload :
{
"user": {
"username": "",
"description": "",
"github_url": "",
"personal_url": "",
"favorite_theme": ""
}
}
DELETE on /profile with auth
GET on /posts
GET on /posts/:id
POST on /posts with auth and payload :
{
"post": {
"description": "",
"snippets": [
{
"content": "",
"language": ""
}
],
"tags": [
""
]
}
}
PATCH on /posts/:id with auth and payload :
{
"post": {
"description": "",
"snippets": [
{
"content": "",
"language": "",
"id": ""
}
],
"tags": [
""
]
}
}
DELETE on /posts/:id with auth
DELETE on /posts/:post_id/snippets/:snippet_id with auth
GET on /tags
POST on /tags with auth and payload :
{
"title": ""
}
GET on /comments
POST on /posts/:post_id/comments with auth and payload :
{
"content": ""
}
PATCH on /posts/:post_id/comments/:comment_id with auth and payload :
{
"content": ""
}
DELETE on /posts/:post_id/comments/:comment_id with auth
GET on /reactions
POST on /posts/:post_id/post_reactions with auth and payload :
{
"name": ""
}
DELETE on /posts/:post_id/post_reactions with auth