From 4329316b65f99775dd607c4407697d1faa92c7e0 Mon Sep 17 00:00:00 2001 From: CorrectRoad Date: Tue, 4 Jun 2024 10:09:42 +0800 Subject: [PATCH] chore: refactor sync add appstore url (#198) --- api/app_management/openapi.yaml | 49 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/api/app_management/openapi.yaml b/api/app_management/openapi.yaml index b7cb71c8..3d336e2b 100644 --- a/api/app_management/openapi.yaml +++ b/api/app_management/openapi.yaml @@ -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: @@ -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: