An open API service indexing awesome lists of open source software.

https://github.com/acmesoftwarellc/police-server

Mock Server for Police Department Dispatcher Incidents
https://github.com/acmesoftwarellc/police-server

container docker mock mock-server python

Last synced: about 1 year ago
JSON representation

Mock Server for Police Department Dispatcher Incidents

Awesome Lists containing this project

README

          

# Police Server

## Run the server
```
docker run -p 1234:8000 ghcr.io/acmesoftwarellc/police-server:2.0.1
```

## Authorization
Send Bearer token in the Authorization header to access the API endpoints.

```
TOKEN = SHA256 hash of "acmesoftwarellc".
```

### REST API Endpoints
Access the server docs at http://localhost:1234/docs

### WebSocket Endpoint
```ws://localhost:1234/ws/incidents```

> [!NOTE]
For web, headers are not supported in WebSocket connections. Use `token` query parameter for authentication.
```ws://localhost:1234/ws/incidents?token=$TOKEN```