{ "consumes": [ "application/json" ], "definitions": { "contributorsv1CreateResponse": { "type": "object" }, "contributorsv1DeleteResponse": { "type": "object" }, "contributorsv1ListResponse": { "type": "object" }, "contributorsv1UpdateResponse": { "type": "object" }, "licensesv1ListResponse": { "type": "object" }, "packagesv1CreateResponse": { "type": "object" }, "packagesv1DeleteResponse": { "type": "object" }, "packagesv1ListResponse": { "type": "object" }, "packagesv1ReadResponse": { "type": "object" }, "packagesv1UpdateResponse": { "type": "object" }, "productsv1CreateRequest": { "type": "object" }, "productsv1CreateResponse": { "type": "object" }, "productsv1DeleteResponse": { "type": "object" }, "productsv1ListResponse": { "type": "object" }, "productsv1ReadResponse": { "type": "object" }, "productsv1UpdateResponse": { "type": "object" }, "protobufAny": { "additionalProperties": {}, "properties": { "@type": { "type": "string" } }, "type": "object" }, "rpcStatus": { "properties": { "code": { "format": "int32", "type": "integer" }, "details": { "items": { "$ref": "#/definitions/protobufAny", "type": "object" }, "type": "array" }, "message": { "type": "string" } }, "type": "object" }, "tokensv1CreateRequest": { "type": "object" }, "tokensv1CreateResponse": { "type": "object" }, "tokensv1DeleteResponse": { "type": "object" }, "tokensv1ListResponse": { "type": "object" }, "v1AuthenticateRequest": { "type": "object" }, "v1AuthenticateResponse": { "type": "object" }, "v1CancelResponse": { "type": "object" }, "v1CurrentResponse": { "type": "object" }, "v1PurchaseRequest": { "type": "object" }, "v1PurchaseResponse": { "type": "object" }, "v1SignupRequest": { "type": "object" }, "v1SignupResponse": { "type": "object" } }, "info": { "title": "The Licensing API", "version": "v1.0" }, "paths": { "/v1/licenses": { "get": { "operationId": "LicenseService_List", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/licensesv1ListResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "LicenseService" ] }, "post": { "operationId": "LicenseService_Purchase", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/v1PurchaseRequest" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1PurchaseResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "LicenseService" ] } }, "/v1/licenses/{licenseId}": { "delete": { "operationId": "LicenseService_Cancel", "parameters": [ { "in": "path", "name": "licenseId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1CancelResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "LicenseService" ] } }, "/v1/products": { "get": { "operationId": "ProductService_List", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/productsv1ListResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ProductService" ] }, "post": { "operationId": "ProductService_Create", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/productsv1CreateRequest" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/productsv1CreateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ProductService" ] } }, "/v1/products/{productId}": { "delete": { "operationId": "ProductService_Delete", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/productsv1DeleteResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ProductService" ] }, "get": { "operationId": "ProductService_Read", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/productsv1ReadResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ProductService" ] }, "post": { "operationId": "ProductService_Update", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "body", "name": "body", "required": true, "schema": { "type": "object" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/productsv1UpdateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ProductService" ] } }, "/v1/products/{productId}/contributors": { "get": { "operationId": "ContributorService_List", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/contributorsv1ListResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ContributorService" ] }, "post": { "operationId": "ContributorService_Create", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "body", "name": "body", "required": true, "schema": { "type": "object" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/contributorsv1CreateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ContributorService" ] } }, "/v1/products/{productId}/contributors/{contributorId}": { "delete": { "operationId": "ContributorService_Delete", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "path", "name": "contributorId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/contributorsv1DeleteResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ContributorService" ] }, "post": { "operationId": "ContributorService_Update", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "path", "name": "contributorId", "required": true, "type": "string" }, { "in": "body", "name": "body", "required": true, "schema": { "type": "object" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/contributorsv1UpdateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "ContributorService" ] } }, "/v1/products/{productId}/packages": { "get": { "operationId": "PackageService_List", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/packagesv1ListResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "PackageService" ] }, "post": { "operationId": "PackageService_Create", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "body", "name": "body", "required": true, "schema": { "type": "object" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/packagesv1CreateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "PackageService" ] } }, "/v1/products/{productId}/packages/{packageName}": { "delete": { "operationId": "PackageService_Delete", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "path", "name": "packageName", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/packagesv1DeleteResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "PackageService" ] }, "get": { "operationId": "PackageService_Read", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "path", "name": "packageName", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/packagesv1ReadResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "PackageService" ] }, "post": { "operationId": "PackageService_Update", "parameters": [ { "in": "path", "name": "productId", "required": true, "type": "string" }, { "in": "path", "name": "packageName", "required": true, "type": "string" }, { "in": "body", "name": "body", "required": true, "schema": { "type": "object" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/packagesv1UpdateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "PackageService" ] } }, "/v1/token": { "post": { "operationId": "TokenService_Authenticate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/v1AuthenticateRequest" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1AuthenticateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "TokenService" ] } }, "/v1/tokens": { "get": { "operationId": "TokenService_List", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/tokensv1ListResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "TokenService" ] }, "post": { "operationId": "TokenService_Create", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/tokensv1CreateRequest" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/tokensv1CreateResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "TokenService" ] } }, "/v1/tokens/{tokenId}": { "delete": { "operationId": "TokenService_Delete", "parameters": [ { "in": "path", "name": "tokenId", "required": true, "type": "string" } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/tokensv1DeleteResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "TokenService" ] } }, "/v1/users": { "post": { "operationId": "UserService_Signup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/v1SignupRequest" } } ], "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1SignupResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "UserService" ] } }, "/v1/users/current": { "get": { "operationId": "UserService_Current", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/v1CurrentResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "UserService" ] } } }, "produces": [ "application/json" ], "swagger": "2.0", "tags": [ { "name": "ContributorService" }, { "name": "LicenseService" }, { "name": "PackageService" }, { "name": "ProductService" }, { "name": "TokenService" }, { "name": "UserService" } ] }