Backend Repo for Backend Engineer.
- username: (string) 128chars long.
- password: (password) This will be hashed.
{
username: 'test',
password:'test'
}{
"message": "Registration Successful",
"token": "a token would appear here",
"id": 1
}msg(string) -> contains an error object converted into a string.
- username: (string) 128chars long.
- password: (password) This will be hashed.
{
username: 'test',
password:'test'
}{
"message": "Login Successful",
"token": "a token would appear here",
"id": 1
}msg(string) ->
{
"title": "This is a title",
"body": "This is the post",
"image": "This is an image url"
}{
"response": [
{
"rec": "dankmemes",
"score": 0.36160451388367243
},
{
"rec": "teenagers",
"score": 0.19633690505618595
},
{
"rec": "memes",
"score": 0.17758563187085075
},
{
"rec": "me_irl",
"score": 0.08763629551358934
},
{
"rec": "gaming",
"score": 0.04070450903212839
}
],
"title": "check it take 2",
"body": "it really works now srsly",
"image": "tsrsly"
}msg(string) ->
This endpoint is restricted to logged in users.
- Request header (Javascript Object) that should contain the token.
msg(string) -> contains a success message string
msg(string) ->
This endpoint is restricted to logged in users.
- Object with
password - Request header (Javascript Object) that should contain the token.
msg(string) -> contains a success message string
msg(string) ->