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
- Host: GitHub
- URL: https://github.com/acmesoftwarellc/police-server
- Owner: AcmeSoftwareLLC
- License: other
- Created: 2024-12-05T08:13:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-06T13:08:40.000Z (over 1 year ago)
- Last Synced: 2025-02-08T04:41:47.457Z (about 1 year ago)
- Topics: container, docker, mock, mock-server, python
- Language: Python
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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```