You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 3 endpoints in the API for a certain set of basic repository work: retrieve 1 by ID, update 1 by ID, delete 1 by ID. In the documentation, the parameter for each should be listed as :repo_id.
Current Behavior
Currently, the parameter for the first two is listed as :id but for the third is given as :repo_id.
for the retrieve endpoint. It wouldn't be hard for me to change the code, but I am insufficiently familiar with likely downstream effects or other side-effects.
This came up when trying to create an API definition file for our infosec department to use in scanning the ArchivesSpace API for security. A validator for Swagger-style YAML pointed out the semantic identity of the endpoints using :id to the one using :repo_id. Correcting the YAML was easy enough, but it seems like it should be corrected more permanently if possible.
Your Environment
Version used: API Reference says it's for 3.3.0
Environment name and version (e.g. Chrome 39, node.js 5.4): n/a
Operating System and version (desktop or mobile): n/a
Link to your project: n/a
The text was updated successfully, but these errors were encountered:
Expected Behavior
There are 3 endpoints in the API for a certain set of basic repository work: retrieve 1 by ID, update 1 by ID, delete 1 by ID. In the documentation, the parameter for each should be listed as
:repo_id
.Current Behavior
Currently, the parameter for the first two is listed as
:id
but for the third is given as:repo_id
.Possible Solution
Looks to me like the change would happen at
archivesspace/backend/app/controllers/repository.rb
Lines 93 to 101 in 88e9e61
archivesspace/backend/app/controllers/repository.rb
Lines 143 to 153 in 88e9e61
Steps to Reproduce (for bugs)
Read the API Reference starting at the Update endpoint's entry.
Context
This came up when trying to create an API definition file for our infosec department to use in scanning the ArchivesSpace API for security. A validator for Swagger-style YAML pointed out the semantic identity of the endpoints using
:id
to the one using:repo_id
. Correcting the YAML was easy enough, but it seems like it should be corrected more permanently if possible.Your Environment
The text was updated successfully, but these errors were encountered: