Skip to content

Commit

Permalink
chore: refactor sync add appstore url (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Jun 4, 2024
1 parent 2f0eb44 commit 4329316
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions api/app_management/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,31 +225,6 @@ paths:
$ref: "#/components/responses/ResponseNotFound"
"500":
$ref: "#/components/responses/ResponseInternalServerError"

# the endpoint is newer version of POST /appstore for the demand of @ETWang1991
# the old api is dependent by CasaOS. So we can't remove it.
# a good idea is /v3/app-management/appstore. But it is hard to implement in ZimaOS
# So I had to add the endpoint here.
/appstore/sync:
post:
summary: Register an app store in Sync.
description: |
(TODO)
operationId: registerAppStoreSync
tags:
- AppStore methods
parameters:
- $ref: "#/components/parameters/AppStoreURL"
responses:
"200":
$ref: "#/components/responses/AppStoreRegisterOK"
"400":
$ref: "#/components/responses/ResponseBadRequest"
"409":
$ref: "#/components/responses/ResponseConflict"
"500":
$ref: "#/components/responses/ResponseInternalServerError"


/appstore:
get:
Expand Down Expand Up @@ -714,6 +689,30 @@ paths:
"200":
$ref: "#/components/responses/GetWebAppGridOK"

# the endpoint is newer version of POST /appstore for the demand of @ETWang1991
# the old api is dependent by CasaOS. So we can't remove it.
# a good idea is /v3/app-management/appstore. But it is hard to implement in ZimaOS
# So I had to add the endpoint here.
/web/sync/appstore:
post:
summary: Register an app store in Sync.
description: |
(TODO)
operationId: registerAppStoreSync
tags:
- AppStore methods
parameters:
- $ref: "#/components/parameters/AppStoreURL"
responses:
"200":
$ref: "#/components/responses/AppStoreRegisterOK"
"400":
$ref: "#/components/responses/ResponseBadRequest"
"409":
$ref: "#/components/responses/ResponseConflict"
"500":
$ref: "#/components/responses/ResponseInternalServerError"

components:
securitySchemes:
access_token:
Expand Down

0 comments on commit 4329316

Please sign in to comment.