Open ioggstream opened 1 year ago
I'm also encountering a lot of surprises around inconsistencies in the API (e.g., sometimes POST is a create, sometimes PUT). I imagine it's quite a bit of work to identify and correct these mismatches, but I believe the time saved by users will be worth it. Consider this a +1 -- I will try to do my part by opening issues when I encounter unexpected behavior.
Even I found it odd using PUT to create a resource. Maybe there was a reason they made it the other way around?
But yeah I'd like this fixed as well. +1
I am positive that we'll have a better overview of this once https://github.com/DependencyTrack/dependency-track/issues/840 is resolved, likely even during the implementation inconsistencies like those mentioned here will become more apparent. They could then be corrected in a /v2 of the API.
Current Behavior
REST API method usage does not conform to HTTP specifications https://www.rfc-editor.org/rfc/rfc9110
Some examples:
If you are interested, I can provide further feedback.
Steps to Reproduce
e.g. POST updates a project
Expected Behavior
POST creates a project when uuid is not provided
Dependency-Track Version
4.6.x
Dependency-Track Distribution
Container Image
Database Server
N/A
Database Server Version
No response
Browser
Google Chrome
Checklist