Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# API

Available REST API endpoints.

## /ims/api/ping/

## /ims/api/bag/

## /ims/api/auth/

Get a JWT token for endpoints that require auth.

### POST

```
{
"identification": "<handle or email>",
"password": "<password>"
}
```

### Expected POST Response

```
{
"token": "<token>"
}
```

### JWT Token Contents

```
{
"exp": 1737165463,
"iat": 1737161863,
"iss": "ranger-ims-server",
"preferred_username": "HubCap",
"ranger_on_site": true,
"ranger_positions": "HQ Window,Dirt - Green Dot,Tow Truck Driver,Tech Ops,Green Dot Sanctuary,Tow Truck Mentee,DPW Ranger,Tech On Call,Fire Lane,NVO Ranger,DPW Ranger On Call,Tech Ops - Pre-Event,Tow Truck Ride Along",
"sub": "HubCap"
}
```

## /ims/api/access/

## /ims/api/streets/

## /ims/api/personnel/

Auth Required

Responds with a list of personnel.

### GET

```
{
"identification": "<handle or email>",
"password": "<password>"
}
```

### Expected Response

```
{
"token": "<token>"
}
```

## /ims/api/incident_types/

## /ims/api/events/

## /ims/api/event/

## /ims/api/incidents/

## /ims/api/incident/

## /ims/api/field_reports/

## /ims/api/field_report/

## /ims/api/event_source/
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include .dockerignore
include .jshintrc
include .pre-commit-config.yaml
include .python-version
include API.md
include bin/.common.sh
include bin/build
include bin/deploy
Expand Down