@sourceloop/ctrl-plane-subscription-service
Version:
Subscription management microservice for SaaS control plane.
1,909 lines (1,908 loc) • 201 kB
JSON
{
"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-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"
}
},
"/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"
],
"responses": {
"200": {
"description": "PlanSizes model count",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/loopback.Count"
}
}
}
}
},
"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"
],
"responses": {
"204": {
"description": "No Content",
"content": {
"application/json": {
"schema": {
"description": "PlanSizes PUT success"
}
}
}
}
},
"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"
],
"responses": {
"204": {
"description": "No Content",
"content": {
"application/json": {
"schema": {
"description": "PlanSizes PATCH success"
}
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanSizesPartial"
}
}
},
"x-parameter-index": 1
},
"operationId": "PlanSizesController.updateById"
},
"get": {
"x-controller-name": "PlanSizesController",
"x-operation-name": "findById",
"tags": [
"PlanSizesController"
],
"responses": {
"200": {
"description": "PlanSizes model instance",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanSizesWithRelations"
}
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
},
{
"name": "filter",
"in": "query",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/plan_sizes.Filter"
}
}
}
}
],
"operationId": "PlanSizesController.findById"
},
"delete": {
"x-controller-name": "PlanSizesController",
"x-operation-name": "deleteById",
"tags": [
"PlanSizesController"
],
"responses": {
"204": {
"description": "No Content",
"content": {
"application/json": {
"schema": {
"description": "PlanSizes DELETE success"
}
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"operationId": "PlanSizesController.deleteById"
}
},
"/plan-sizes": {
"post": {
"x-controller-name": "PlanSizesController",
"x-operation-name": "create",
"tags": [
"PlanSizesController"
],
"responses": {
"200": {
"description": "PlanSizes model instance",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanSizes"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewPlanSizes"
}
}
}
},
"operationId": "PlanSizesController.create"
},
"patch": {
"x-controller-name": "PlanSizesController",
"x-operation-name": "updateAll",
"tags": [
"PlanSizesController"
],
"responses": {
"200": {
"description": "PlanSizes PATCH success count",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/loopback.Count"
}
}
}
}
},
"parameters": [
{
"name": "where",
"in": "query",
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "plan_sizes.WhereFilter",
"additionalProperties": true,
"x-typescript-type": "@loopback/repository#Where<PlanSizes>"
}
}
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanSizesPartial"
}
}
}
},
"operationId": "PlanSizesController.updateAll"
},
"get": {
"x-controller-name": "PlanSizesController",
"x-operation-name": "find",
"tags": [
"PlanSizesController"
],
"responses": {
"200": {
"description": "Array of PlanSizes model instances",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PlanSizesWithRelations"
}
}
}
}
}
},
"parameters": [
{
"name": "filter",
"in": "query",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/plan_sizes.Filter1"
}
}
}
}
],
"operationId": "PlanSizesController.find"
}
},
"/plans/count": {
"get": {
"x-controller-name": "PlanController",
"x-operation-name": "count",
"tags": [
"PlanController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {
"200": {
"description": "Plan model count",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/loopback.Count"
}
}
}
}
},
"description": "\n\n| Permissions |\n| ------- |\n| 7008 |\n",
"parameters": [
{
"name": "where",
"in": "query",
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "plans.WhereFilter",
"additionalProperties": true,
"x-typescript-type": "@loopback/repository#Where<Plan>"
}
}
}
}
],
"operationId": "PlanController.count"
}
},
"/plans/{id}/subscriptions": {
"get": {
"x-controller-name": "PlanSubscriptionController",
"x-operation-name": "find",
"tags": [
"PlanSubscriptionController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {
"200": {
"description": "Plan model instance",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubscriptionWithRelations"
}
}
}
}
},
"description": "\n\n| Permissions |\n| ------- |\n| 7008 |\n| 7004 |\n",
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"operationId": "PlanSubscriptionController.find"
}
},
"/plans/{id}": {
"put": {
"x-controller-name": "PlanController",
"x-operation-name": "replaceById",
"tags": [
"PlanController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {
"204": {
"description": "Plan PUT success"
}
},
"description": "\n\n| Permissions |\n| ------- |\n| 7006 |\n",
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Plan"
}
}
},
"x-parameter-index": 1
},
"operationId": "PlanController.replaceById"
},
"patch": {
"x-controller-name": "PlanController",
"x-operation-name": "updateById",
"tags": [
"PlanController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {
"204": {
"description": "Plan PATCH success"
}
},
"description": "\n\n| Permissions |\n| ------- |\n| 7006 |\n",
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanPartial"
}
}
},
"x-parameter-index": 1
},
"operationId": "PlanController.updateById"
},
"get": {
"x-controller-name": "PlanController",
"x-operation-name": "findById",
"tags": [
"PlanController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {
"200": {
"description": "Plan model instance",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PlanWithRelations"
}
}
}
}
},
"description": "\n\n| Permissions |\n| ------- |\n| 7008 |\n",
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
},
{
"name": "filter",
"in": "query",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/plans.Filter"
}
}
}
}
],
"operationId": "PlanController.findById"
},
"delete": {
"x-controller-name": "PlanController",
"x-operation-name": "deleteById",
"tags": [
"PlanController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {
"204": {
"description": "Plan DELETE success"
}
},
"description": "\n\n| Permissions |\n| ------- |\n| 7007 |\n",
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"operationId": "PlanController.deleteById"
}
},
"/plans": {
"post": {
"x-controller-name": "PlanController",
"x-operation-name": "create",
"tags": [
"PlanController"
],
"security": [
{
"HTTPBearer": []
}
],
"responses": {