Skip to content

Commit

Permalink
Update swagger.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
divan-9 authored May 27, 2024
1 parent dd54565 commit 120bf4c
Showing 1 changed file with 70 additions and 1 deletion.
71 changes: 70 additions & 1 deletion swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,42 @@ security:
- bearerAuth: []

paths:
/s2s/portals/{portalId}/advertisers/{advertiserId}:registerOrdServiceAgreement:
post:
tags:
- Api
parameters:
- name: portalId
in: path
required: true
schema:
type: string
- name: advertiserId
in: path
required: true
schema:
type: string
- name: x-UserId
in: header
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PostRegisterOrdServiceAgreementBody'
responses:
'200':
description: Success
'400':
description: Bad Request
'403':
description: Forbidden
'404':
description: Not Found
'409':
description: Conflict
/s2s/portals/{portalId}/advertisers:
post:
tags:
Expand Down Expand Up @@ -385,4 +421,37 @@ components:
enum:
- Advertising
- Other
type: string
type: string
PostRegisterOrdServiceAgreementBody:
required:
- contractNumber
- contractSignedAt
- isOwnBrand
- legalName
- ogrn
- tin
type: object
properties:
isOwnBrand:
type: boolean
legalName:
maxLength: 200
minLength: 1
type: string
tin:
maxLength: 10
minLength: 10
type: string
ogrn:
maxLength: 13
minLength: 13
type: string
contractNumber:
maxLength: 50
minLength: 1
type: string
contractSignedAt:
maxLength: 10
minLength: 10
type: string
additionalProperties: false

0 comments on commit 120bf4c

Please sign in to comment.