bcgov / bcgov/automated-statusing-tool

Create first version of user request payload and surrounding job model

Open
#111 1 comment 0 reactions 1 assignee Claimed by @jordanjfoy View on GitHub
API Backend
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Define first version of request data models:
- request payload model (what is sent from user to api)
- execution_metadata model
- job information model created at runtime (job_id, user_id etc)

These would then be combined to build the complete job record (future stored in sqlite database)

Example job:
```json
{
"job_id": "uuid",
"user_id": "str",
"created_at": "timestamp",
"status": "str",

"request_payload": {
"aggregate_field": "str",
"registry": "str",
"aoi": "RegistryDataset",
"geojson": "GeoJSON"
},

"execution_metadata": {
"s3_path": "str",
"engine_version": "str",
"started_at": "timestamp",
"completed_at": "timestamp"
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.