bbox-processes-server

Crates.iobbox-processes-server
lib.rsbbox-processes-server
version0.6.1
sourcesrc
created_at2024-08-08 08:22:19.55858
updated_at2024-08-23 21:47:15.04722
descriptionBBOX OGC API Processes Service
homepagehttps://www.bbox.earth
repositoryhttps://github.com/bbox-services/bbox
max_upload_size
id1329271
size317,635
Pirmin Kalberer (pka)

documentation

README

BBOX Processes Service

The OGC API - Processes standard specifies an interface for executing computational tasks.

Overview: https://ogcapi.ogc.org/processes/

Features:

  • OGC API - Processes - Part 1: Core
  • Support synchronous and asynchronous process execution
  • OpenAPI endpoint
  • Multiple backend engines

Configuration

Dagster Backend:

[processes.dagster_backend]
graphql_url = "http://localhost:3000/graphql"
repository_name = "the_repository"
repository_location_name = "the.repos"

Usage

Request examples

List processes:

curl 'http://localhost:8080/processes'

Execute process:

curl --header "Content-Type: application/json" \
     --request POST \
     --data '{"inputs": {"ops": {"pos_info_query": {"inputs": {"pos_x": 2607545, "pos_y": 1171421}}}}}' \
  http://localhost:8080/processes/pos_info/execution

Execute process asynchronous:

curl --header "Content-Type: application/json" \
     --header "Prefer: respond-async" \
     --request POST \
     --data '{"inputs": {"ops": {"export_fpds2": {"inputs": {"fixpunkte": ["12575280", "12575100"], "in_bearbeitung": false }}}}}' \
  http://localhost:8080/processes/export_fpds2_to_csv/execution

JOBID=386f6c55-d718-4160-b4df-afc5ad5c7a73

Get job status:

curl http://localhost:8080/jobs/$JOBID

Return result of a job:

curl http://localhost:8080/jobs/$JOBID/results
Commit count: 0

cargo fmt