Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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