Skip to content

Commit

Permalink
fix: add definitions in bulk-revoke endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameen Fatima authored and Sameen Fatima committed Jan 16, 2024
1 parent 141e10e commit 0d41000
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 18 deletions.
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"

0 comments on commit 0d41000

Please sign in to comment.