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

https://github.com/ardwiinoo/express-rest-typescript

⚡exploring REST API with express ts and git hooks utility
https://github.com/ardwiinoo/express-rest-typescript

express husky rest-api typescript

Last synced: about 2 months ago
JSON representation

⚡exploring REST API with express ts and git hooks utility

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",
}
}
```