UNPKG

@sourceloop/ctrl-plane-subscription-service

Version:

Subscription management microservice for SaaS control plane.

1,895 lines (1,894 loc) 244 kB
{ "openapi": "3.0.0", "info": { "title": "Subscription Service", "version": "1.0.0", "description": "Subscription management microservice for SaaS control plane.", "contact": { "name": "Sourcefuse" } }, "paths": { "/billing-customer/{tenantId}": { "patch": { "x-controller-name": "BillingCustomerController", "x-operation-name": "updateById", "tags": [ "BillingCustomerController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "BillingCustomer PATCH success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 5327 |\n", "parameters": [ { "name": "tenantId", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerDtoPartial" } } }, "x-parameter-index": 1 }, "operationId": "BillingCustomerController.updateById" }, "delete": { "x-controller-name": "BillingCustomerController", "x-operation-name": "deleteById", "tags": [ "BillingCustomerController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "BillingCustomer DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 5331 |\n", "parameters": [ { "name": "tenantId", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "BillingCustomerController.deleteById" } }, "/billing-customer": { "post": { "x-controller-name": "BillingCustomerController", "x-operation-name": "create", "tags": [ "BillingCustomerController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "BillingCustomer model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewBillingCustomer" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 5321 |\n", "parameters": [ { "name": "tenantId", "in": "header", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewCustomer" } } } }, "operationId": "BillingCustomerController.create" }, "get": { "x-controller-name": "BillingCustomerController", "x-operation-name": "getCustomer", "tags": [ "BillingCustomerController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "BillingCustomer model ", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerDto" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 5324 |\n", "parameters": [ { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/billing_customer.Filter" } } } } ], "operationId": "BillingCustomerController.getCustomer" } }, "/billing-cycles/count": { "get": { "x-controller-name": "BillinCycleController", "x-operation-name": "count", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "BillingCycle model count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7024 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "billing_cycles.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<BillingCycle>" } } } } ], "operationId": "BillinCycleController.count" } }, "/billing-cycles/{id}": { "put": { "x-controller-name": "BillinCycleController", "x-operation-name": "replaceById", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "BillingCycle PUT success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7022 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingCycle" } } }, "x-parameter-index": 1 }, "operationId": "BillinCycleController.replaceById" }, "patch": { "x-controller-name": "BillinCycleController", "x-operation-name": "updateById", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "BillingCycle PATCH success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7022 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingCyclePartial" } } }, "x-parameter-index": 1 }, "operationId": "BillinCycleController.updateById" }, "get": { "x-controller-name": "BillinCycleController", "x-operation-name": "findById", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "BillingCycle model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingCycleWithRelations" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7024 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true }, { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/billing_cycles.Filter" } } } } ], "operationId": "BillinCycleController.findById" }, "delete": { "x-controller-name": "BillinCycleController", "x-operation-name": "deleteById", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "BillingCycle DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7023 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "BillinCycleController.deleteById" } }, "/billing-cycles": { "post": { "x-controller-name": "BillinCycleController", "x-operation-name": "create", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "BillingCycle model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingCycle" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7021 |\n", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewBillingCycle" } } } }, "operationId": "BillinCycleController.create" }, "patch": { "x-controller-name": "BillinCycleController", "x-operation-name": "updateAll", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "BillingCycle PATCH success count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7022 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "billing_cycles.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<BillingCycle>" } } } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingCyclePartial" } } } }, "operationId": "BillinCycleController.updateAll" }, "get": { "x-controller-name": "BillinCycleController", "x-operation-name": "find", "tags": [ "BillinCycleController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Array of BillingCycle model instances", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BillingCycleWithRelations" } } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7024 |\n", "parameters": [ { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/billing_cycles.Filter1" } } } } ], "operationId": "BillinCycleController.find" } }, "/billing-invoice/{invoiceId}/payments": { "post": { "x-controller-name": "BillingInvoiceController", "x-operation-name": "applyPaymentForInvoice", "tags": [ "BillingInvoiceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "invoice model instance" } }, "description": "\n\n| Permissions |\n| ------- |\n| 5323 |\n", "parameters": [ { "name": "invoiceId", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionDtoPartial" } } }, "x-parameter-index": 1 }, "operationId": "BillingInvoiceController.applyPaymentForInvoice" } }, "/billing-invoice/{invoiceId}": { "patch": { "x-controller-name": "BillingInvoiceController", "x-operation-name": "updateById", "tags": [ "BillingInvoiceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Billing Invoice PATCH success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 5329 |\n", "parameters": [ { "name": "invoiceId", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceDtoPartial" } } }, "x-parameter-index": 1 }, "operationId": "BillingInvoiceController.updateById" }, "get": { "x-controller-name": "BillingInvoiceController", "x-operation-name": "getInvoice", "tags": [ "BillingInvoiceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "get invoice", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceDto" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 5326 |\n", "parameters": [ { "name": "invoiceId", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "BillingInvoiceController.getInvoice" }, "delete": { "x-controller-name": "BillingInvoiceController", "x-operation-name": "deleteById", "tags": [ "BillingInvoiceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Billing Invoice DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 5332 |\n", "parameters": [ { "name": "invoiceId", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "BillingInvoiceController.deleteById" } }, "/billing-invoice": { "post": { "x-controller-name": "BillingInvoiceController", "x-operation-name": "create", "tags": [ "BillingInvoiceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "invoice model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceDto" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 5323 |\n", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/newInvoice" } } } }, "operationId": "BillingInvoiceController.create" } }, "/billing-payment-source/{paymentSourceId}": { "delete": { "x-controller-name": "BillingPaymentSourceController", "x-operation-name": "deleteById", "tags": [ "BillingPaymentSourceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Billing Payment Source DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 5332 |\n", "parameters": [ { "name": "paymentSourceId", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "BillingPaymentSourceController.deleteById" } }, "/billing-payment-source": { "post": { "x-controller-name": "BillingPaymentSourceController", "x-operation-name": "create", "tags": [ "BillingPaymentSourceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Payment model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentSourceDto" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 5322 |\n", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewPaymentSource" } } } }, "operationId": "BillingPaymentSourceController.create" }, "get": { "x-controller-name": "BillingPaymentSourceController", "x-operation-name": "getPaymentSource", "tags": [ "BillingPaymentSourceController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "get payment source", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentSourceDto" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 5325 |\n", "parameters": [ { "name": "paymentSourceId", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "BillingPaymentSourceController.getPaymentSource" } }, "/currencies/count": { "get": { "x-controller-name": "CurrencyController", "x-operation-name": "count", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Currency model count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7028 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "currencies.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<Currency>" } } } } ], "operationId": "CurrencyController.count" } }, "/currencies/{id}": { "put": { "x-controller-name": "CurrencyController", "x-operation-name": "replaceById", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Currency PUT success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7026 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Currency" } } }, "x-parameter-index": 1 }, "operationId": "CurrencyController.replaceById" }, "patch": { "x-controller-name": "CurrencyController", "x-operation-name": "updateById", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Currency PATCH success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7026 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrencyPartial" } } }, "x-parameter-index": 1 }, "operationId": "CurrencyController.updateById" }, "get": { "x-controller-name": "CurrencyController", "x-operation-name": "findById", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Currency model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrencyWithRelations" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7028 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true }, { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/currencies.Filter" } } } } ], "operationId": "CurrencyController.findById" }, "delete": { "x-controller-name": "CurrencyController", "x-operation-name": "deleteById", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Currency DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7027 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "CurrencyController.deleteById" } }, "/currencies": { "post": { "x-controller-name": "CurrencyController", "x-operation-name": "create", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Currency model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Currency" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7025 |\n", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewCurrency" } } } }, "operationId": "CurrencyController.create" }, "patch": { "x-controller-name": "CurrencyController", "x-operation-name": "updateAll", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Currency PATCH success count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7026 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "currencies.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<Currency>" } } } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrencyPartial" } } } }, "operationId": "CurrencyController.updateAll" }, "get": { "x-controller-name": "CurrencyController", "x-operation-name": "find", "tags": [ "CurrencyController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Array of Currency model instances", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CurrencyWithRelations" } } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7028 |\n", "parameters": [ { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/currencies.Filter1" } } } } ], "operationId": "CurrencyController.find" } }, "/feature-values/count": { "get": { "x-controller-name": "FeatureValuesController", "x-operation-name": "count", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "FeatureValues model count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| ViewFeatureValues |\n| 9 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "feature_values.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<FeatureValues>" } } } } ], "operationId": "FeatureValuesController.count" } }, "/feature-values/{id}": { "put": { "x-controller-name": "FeatureValuesController", "x-operation-name": "replaceById", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "FeatureValues PUT success" } }, "description": "\n\n| Permissions |\n| ------- |\n| UpdateFeatureValues |\n| 11 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureValues" } } }, "x-parameter-index": 1 }, "operationId": "FeatureValuesController.replaceById" }, "patch": { "x-controller-name": "FeatureValuesController", "x-operation-name": "updateById", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "FeatureValues PATCH success" } }, "description": "\n\n| Permissions |\n| ------- |\n| UpdateFeatureValues |\n| 11 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureValuesPartial" } } }, "x-parameter-index": 1 }, "operationId": "FeatureValuesController.updateById" }, "get": { "x-controller-name": "FeatureValuesController", "x-operation-name": "findById", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "FeatureValues model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureValuesWithRelations" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| ViewFeatureValues |\n| 9 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true }, { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/feature_values.Filter" } } } } ], "operationId": "FeatureValuesController.findById" }, "delete": { "x-controller-name": "FeatureValuesController", "x-operation-name": "deleteById", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "FeatureValues DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| DeleteFeatureValues |\n| 12 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "FeatureValuesController.deleteById" } }, "/feature-values": { "post": { "x-controller-name": "FeatureValuesController", "x-operation-name": "create", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "FeatureValues model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureValues" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| CreateFeatureValues |\n| 10 |\n", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewFeatureValues" } } } }, "operationId": "FeatureValuesController.create" }, "patch": { "x-controller-name": "FeatureValuesController", "x-operation-name": "updateAll", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "FeatureValues PATCH success count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| UpdateFeatureValues |\n| 11 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "feature_values.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<FeatureValues>" } } } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureValuesPartial" } } } }, "operationId": "FeatureValuesController.updateAll" }, "get": { "x-controller-name": "FeatureValuesController", "x-operation-name": "find", "tags": [ "FeatureValuesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Array of FeatureValues model instances", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FeatureValuesWithRelations" } } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| ViewFeatureValues |\n| 9 |\n", "parameters": [ { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/feature_values.Filter1" } } } } ], "operationId": "FeatureValuesController.find" } }, "/features/count": { "get": { "x-controller-name": "FeatureController", "x-operation-name": "count", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Feature model count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| ViewFeature |\n| 1 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "features.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<Feature>" } } } } ], "operationId": "FeatureController.count" } }, "/features/{id}": { "put": { "x-controller-name": "FeatureController", "x-operation-name": "replaceById", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Feature PUT success" } }, "description": "\n\n| Permissions |\n| ------- |\n| UpdateFeature |\n| 3 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Feature" } } }, "x-parameter-index": 1 }, "operationId": "FeatureController.replaceById" }, "patch": { "x-controller-name": "FeatureController", "x-operation-name": "updateById", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Feature PATCH success" } }, "description": "\n\n| Permissions |\n| ------- |\n| UpdateFeature |\n| 3 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeaturePartial" } } }, "x-parameter-index": 1 }, "operationId": "FeatureController.updateById" }, "get": { "x-controller-name": "FeatureController", "x-operation-name": "findById", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Feature model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureWithRelations" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| ViewFeature |\n| 1 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true }, { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/features.Filter" } } } } ], "operationId": "FeatureController.findById" }, "delete": { "x-controller-name": "FeatureController", "x-operation-name": "deleteById", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "Feature DELETE success" } }, "description": "\n\n| Permissions |\n| ------- |\n| DeleteFeature |\n| 4 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "operationId": "FeatureController.deleteById" } }, "/features": { "post": { "x-controller-name": "FeatureController", "x-operation-name": "create", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Feature model instance", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Feature" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| CreateFeature |\n| 2 |\n", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewFeature" } } } }, "operationId": "FeatureController.create" }, "patch": { "x-controller-name": "FeatureController", "x-operation-name": "updateAll", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Feature PATCH success count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| UpdateFeature |\n| 3 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "features.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<Feature>" } } } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeaturePartial" } } } }, "operationId": "FeatureController.updateAll" }, "get": { "x-controller-name": "FeatureController", "x-operation-name": "find", "tags": [ "FeatureController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Array of Feature model instances", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FeatureWithRelations" } } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| ViewFeature |\n| 1 |\n", "parameters": [ { "name": "filter", "in": "query", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/features.Filter1" } } } } ], "operationId": "FeatureController.find" } }, "/ping": { "get": { "x-controller-name": "PingController", "x-operation-name": "ping", "tags": [ "PingController" ], "responses": { "200": { "description": "Ping Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PingResponse" } } } } }, "description": "", "operationId": "PingController.ping" } }, "/plan-sizes/count": { "get": { "x-controller-name": "PlanSizesController", "x-operation-name": "count", "tags": [ "PlanSizesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "PlanSizes model count", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/loopback.Count" } } } } }, "description": "\n\n| Permissions |\n| ------- |\n| 7029 |\n", "parameters": [ { "name": "where", "in": "query", "content": { "application/json": { "schema": { "type": "object", "title": "plan_sizes.WhereFilter", "additionalProperties": true, "x-typescript-type": "@loopback/repository#Where<PlanSizes>" } } } } ], "operationId": "PlanSizesController.count" } }, "/plan-sizes/{id}": { "put": { "x-controller-name": "PlanSizesController", "x-operation-name": "replaceById", "tags": [ "PlanSizesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": { "description": "PlanSizes PUT success" } }, "description": "\n\n| Permissions |\n| ------- |\n| 7031 |\n", "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanSizes" } } }, "x-parameter-index": 1 }, "operationId": "PlanSizesController.replaceById" }, "patch": { "x-controller-name": "PlanSizesController", "x-operation-name": "updateById", "tags": [ "PlanSizesController" ], "security": [ { "HTTPBearer": [] } ], "responses": { "204": {