alan-turing-institute / science-gateway-middleware

Middleware endpoints for the Science Gateway project
https://github.com/alan-turing-institute/science-gateway
MIT License
3 stars 0 forks source link

HTTP endpoint(s) for Jobs exposing a CRUD RESTful API #13

Closed martintoreilly closed 7 years ago

martintoreilly commented 7 years ago

Description

HTTP endpoint(s) exposing a RESTful API that supports CRUD (Create, Read, Update, Delete) operations on the applications Job repository

Implementation notes

Job-specific operations

Endpoint: /job/<string:job_id>, handler JobApi

Generic operations

Endpoint: /job, handler JobsApi

Note: To expose a unified endpoint URL structure, we've used /job/ as the root, with the presence or absence of the <job_id> URL fragment determining which handler to route to.

martintoreilly commented 7 years ago

See PR #12 for implementation of POST (CREATE), GET (READ), GET (LIST), PUT (Replacement UPDATE), DELETE (DELETE).

martintoreilly commented 7 years ago

See PR #16 for PATCH (Partial update) using JSON merge patch approach.

martintoreilly commented 7 years ago

Closing following merge of PR #16