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

LIMS-1138: Update Swagger spec #723

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

ndg63276
Copy link
Collaborator

@ndg63276 ndg63276 commented Feb 5, 2024

JIRA ticket: LIMS-1138

Summary:

The docs for the Synchweb API are outdated in a few places, this PR is to update them. As first reported in #217.

Changes:

  • Remove required prop parameter from /proposal (get)
  • Add required prop parameter to /proposals/visits/visit (get/patch) and /dc/{id} (get)
  • Update endpoint for /dc/{id}, /dc/single/t/{type}/{id}, /processing/status, /processing/{id}
  • Remove non-existent get on /dc/single/t/{type}/{id}
  • Fix docs on post to /dc/comment
  • Remove non-existent event types

To test:

@@ -3028,7 +3016,7 @@
}
}
},
"/dc/comments/{dccid}": {
"/dc/comments/{dcid}": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't dccid stand for data collection comment ID in this case, and therefore we should keep it? (These abbreviations/acronyms are immensely confusing...)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I got confused by the fact that in the Synchweb code it is called dcid (https://github.com/DiamondLightSource/SynchWeb/blob/master/api/src/Page/DC.php#L1673) but it is still a data collection comment id.

@ndg63276 ndg63276 merged commit 4675d06 into prerelease Feb 7, 2024
2 checks passed
@ndg63276 ndg63276 deleted the fix/LIMS-1138/update-swagger-spec branch February 7, 2024 13:21
gfrn pushed a commit that referenced this pull request Feb 26, 2024
* LIMS-1138: Update Swagger spec

* LIMS-1138: Use dccid for data collection comment id

---------

Co-authored-by: Mark Williams <[email protected]>
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.

API GET /proposal/visits/{visit} endpoint requires prop param but not documented
2 participants