Skip to content

Add CRUD on solution parameters #887

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

Merged
merged 5 commits into from
Mar 19, 2025

Conversation

jreynard-code
Copy link
Member

Important:

You can now update solution parameter via solution update endpoint (/organizations/{organization_id}/solutions/{solution_id}.
Now, If no parameters are specified when a solution update is requested, solution will have empty parameters property after update.

Additional endpoints:

As we allowed parameters property to be updated when a solution is updated, we added CRUD endpoints for solution parameter to manage this property easily:

  • GET /organizations/{organization_id}/solutions/{solution_id}/parameters
  • POST /organizations/{organization_id}/solutions/{solution_id}/parameters
  • GET /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id}
  • PATCH /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id}
  • DELETE /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id}

@jreynard-code jreynard-code force-pushed the JREY/add_crud_on_solution_parameters branch from 83a8aea to 62c7b4d Compare March 19, 2025 09:05
- Add /solutions/{solution_id}/parameters/POST + integration Test
- Add /solutions/{solution_id}/parameters/GET + integration Test + MvC test
- Add /solutions/{solution_id}/parameters/{parameter_id}/GET + integration Test
- Add /solutions/{solution_id}/parameters/{parameter_id}/PATCH + integration Test
- Add /solutions/{solution_id}/parameters/{parameter_id}/DELETE + integration Test + MvC test
- Define generated id, name and description on RunTemplateParameter
- Add RunTemplateParameterCreateRequest and RunTemplateParameterUpdateRequest to manage properties visibility
Some work needs to be done:

- Add /solutions/{solution_id}/parameters/POST MvC Test
- Add /solutions/{solution_id}/parameters/{parameter_id}/GET MvC Test
- Add /solutions/{solution_id}/parameters/{parameter_id}/PATCH MvC Test
- Adapt updateSolution and createSolution endpoints/tests to match with these modifications
- Add /solutions/{solution_id}/parameters/{parameter_id}/GET MvC Test
- Adapt updateSolution and createSolution endpoints/tests to match with these modifications
- Add /solutions/{solution_id}/parameters/{parameter_id}/PATCH MvC Test
@jreynard-code jreynard-code force-pushed the JREY/add_crud_on_solution_parameters branch from 6d08516 to ef19bf4 Compare March 19, 2025 14:29
@jreynard-code jreynard-code merged commit f9a641b into main Mar 19, 2025
39 checks passed
@jreynard-code jreynard-code deleted the JREY/add_crud_on_solution_parameters branch March 19, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants