Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jhonshua/websockets-api-express

api del chaht mern
https://github.com/jhonshua/websockets-api-express

express-js javascript json jwt-authentication jwt-authentication-middleware mongodb nodejs router

Last synced: about 1 month ago
JSON representation

api del chaht mern

Awesome Lists containing this project

README

        

# api---Websockets

## to start the project

npm start

## routes

post '/login'
Request body
application/json
{,
"username":"Juan-Pablo",
"password":"1316jkljk616"

}

Responses
code 200
application/json
{
id: foundUser.\_id,
message: 'logged in session'
}

code 400 'pass error'

code 400 'user no found'

---

post '/logout'

Request body
application/json
{,
"username":"Juan-Pablo",
"password":"1316jkljk616"

}

Responses
code 200
application/json
{
ok,

}

get '/messages/:userId'
post '/register'
get '/profile'
get '/people'