Skip to content

Commit 8e457cd

Browse files
committed
Remove unused API v2 endpoints add more spectral rules
* Removes /teams and /metrics endpoints that were added but never put into use. Carrying them forward is a maintenance burden that is unnecessary. * Adds Spectral rules that enforce guidelines around naming of operations, and response structure. They are not perfect but should catch blunt violations. * Updates endpoint implementations that violated the enforced rules, e.g. by populating Location headers. Signed-off-by: nscuro <nscuro@protonmail.com>
1 parent 69f6ea0 commit 8e457cd

39 files changed

+239
-2215
lines changed

api/src/main/openapi/components/schemas/create-team-membership-request.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

api/src/main/openapi/components/schemas/create-team-request.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

api/src/main/openapi/components/schemas/get-team-response.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

api/src/main/openapi/components/schemas/list-team-memberships-response-item.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

api/src/main/openapi/components/schemas/list-team-memberships-response.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

api/src/main/openapi/components/schemas/list-teams-response-item.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

api/src/main/openapi/components/schemas/list-vulnerability-metrics-response-item.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

api/src/main/openapi/components/schemas/list-vulnerability-metrics-response.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)