Skip to content

Commit

Permalink
feat(application link): Application Link create/update in REST API (#182
Browse files Browse the repository at this point in the history
  • Loading branch information
vhemery authored Jul 16, 2024
1 parent 0372246 commit ee60446
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions openapi/components/schemas/CreateApplicationRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
type: object
properties:
link:
description: true for an application link, false for a legacy application
type: boolean
default: "false"
enum: [ true, false ]
description:
description: description of the application
type: string
Expand All @@ -16,6 +21,7 @@ properties:
description: version of the application
type: string
example:
link: "false"
version: "1.0"
profileId: "2"
token: "myapp"
Expand Down
4 changes: 2 additions & 2 deletions openapi/paths/API@[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ post:
summary: Create a living application
deprecated: true
description: |
Create a living applications
Create a living application (legacy application or application link).
Warning: as of 9.0.0, creating a living application using this API is deprecated.
operationId: createApplication
Expand All @@ -95,7 +95,7 @@ post:
content:
application/json:
schema:
$ref: '../components/schemas/LegacyApplication.yaml'
$ref: '../components/schemas/Application.yaml'
description: "Success "
'401':
$ref: '../components/responses/Unauthorized.yaml'
Expand Down
4 changes: 2 additions & 2 deletions openapi/paths/API@living@application@{id}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ put:
summary: Update a living application by ID
deprecated: true
description: |
Update a single application for the given ID
Update a single application for the given ID (legacy application or application link).
Warning: as of 9.0.0, updating a living application using this API is deprecated.
operationId: updateApplicationById
Expand All @@ -91,7 +91,7 @@ put:
content:
application/json:
schema:
$ref: '../components/schemas/LegacyApplication.yaml'
$ref: '../components/schemas/Application.yaml'
description: "Success "
'401':
$ref: '../components/responses/Unauthorized.yaml'
Expand Down

0 comments on commit ee60446

Please sign in to comment.