1.0.1 • Published 4 years ago
docuisy_api v1.0.1
PoliciesApi
Pre-Requisites
- Install NodeJS
- Version - (at least).
Start API ✔
- Install external packages.
- In the root folder, run the following command. -
$ npm install
.
- Run server.
- In the root folder, run the following command. -
$ npm start
- PoliciesApi is ready!
Run Tests ⚙
- Make sure that the API isn't running
- In the root folder, run the following commands.
$ npm test
.
Documentation 📄
All the API documentation was created with the standart OpenAPI.
SwaggerUI Documentation
- Start API
- Go to
http://localhost:4000/api-docs
How I get a Token? 🔑
- Use
/authenticate
service:http://localhost:4000/api/auth/authenticate
- Add Request body:
{
"email": "evangelineblankenship@quotezart.com"
}
NOTE: I used only the email field to authenticate the user