Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jhonshua/websockets-api-express
- Owner: jhonshua
- Created: 2023-07-31T15:19:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-05T17:13:27.000Z (9 months ago)
- Last Synced: 2024-11-17T04:27:15.736Z (3 months ago)
- Topics: express-js, javascript, json, jwt-authentication, jwt-authentication-middleware, mongodb, nodejs, router
- Language: JavaScript
- Homepage:
- Size: 170 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'