https://github.com/raulrobinson/websocket-api
API REST in ASP.NET Core with Postgres
https://github.com/raulrobinson/websocket-api
Last synced: 3 months ago
JSON representation
API REST in ASP.NET Core with Postgres
- Host: GitHub
- URL: https://github.com/raulrobinson/websocket-api
- Owner: raulrobinson
- Created: 2024-04-03T16:33:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-03T16:47:57.000Z (about 1 year ago)
- Last Synced: 2025-01-27T04:18:05.751Z (4 months ago)
- Language: C#
- Size: 12.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# websocket-api
API REST in ASP.NET Core with Postgres---

---
#### Login User
*Request*
```json
curl -X 'POST' \
'https://localhost:7183/login' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]",
"password": "123"
}'
```
*Response*```json
{
"acess_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiUm9iaW4iLCJlbWFpbCI6InJvYmluQGVtYWlsLmNvbSIsIm5iZiI6MTcxMjE2MjUwNywiZXhwIjoxNzEyMTY2MTA3LCJpYXQiOjE3MTIxNjI1MDd9.ReVyBJXo0RH5XUGxnPfmRLYEFkzlMt4AdlIVMFkTARA"
}
```---
#### Register User
*Request*
```json
curl -X 'POST' \
'https://localhost:7183/register' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"name": "John Doe",
"email": "[email protected]",
"password": "password123"
}'
```*Response*
```json
{
"name": "John Doe",
"email": "[email protected]",
"password": "password123"
}
```---
*Raul Bolivar Navas **@rasysbox***