- Clone this repository to your working enviroment.
- Open a terminal and
cd
to the folder where you've cloned the repository. - Execute
npm install
. - Execute
npm run build
. - Done!
- To run the development server, execute
npm run develop
. - To access the admin panel, go to
ADDRESS/admin
whereADDRESS
is your server (for local development, it's usuallyhttp://localhost:1337
)
- Refer here for deployment.
Method | Path | Description | Parameters | Response |
---|---|---|---|---|
GET | /cases |
Gets all cases | [ { "id": 1, "Case": "ZP01",... } ] |
|
GET | /cases/:id |
Gets specific case | id | { "id": 1, "Case": "ZP01",... } |
GET | /figures |
Retrieves current counts of Suspects, Probables, and confirmed cases in Zamboanga City. | id | { "suspect": { "Value": 75, ... }, "probable": { "Value": 2381, ... }, "confirmed": { "value": 5, ... } } |
GET | /suspects |
Gets all Suspect count | [ { "id": 1, "Value": 93, "dataUpdatedAt": "2020-04-06T00:00:00Z... }, ... ] |
|
GET | /probable |
Gets all Probable count | [ { "id": 1, "Value": 2381, "dataUpdatedAt": "2020-04-06T00:00:00Z... }, ... ] |
|
POST | /auth/local |
Attempts to login the user using the specified credentials. If successful, returns a token and the user's profile. | identifier and password | { "jwt": "TOKEN_HERE", "user": {...} } |