Skip to content

Commit

Permalink
Add: New REST API to upload Custom Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Aug 12, 2024
1 parent 3465330 commit 29b4573
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,83 @@ paths:
-H "Content-Type: application/json" -d @data.json
"https://127.0.0.1:9443/api/am/publisher/v4/apis/7a2298c4-c905-403f-8fac-38c73301631f/topics"'

/apis/{apiId}/custom-sequence:
put:
tags:
- APIs
summary: Upload Custom Sequence as the Endpoint of the API
description: This operation can be used to change the endpoint of the API to Custom Sequence
operationId: customSequenceUpdate
parameters:
- $ref: '#/components/parameters/apiId'
- $ref: '#/components/parameters/If-Match'
requestBody:
content:
multipart/form-data:
schema:
properties:
sequence:
type: string
description: The sequence that needs to be uploaded.
format: binary
type:
type: string
description: Type of the Endpoint
apiData:
type: string
description: API Data to be updated
responses:
200:
description: |
OK.
Successful response with updated API object
headers:
ETag:
description: |
Entity Tag of the response resource. Used by caches, or in conditional requests (Will be supported in future).
schema:
type: string
Last-Modified:
description: |
Date and time the resource has been modifed the last time.
Used by caches, or in conditional requests (Will be supported in future).
schema:
type: string
Location:
description: |
The URL of the newly created resource.
schema:
type: string
Content-Type:
description: |
The content type of the body.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/API'
400:
$ref: '#/components/responses/BadRequest'
403:
$ref: '#/components/responses/Forbidden'
404:
$ref: '#/components/responses/NotFound'
409:
$ref: '#/components/responses/Conflict'
412:
$ref: '#/components/responses/PreconditionFailed'
security:
- OAuth2Security:
- apim:api_create
- apim:api_manage
- apim:api_publish
x-code-samples:
- lang: Curl
source: 'curl -k -X PUT -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8"
-H "Content-Type: application/json" -d @data.json "https://127.0.0.1:9443/api/am/publisher/v4/apis/7a2298c4-c905-403f-8fac-38c73301631f"'


/apis/{apiId}/reimport-service:
put:
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,83 @@ paths:
-H "Content-Type: application/json" -d @data.json
"https://127.0.0.1:9443/api/am/publisher/v4/apis/7a2298c4-c905-403f-8fac-38c73301631f/topics"'

/apis/{apiId}/custom-sequence:
put:
tags:
- APIs
summary: Upload Custom Sequence as the Endpoint of the API
description: This operation can be used to change the endpoint of the API to Custom Sequence
operationId: customSequenceUpdate
parameters:
- $ref: '#/components/parameters/apiId'
- $ref: '#/components/parameters/If-Match'
requestBody:
content:
multipart/form-data:
schema:
properties:
sequence:
type: string
description: The sequence that needs to be uploaded.
format: binary
type:
type: string
description: Type of the Endpoint
apiData:
type: string
description: API Data to be updated
responses:
200:
description: |
OK.
Successful response with updated API object
headers:
ETag:
description: |
Entity Tag of the response resource. Used by caches, or in conditional requests (Will be supported in future).
schema:
type: string
Last-Modified:
description: |
Date and time the resource has been modifed the last time.
Used by caches, or in conditional requests (Will be supported in future).
schema:
type: string
Location:
description: |
The URL of the newly created resource.
schema:
type: string
Content-Type:
description: |
The content type of the body.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/API'
400:
$ref: '#/components/responses/BadRequest'
403:
$ref: '#/components/responses/Forbidden'
404:
$ref: '#/components/responses/NotFound'
409:
$ref: '#/components/responses/Conflict'
412:
$ref: '#/components/responses/PreconditionFailed'
security:
- OAuth2Security:
- apim:api_create
- apim:api_manage
- apim:api_publish
x-code-samples:
- lang: Curl
source: 'curl -k -X PUT -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8"
-H "Content-Type: application/json" -d @data.json "https://127.0.0.1:9443/api/am/publisher/v4/apis/7a2298c4-c905-403f-8fac-38c73301631f"'


/apis/{apiId}/reimport-service:
put:
tags:
Expand Down

0 comments on commit 29b4573

Please sign in to comment.