Skip to content

Commit

Permalink
BED-4552 GPO OUS Specs (#706)
Browse files Browse the repository at this point in the history
* added gpos spec

* added ous spec

* updated pathing for relevant filepaths to be ./../ rather than just ../. Fixed pathing errors in aiacas.aiaca.id.controllers
  • Loading branch information
mvlipka authored Jul 19, 2024
1 parent 647da0f commit 8ef8f4f
Show file tree
Hide file tree
Showing 24 changed files with 637 additions and 143 deletions.
22 changes: 11 additions & 11 deletions packages/go/openapi/src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,17 @@ paths:

# gpos
/api/v2/gpos/{object_id}:
$ref: './paths/gpos/gpos.id.yaml'
$ref: './paths/gpos.gpos.id.yaml'
/api/v2/gpos/{object_id}/computers:
$ref: './paths/gpos/gpos.id.computers.yaml'
$ref: './paths/gpos.gpos.id.computers.yaml'
/api/v2/gpos/{object_id}/controllers:
$ref: './paths/gpos/gpos.id.controllers.yaml'
$ref: './paths/gpos.gpos.id.controllers.yaml'
/api/v2/gpos/{object_id}/ous:
$ref: './paths/gpos/gpos.id.ous.yaml'
$ref: './paths/gpos.gpos.id.ous.yaml'
/api/v2/gpos/{object_id}/tier-zero:
$ref: './paths/gpos/gpos.id.tier-zero.yaml'
$ref: './paths/gpos.gpos.id.tier-zero.yaml'
/api/v2/gpos/{object_id}/users:
$ref: './paths/gpos/gpos.id.users.yaml'
$ref: './paths/gpos.gpos.id.users.yaml'

# aiacas
/api/v2/aiacas/{object_id}:
Expand Down Expand Up @@ -457,15 +457,15 @@ paths:

# ous
/api/v2/ous/{object_id}:
$ref: './paths/ous/ous.id.yaml'
$ref: './paths/ous.ous.id.yaml'
/api/v2/ous/{object_id}/computers:
$ref: './paths/ous/ous.id.computers.yaml'
$ref: './paths/ous.ous.id.computers.yaml'
/api/v2/ous/{object_id}/gpos:
$ref: './paths/ous/ous.id.gpos.yaml'
$ref: './paths/ous.ous.id.gpos.yaml'
/api/v2/ous/{object_id}/groups:
$ref: './paths/ous/ous.id.groups.yaml'
$ref: './paths/ous.ous.id.groups.yaml'
/api/v2/ous/{object_id}/users:
$ref: './paths/ous/ous.id.users.yaml'
$ref: './paths/ous.ous.id.users.yaml'

# ad users
/api/v2/users/{object_id}:
Expand Down
24 changes: 12 additions & 12 deletions packages/go/openapi/src/paths/aiacas.aiaca.id.controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: './../../parameters/header/prefer.yaml'
- $ref: './../../parameters/path/object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetAiaCaEntityControllers
summary: Get AIA CA entity controllers
Expand All @@ -26,20 +26,20 @@ get:
- Community
- Enterprise
parameters:
- $ref: './../../parameters/query/entity-query.skip.yaml'
- $ref: './../../parameters/query/entity-query.limit.yaml'
- $ref: './../../parameters/query/entity-query.type.yaml'
- $ref: './../../parameters/query/entity-query.sort-by.yaml'
- $ref: './../parameters/query.entity.skip.yaml'
- $ref: './../parameters/query.entity.limit.yaml'
- $ref: './../parameters/query.entity.type.yaml'
- $ref: './../parameters/query.entity.sort-by.yaml'
responses:
200:
$ref: './../../responses/related-entity-query-results.yaml'
$ref: './../responses/related-entity-query-results.yaml'
400:
$ref: './../../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: './../../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: './../../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
429:
$ref: './../../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: './../../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
20 changes: 10 additions & 10 deletions packages/go/openapi/src/paths/aiacas.aiaca.id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetAiaCaEntity
summary: Get AIA CA entity info
Expand All @@ -26,19 +26,19 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.hydrate-counts.yaml'
- $ref: './../parameters/query.hydrate-counts.yaml'
responses:
200:
$ref: '../responses/entity-info-query-results.yaml'
$ref: './../responses/entity-info-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
404:
$ref: '../responses/not-found.yaml'
$ref: './../responses/not-found.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetCertTemplateEntityControllers
summary: Get Cert Template entity controllers
Expand All @@ -26,20 +26,20 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.entity.skip.yaml'
- $ref: '../parameters/query.entity.limit.yaml'
- $ref: '../parameters/query.entity.type.yaml'
- $ref: '../parameters/query.entity.sort-by.yaml'
- $ref: './../parameters/query.entity.skip.yaml'
- $ref: './../parameters/query.entity.limit.yaml'
- $ref: './../parameters/query.entity.type.yaml'
- $ref: './../parameters/query.entity.sort-by.yaml'
responses:
200:
$ref: '../responses/related-entity-query-results.yaml'
$ref: './../responses/related-entity-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
20 changes: 10 additions & 10 deletions packages/go/openapi/src/paths/certtemplate.certtemplates.id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetCertTemplateEntity
summary: Get Cert Template entity info
Expand All @@ -26,19 +26,19 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.hydrate-counts.yaml'
- $ref: './../parameters/query.hydrate-counts.yaml'
responses:
200:
$ref: '../responses/entity-info-query-results.yaml'
$ref: './../responses/entity-info-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
404:
$ref: '../responses/not-found.yaml'
$ref: './../responses/not-found.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetContainerEntityControllers
summary: Get container entity controllers
Expand All @@ -26,20 +26,20 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.entity.skip.yaml'
- $ref: '../parameters/query.entity.limit.yaml'
- $ref: '../parameters/query.entity.type.yaml'
- $ref: '../parameters/query.entity.sort-by.yaml'
- $ref: './../parameters/query.entity.skip.yaml'
- $ref: './../parameters/query.entity.limit.yaml'
- $ref: './../parameters/query.entity.type.yaml'
- $ref: './../parameters/query.entity.sort-by.yaml'
responses:
200:
$ref: '../responses/related-entity-query-results.yaml'
$ref: './../responses/related-entity-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
20 changes: 10 additions & 10 deletions packages/go/openapi/src/paths/containers.containers.id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetContainerEntity
summary: Get container entity info
Expand All @@ -26,19 +26,19 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.hydrate-counts.yaml'
- $ref: './../parameters/query.hydrate-counts.yaml'
responses:
200:
$ref: '../responses/entity-info-query-results.yaml'
$ref: './../responses/entity-info-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
404:
$ref: '../responses/not-found.yaml'
$ref: './../responses/not-found.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetEnterpriseCaEntity
summary: Get Enterprise CA entity info
Expand All @@ -26,19 +26,19 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.hydrate-counts.yaml'
- $ref: './../parameters/query.hydrate-counts.yaml'
responses:
200:
$ref: '../responses/entity-info-query-results.yaml'
$ref: './../responses/entity-info-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
404:
$ref: '../responses/not-found.yaml'
$ref: './../responses/not-found.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
24 changes: 12 additions & 12 deletions packages/go/openapi/src/paths/enterprisecas.enterprisecas.id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
- $ref: '../parameters/header.prefer.yaml'
- $ref: '../parameters/path.object-id.yaml'
- $ref: './../parameters/header.prefer.yaml'
- $ref: './../parameters/path.object-id.yaml'
get:
operationId: GetEnterpriseCaEntityControllers
summary: Get Enterprise CA entity controllers
Expand All @@ -26,20 +26,20 @@ get:
- Community
- Enterprise
parameters:
- $ref: '../parameters/query.entity.skip.yaml'
- $ref: '../parameters/query.entity.limit.yaml'
- $ref: '../parameters/query.entity.type.yaml'
- $ref: '../parameters/query.entity.sort-by.yaml'
- $ref: './../parameters/query.entity.skip.yaml'
- $ref: './../parameters/query.entity.limit.yaml'
- $ref: './../parameters/query.entity.type.yaml'
- $ref: './../parameters/query.entity.sort-by.yaml'
responses:
200:
$ref: '../responses/related-entity-query-results.yaml'
$ref: './../responses/related-entity-query-results.yaml'
400:
$ref: '../responses/bad-request.yaml'
$ref: './../responses/bad-request.yaml'
401:
$ref: '../responses/unauthorized.yaml'
$ref: './../responses/unauthorized.yaml'
403:
$ref: '../responses/forbidden.yaml'
$ref: './../responses/forbidden.yaml'
429:
$ref: '../responses/too-many-requests.yaml'
$ref: './../responses/too-many-requests.yaml'
500:
$ref: '../responses/internal-server-error.yaml'
$ref: './../responses/internal-server-error.yaml'
Loading

0 comments on commit 8ef8f4f

Please sign in to comment.