Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content

Basic api setup #17

Rico Herzog requested to merge basic_api_setup_#17 into main

Created by: ehundt

This is not 100% done yet but maybe we can still merge it so that the PR does not become too big. I created another PR for merging into this one...

So far implemented:

  • GET localhost:5001/api/jobs (mocked)
  • GET localhost:5001/api/jobs/<job_id>
  • GET localhost:5001/api/processes (mocked: reading json file)
  • GET localhost:5001/api/processes/model1
  • POST localhost:5001/api/processes/model1/execution?name=Simulation1&x=123&y=456 (also kind of mocked ;-) but async working.

The api/jobs API has an additional parameter in the payload: total_count (could also be number_of_pages or so). This is not part of the OGC standard, but I guess the frontend needs to know how many pages should be there. If there are other suggestions, please tell me :-) Next and previous links have been added to the payload as specified in OGC.

Merge request reports