<root_url> = https://api-havoc-v2.herokuapp.com/
npm install
npm run dev
Returns a list of supported devices in the JSON format.
Returns information about a particular device specified by the <deviceCodename> slug field.
Returns a list of developers currently involved with the project in JSON format.
Returns details regarding a particular developer identified by the <developerId> slug field.
-
Using POSTMAN.
POSTMAN is a GUI API Testing. It can be used for easily testing our APIs. You can read more about it in the above link.
-
Using cURL.
cURL is a command-line program which comes preinstalled with most Linux Distros. If you do not want to go through the extra hassle of setting up a separate application for API testing, you can use this option instead.
Ex:
curl -X GET -H "Accept: application/json" <root_url>/about | json_pp
The above command would return a list of developers currently involved with the project.
Prerequisites:
1. docker (dependency of docker-compose)
2. docker-compose
sudo docker-compose up
The above command will setup all the necessary containers on your system to run the application.
Presently, the application depends on 2 containers to run properly:
- redis (used for caching).
- The app itself (the container for the app is built automatically when the above command is run).
To stop and remove the running containers:
sudo docker-compose down
For Windows users, please switch to the windows branch before running the docker commands.
Linux Users can simply run the docker commands from the master branch itself.