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

https://github.com/sahilpabale/nevo-api

OG nevo.to backend
https://github.com/sahilpabale/nevo-api

Last synced: 6 months ago
JSON representation

OG nevo.to backend

Awesome Lists containing this project

README

          

# nevo.to api documentation

## Auth API:

**Key Features -
**
1. Roles - User/Admin (Admin controls whole data/app & User can only post reviews/comments only)
2. Email and Password JWT Auth
3. Email verification
4. Password reset

**User Model -**
```js
{
username: String,
email: String,
password: String,
role: String,
userCreatedAt: Date,
lastLoginAt: Date
}
```

**API Design -**

1. POST `/api/auth/signup`

- Request:
- `{ username, email, password }`
- No Auth Header
- Response:
- `success object`
- `user | server error object`