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
- Host: GitHub
- URL: https://github.com/ardwiinoo/express-rest-typescript
- Owner: ardwiinoo
- License: mit
- Created: 2023-08-20T03:49:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-17T12:41:48.000Z (almost 2 years ago)
- Last Synced: 2025-02-18T02:15:36.646Z (5 months 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",
}
}
```