openapi: 3.0.1 info: title: Backendless REST Cache CloudCode API description: REST API for the Backendless backend-as-a-service platform. Every request is addressed to a specific application using its application id and REST API key, both carried as path segments immediately after the host. Authenticated operations additionally require the user-token returned by the login endpoint, sent in the user-token request header. This specification covers the core documented services - Data, Users, Files, Messaging and Push, Geo, Cache, Atomic Counters, and Cloud Code custom service invocation. termsOfService: https://backendless.com/terms-of-service/ contact: name: Backendless Support url: https://support.backendless.com version: '1.0' servers: - url: https://api.backendless.com/{app-id}/{rest-api-key} description: Backendless application endpoint variables: app-id: default: APP_ID description: The application id assigned to your Backendless app. rest-api-key: default: REST_API_KEY description: The REST API key generated for your Backendless app. security: - userToken: [] tags: - name: CloudCode description: Invocation of custom serverless API services. paths: /services/{service-name}/{method-name}: post: operationId: invokeCloudCodeService tags: - CloudCode summary: Invoke a custom Cloud Code service method description: Calls a method on a developer-defined serverless API service deployed to Backendless Cloud Code. The request and response shapes are defined by the custom service implementation. parameters: - name: service-name in: path required: true schema: type: string - name: method-name in: path required: true schema: type: string requestBody: required: false content: application/json: schema: type: object additionalProperties: true responses: '200': description: The value returned by the custom service method. content: application/json: schema: type: object additionalProperties: true '400': $ref: '#/components/responses/Error' components: schemas: ErrorResponse: type: object properties: code: type: integer description: Backendless error code (e.g. 3003 for invalid credentials). message: type: string responses: Error: description: A Backendless error response. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' securitySchemes: userToken: type: apiKey in: header name: user-token description: Session token returned by POST /users/login. Required on operations that run in the context of an authenticated user. The application id and REST API key that scope every request are carried in the server URL path rather than as a security scheme.