perfsonar / pscompose

A graphical interface for composing perfSONAR configurations
Apache License 2.0
1 stars 0 forks source link

Setup a test API response to build a form #6

Closed sartaj10 closed 1 month ago

sartaj10 commented 1 month ago

Idea here is to build a dummy API endpoint that returns JSON which is then used to build a form on the frontend

sartaj10 commented 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