Closed joshgarde closed 1 year ago
First pass looks really good. Give me a bit to checkout the code and try to run it to get a better feel for it.
Per discussions, state
enum + reason
fields were added to the Status object.
New example requests look like this:
Request:
mutation {
createL2RasterProduct(definition: "a6d12de3-5f76-4e2d-9a42-1f2ab7f9ed7c") {
id,
definition {
id
},
status {
id,
timestamp,
state,
reason
}
}
}
Response:
{
"data": {
"createL2RasterProduct": {
"id": "3ebb804f-6b6f-404d-98b9-89827bc21ce9",
"definition": {
"id": "a6d12de3-5f76-4e2d-9a42-1f2ab7f9ed7c"
},
"status": [
{
"id": "02ea2973-7931-4092-b847-19968a473b28",
"timestamp": "2022-09-06 16:11:37.284498",
"state": "NEW",
"reason": null
}
]
}
}
}
product
argument)Request:
{
statusByProduct(product: "3ebb804f-6b6f-404d-98b9-89827bc21ce9") {
id
state
reason
}
}
Response:
{
"data": {
"statusByProduct": [
{
"id": "02ea2973-7931-4092-b847-19968a473b28",
"state": "NEW",
"reason": null
}
]
}
}
A prototype implementation of the service's GraphQL API. Work done includes:
Example Requests:
Raster Definitions
Request:
Response:
Create Product
Request:
Response:
Current User with Products (w/o
after
Argument for Pagination)Request:
Response:
Current User with Products (w/
after
Argument for Pagination)Request:
Response:
Status (w/
product
Argument)Request
Response: