Skip to content

Commit

Permalink
Merge pull request #99 from dali-lab/dev
Browse files Browse the repository at this point in the history
DEV TO RELEASE | Documentation updates
  • Loading branch information
tmonfre authored Feb 17, 2021
2 parents 135f47f + 24bbc5f commit 4bce1c6
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 168 deletions.
255 changes: 109 additions & 146 deletions README.md

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions docs/PREDICTIONS-COUNTY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# County Predictions Data Operations

## `GET /county-prediction`

Returns county predictions objects that match specified query params.

User can supply query params for:

- `cleridPerDay`
- `county`
- `spbPerDay`
- `state`
- `trapCount`
- `year`

## `POST /county-prediction/query`

Returns county predictions objects that match provided mongo query.

User can supply mongo query in body.
20 changes: 20 additions & 0 deletions docs/PREDICTIONS-RD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ranger District Predictions Data Operations

## `GET /rd-prediction`

Returns ranger district predictions objects that match specified query params.

User can supply query params for:

- `cleridPerDay`
- `rangerDistrict`
- `spbPerDay`
- `state`
- `trapCount`
- `year`

## `POST /rd-prediction/query`

Returns ranger district predictions objects that match provided mongo query.

User can supply mongo query in body.
5 changes: 4 additions & 1 deletion docs/ROUTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Route Documentation

- [Healthcheck](./HEALTHCHECK.md)
- [Spot Data](./SPOTS.md)
- [Spot Data County](./SPOTS-COUNTY.md)
- [Spot Data Ranger District](./SPOTS-RD.md)
- [Predictions Data County](./PREDICTIONS-COUNTY.md)
- [Predictions Data Ranger District](./PREDICTIONS-RD.md)
- [Summarized County Data](./SUMMARIZED-COUNTY.md)
- [Summarized Ranger District Data](./SUMMARIZED-RD.md)
- [Unsummarized Trapping Data](./UNSUMMARIZED.md)
Expand Down
20 changes: 20 additions & 0 deletions docs/SPOTS-COUNTY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# County Spot Data Operations

## `GET /spot-data-county`

Returns county spot data objects that match specified query params.

User can supply query params for:

- `county`
- `fips`
- `hostAc`
- `spots`
- `state`
- `year`

## `POST /spot-data-county/query`

Returns county spot data objects that match provided mongo query.

User can supply mongo query in body.
18 changes: 18 additions & 0 deletions docs/SPOTS-RD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Ranger District Spot Data Operations

## `GET /spot-data-rangerdistrict`

Returns ranger district spot data objects that match specified query params.

User can supply query params for:

- `rangerDistrict`
- `spots`
- `state`
- `year`

## `POST /spot-data-rangerdistrict/query`

Returns ranger district spot data objects that match provided mongo query.

User can supply mongo query in body.
21 changes: 0 additions & 21 deletions docs/SPOTS.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/USERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ Returns JWT auth token for user if salted and hashed version of password matches

Expects authorization header with Bearer token.
Returns 200 with no payload if auth header is valid. This route can be used on the automation server for verifying protected routes.

## `GET /user/forgot-password/:email`

Generates random new password for user with provided email (if a user object for that email exists). Sends email with this new password to the user's email. User can then check their email to get their new password and login.

0 comments on commit 4bce1c6

Please sign in to comment.