Closed sartaj10 closed 1 month ago
This work was done to evaluate what API response would work best when trying to build forms on the UI. The work has been pushed here - https://github.com/perfsonar/pscompose/tree/api-demo
One pattern was this response but it wouldn't be ideal to implement this - https://github.com/perfsonar/pscompose/blob/api-demo/api/api.py#L40
The other option was using JSON schema that we went along with and that can be seen here - https://github.com/perfsonar/pscompose/blob/api-demo/api/api.py#L215
Idea here is to build a dummy API endpoint that returns JSON which is then used to build a form on the frontend