Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option URIs in the JSON API #1042

Open
Zack-83 opened this issue Jul 4, 2024 · 1 comment
Open

Option URIs in the JSON API #1042

Zack-83 opened this issue Jul 4, 2024 · 1 comment

Comments

@Zack-83
Copy link
Member

Zack-83 commented Jul 4, 2024

Rationale / Begründung

Similarly to #506, it would be helpful to add URIs at all locations where a RDMO object references another one.

Examples:

/api/v1/options/optionsets/ --> URIs for options, conditions, questions
/api/v1/options/options/ --> URIs for optionsets, conditions
/api/v1/domain/attributes/ --> URIs for parent attributes
/api/v1/conditions/conditions/ --> URIs for pages, questionsets, questions, tasks, target_options
/api/v1/questions/catalogs/ --> URIs for sections
/api/v1/questions/sections/ --> URIs for catalogs, pages
/api/v1/questions/pages/ --> URIs for sections, questionsets, questions
/api/v1/questions/questionsets/--> URIs for pages, parents, questionsets, questions
/api/v1/questions/questions/ --> URIs for pages, questionsets

Affected

Who is affected by the change: Managers, Admins, creators of plugins (for troubleshooting)

image

image

@jochenklar
Copy link
Member

This is a bit trickier, we need to discuss this. The arrays, e.g. options and questions are used by the interface and there could be a performance issue if we collect the URI for each request. Maybe we need an additional query parameter.

@Zack-83 Zack-83 changed the title Option USI in the JSON API Option URI in the JSON API Jul 5, 2024
@Zack-83 Zack-83 changed the title Option URI in the JSON API Option URIs in the JSON API Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants