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: 3 months 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T17:13:27.000Z (about 2 years ago)
- Last Synced: 2025-01-17T23:32:25.825Z (over 1 year 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'