Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ardwiinoo/express-rest-typescript
exploring something new
https://github.com/ardwiinoo/express-rest-typescript
express husky rest-api typescript
Last synced: about 2 months ago
JSON representation
exploring something new
- Host: GitHub
- URL: https://github.com/ardwiinoo/express-rest-typescript
- Owner: ardwiinoo
- License: mit
- Created: 2023-08-20T03:49:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-17T12:41:48.000Z (over 1 year ago)
- Last Synced: 2023-09-17T15:10:54.607Z (over 1 year ago)
- Topics: express, husky, rest-api, typescript
- Language: TypeScript
- Homepage: https://express-rest-typescript.vercel.app
- Size: 370 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# API Specs
## Register User
Request :
- Method : POST
- Endpoint : `/register`
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
```json
{
"email" : "string",
"name" : "string",
"password" : "string"
}
```
- Response :
```json
{
"status" : "boolean",
"statusCode" : "number",
"message" : "string"
}
```## Login User
Request :
- Method : POST
- Endpoint : `/login`
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
```json
{
"email" : "string",
"password" : "string"
}
```
- Response :
```json
{
"status" : "boolean",
"statusCode" : "number",
"message" : "string",
"data" : {
"accessToken" : "string",
"refreshToken" : "string"
}
}
```## Refresh Token
Request :
- Method : POST
- Endpoint : `/refresh`
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
```json
{
"refreshToken" : "string",
}
```
- Response :
```json
{
"status" : "boolean",
"statusCode" : "number",
"message" : "string",
"data" : {
"accessToken" : "string",
}
}
```