In [RFD-322](https://rfd.shared.oxide.computer/rfd/0322) we reached consensus to update our API design to be ID first[^1]. This issue is to track the work necessary to complete that transition. ## Migration - [x] Update [RFD-322's determination section](https://rfd.shared.oxide.computer/rfd/0322#_determinations) for clarity - [x] Update `instance` endpoints first as a PoC of the approach #1957 - [x] Update `disk` endpoints #2008 - [x] Update networking endpoints #2057 - [x] Update `organization` endpoints #2050 - [x] Update `project` endpoints #2050 - [x] Update `snapshot` endpoints #2347 - [x] Update users and groups #2423 - [x] Update `image` endpoints - [x] Update `system` endpoints - [x] Update remaining endpoints - [x] Delete non-V1 endpoints ## Cutover - [ ] Improve all the v1 error messages - [x] Update tests to use v1 APIs - [x] Mark non-v1 endpoints as deprecated (depends on https://github.com/oxidecomputer/dropshot/pull/503) - [ ] Cleanup authz test ignores - [ ] Update authz test to be able to verify both id and name path requests to the same endpoint. - [ ] Cleanup any `TODO-v1` comments - [ ] Cleanup nexus action names as per [this comment](https://github.com/oxidecomputer/omicron/pull/2008#discussion_r1054725623) - [ ] Move all possible contents of a handler into the handler method ([context](https://github.com/oxidecomputer/omicron/pull/2206#discussion_r1085612867)) - [ ] Add comments on each individual property in the selectors to note how they relate to each other ([context](https://github.com/oxidecomputer/omicron/pull/2057#discussion_r1107534548)) - [x] https://github.com/oxidecomputer/omicron/issues/2409 --- [^1]: I'm working on synthesizing the discussions and decisions into an an actual determination section
In RFD-322 we reached consensus to update our API design to be ID first1. This issue is to track the work necessary to complete that transition.
Migration
instanceendpoints first as a PoC of the approach v1 instance APIs as per RFD-322 #1957diskendpoints RFD-322 --/v1/Disks API #2008organizationendpoints RFD-322: Add/v1/endpoints for organizations and projects #2050projectendpoints RFD-322: Add/v1/endpoints for organizations and projects #2050snapshotendpoints RFD-322:/v1/snapshots#2347imageendpointssystemendpointsCutover
TODO-v1commentsFootnotes
I'm working on synthesizing the discussions and decisions into an an actual determination section ↩