diff --git a/public/openapi.yaml b/public/openapi.yaml deleted file mode 100644 index 187058d..0000000 --- a/public/openapi.yaml +++ /dev/null @@ -1,581 +0,0 @@ -openapi: "3.0.0" -info: - title: OCS API - description: OCS - version: 0.1.9 - termsOfService: "http://swagger.io/terms/" - contact: - email: "apiteam@swagger.io" - license: - name: "Apache 2.0" - url: "http://www.apache.org/licenses/LICENSE-2.0.html" -servers: - - url: http://localhost:8070/ocs/v1 - description: DEV server - - url: https://api.opendesktop.cc/ocs/v1 - description: Sandbox server (uses test data) - - url: https://api.opendesktop.org/ocs/v1 - description: Production server (uses live data) -paths: - /content/categories: - get: - description: Returns a list of available categories - tags: - - content - security: - - BasicAuth: [] -# - ApiKeyAuth: [] - responses: - 200: - description: "successful operation" - content: - application/json: - schema: - type: "object" - properties: - meta: - $ref: "#/components/schemas/Meta" - data: - type: "array" - items: - $ref: "#/components/schemas/Category" - xml: - name: "data" - wrapped: true - application/xml: - schema: - type: "object" - properties: - meta: - $ref: "#/components/schemas/Meta" - categories: - type: "array" - items: - $ref: "#/components/schemas/Category" - xml: - name: "data" - wrapped: true - xml: - name: "ocs" - wrapped: true - /content/data: - get: - description: Gets a list of a specific set of contents. - tags: - - content - security: - - BasicAuth: [] -# - ApiKeyAuth: [] - parameters: - - in: query - name: categories - schema: - type: string - description: Requested category IDs separated by ",". For backward compatibility with the OCS API specification, the values can also be separated by "x". - - in: query - name: search - schema: - type: string - description: The part of the name of the item you want to find. - - in: query - name: tags - schema: - type: string - description: tags parameter values separated by "," and "|" for or filter - - in: query - name: xdg_types - schema: - type: string - description: xdg_types parameter values separated by "," - - in: query - name: ghns_excluded - schema: - type: string - - in: query - name: user - schema: - type: string - description: show only contents from one specific user. - - in: query - name: showfavorites - schema: - type: string - description: Show only favorites for auhtorized user - - in: query - name: sortmode - schema: - type: string - enum: [new,alpha,high,down] - - in: query - name: page - schema: - type: string - description: The content page. You can control the size of a page with the pagesize argument. The first page is 0, the second is 1, ... - - in: query - name: pagesize - schema: - type: string - description: The amount of entries per page. - responses: - 200: - description: "successful operation" - /content/data/{contentid}: - get: - description: Read content data of one specific content. - tags: - - content - security: - - BasicAuth: [] -# - ApiKeyAuth: [] - parameters: - - in: path - name: contentid - schema: - type: integer - required: true - responses: - 200: - description: "successful operation" - /content/download/{contentid}/{itemid}: - get: - description: Download or buy one specific content item. links to the package and links to repositories are supported. You get the dowloadlink or the packagename/packagerepository comination in the XML. - tags: - - content - security: - - BasicAuth: [] - parameters: - - in: path - name: contentid - schema: - type: integer - required: true - - in: path - name: itemid - schema: - type: integer - required: true - responses: - 200: - description: "successful operation" - /content/previewpic/{contentid}: - get: - description: tbd - tags: - - content - security: - - BasicAuth: [] - parameters: - - in: path - name: contentid - schema: - type: integer - required: true - responses: - 200: - description: "successful operation" - /content/vote/{contentid}: - get: - description: Vote for one specific content. - tags: - - content - security: - - BasicAuth: [] - parameters: - - in: path - name: contentid - schema: - type: integer - required: true - responses: - 200: - description: "successful operation" - /person/check: - post: - description: Check if the given login and password or the API key is valid. It returns the associated username. - tags: - - person - requestBody: - required: true - content: - application/x-www-form-urlencoded: - schema: - type: object - properties: - login: #