Skip to content

Commit

Permalink
Merge pull request #63 from adzerk/vinodkurup/sc-52044/port-create-ca…
Browse files Browse the repository at this point in the history
…mpaign-from-beehive-to-api

Updates to api-spec for POST /v1/campaign
  • Loading branch information
tomascasas authored Dec 4, 2024
2 parents 3eea859 + b8b0ce4 commit 2b17eec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion management/openapi-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ paths:
content:
application/json:
schema:
type: object
$ref: './schemas/campaign.yaml#/schemas/Campaign'
responses:
200:
description: Campaign Created
Expand Down
19 changes: 11 additions & 8 deletions management/schemas/campaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ schemas:
AdvertiserId:
type: integer
format: int32
minimum: 1
Name:
type: string
minLength: 1
Expand All @@ -22,7 +23,6 @@ schemas:
IsArchived:
type: boolean
default: false
nullable: true
FreqCap:
type: integer
format: int32
Expand Down Expand Up @@ -62,21 +62,15 @@ schemas:
CustomFieldsJson:
type: string
nullable: true
EndDate:
type: string
nullable: true
deprecated: true
IsFreqCap:
type: boolean
nullable: true
readOnly: true

Campaign:
allOf:
- $ref: '#/schemas/CampaignBase'
- type: object
required:
- CampaignId
- StartDate
properties:
SalespersonId:
type: integer
Expand All @@ -86,23 +80,32 @@ schemas:
type: string
default: 1/1/2018
deprecated: true
readOnly: true
Flights:
type: array
items:
type: object
nullable: true
EndDate:
type: string
nullable: true
readOnly: true
deprecated: true
EndDateISO:
type: string
readOnly: true
deprecated: true
nullable: true
Price:
type: number
deprecated: true
readOnly: true
nullable: true
StartDateISO:
type: string
nullable: true
deprecated: true
readOnly: true
Created:
type: string
format: date-time
Expand Down

0 comments on commit 2b17eec

Please sign in to comment.