Skip to content

Commit

Permalink
Merge pull request #466 from openedx/sameen/fix-api-spec
Browse files Browse the repository at this point in the history
fix: fix API schema spec for allocate API
  • Loading branch information
sameenfatima78 authored May 9, 2024
2 parents f6c2027 + 47acb0b commit 8975f08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
22 changes: 7 additions & 15 deletions api-compact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,33 +100,25 @@ endpoints:
- *auth_header
- in: path
name: policy_uuid
schema:
type: string
format: uuid
description: The uuid that uniquely identifies this policy record.
type: string
description: The uuid that uniquely identifies this policy record.
required: true
- in: query
name: content_key
schema:
type: string
minLength: 1
type: string
description: Course content_key to which these learners are assigned.
required: true
- in: query
name: content_price_cents
schema:
type: integer
minimum: 0
type: integer
description: The price, in USD cents, of this content at the time of allocation.
Must be >= 0.
required: true
- in: query
name: learner_emails
schema:
type: array
items:
type: string
format: email
type: array
items:
type: string
description: Learner emails to whom LearnerContentAssignments should be allocated.
required: true
responses: *learner_content_assignment_allocate_responses
Expand Down
22 changes: 7 additions & 15 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,33 +85,25 @@ endpoints:
type: string
- in: path
name: policy_uuid
schema:
type: string
format: uuid
description: The uuid that uniquely identifies this policy record.
type: string
description: The uuid that uniquely identifies this policy record.
required: true
- in: query
name: content_key
schema:
type: string
minLength: 1
type: string
description: Course content_key to which these learners are assigned.
required: true
- in: query
name: content_price_cents
schema:
type: integer
minimum: 0
type: integer
description: The price, in USD cents, of this content at the time of allocation.
Must be >= 0.
required: true
- in: query
name: learner_emails
schema:
type: array
items:
type: string
format: email
type: array
items:
type: string
description: Learner emails to whom LearnerContentAssignments should be
allocated.
required: true
Expand Down

0 comments on commit 8975f08

Please sign in to comment.