Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add definitions in bulk-revoke endpoint #563

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions api-compact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,21 +216,14 @@ endpoints:
parameters:
- *auth_header
- *uuid
- name: "Requestpayload"
- name: "RequestPayload"
in: "body"
description: "User emails OR search filters for emails and status"
required: true
schema:
type: "array"
items:
type: "object"
properties:
user_emails:
description: "List of emails with which licenses are associated"
type: "array"
items:
type: "string"
description: "user email"
$ref: "#/definitions/RequestPayload"
responses: *bulk_revoke_responses
x-amazon-apigateway-integration:
responses: *bulk_revoke_apigateway_responses
Expand Down Expand Up @@ -292,3 +285,31 @@ endpoints:
integration.request.querystring.enroll_all: "method.request.querystring.enroll_all"
integration.request.querystring.subscription_uuid: "method.request.querystring.subscription_uuid"
uri: "https://${stageVariables.license_manager_host}/api/v1/bulk-license-enrollment"
definitions:
BulkRevokeFilters:
type: "object"
properties:
user_email:
type: "string"
description: "User email filter"
status_in:
type: "array"
description: "Array of valid license statuses"
items:
type: "string"
description: "status of the license"
description: "Values provided to perform filtering against."
RequestPayload:
type: "object"
properties:
user_emails:
type: "array"
description: "List of emails with which licenses are associated"
items:
type: "string"
description: "user email"
filters:
type: "array"
description: "Filters for lookup and filtering of licenses to revoke."
items:
$ref: "#/definitions/BulkRevokeFilters"
39 changes: 30 additions & 9 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,21 +230,14 @@ endpoints:
in: path
required: true
type: string
- name: Requestpayload
- name: RequestPayload
in: body
description: User emails OR search filters for emails and status
required: true
schema:
type: array
items:
type: object
properties:
user_emails:
description: List of emails with which licenses are associated
type: array
items:
type: string
description: user email
$ref: "#/definitions/RequestPayload"
responses:
"204":
description: No Content - All revocations were successful
Expand Down Expand Up @@ -378,3 +371,31 @@ endpoints:
integration.request.querystring.enroll_all: method.request.querystring.enroll_all
integration.request.querystring.subscription_uuid: method.request.querystring.subscription_uuid
uri: https://${stageVariables.license_manager_host}/api/v1/bulk-license-enrollment
definitions:
BulkRevokeFilters:
type: object
properties:
user_email:
type: string
description: User email filter
status_in:
type: array
description: Array of valid license statuses
items:
type: string
description: status of the license
description: Values provided to perform filtering against.
RequestPayload:
type: object
properties:
user_emails:
type: array
description: List of emails with which licenses are associated
items:
type: string
description: user email
filters:
type: array
description: Filters for lookup and filtering of licenses to revoke.
items:
$ref: "#/definitions/BulkRevokeFilters"
Loading