{"swagger":"2.0","info":{"description":"Alax store gateway API.","version":"1.0.0","title":"Alax gateway","contact":{"name":"Michal Grman","email":"michal@decent.ch"}},"host":"virtserver.swaggerhub.com","basePath":"/DECENT/alax-gateway/1.0.0","tags":[{"name":"public"},{"name":"vendor"},{"name":"admin"},{"name":"user"},{"name":"customer"},{"name":"sso"}],"schemes":["https"],"consumes":["application/vnd.decent.alax.v1+json"],"produces":["application/vnd.decent.alax.v1+json"],"paths":{"/feeds":{"get":{"tags":["public"],"summary":"Get all feeds (WIP)","description":"Get all feeds (WIP).","operationId":"FeedsController:index","parameters":[],"responses":{"200":{"description":"WIP"},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 406])); }"}}},"/apps":{"get":{"tags":["public"],"summary":"Get all public apps","description":"Get all public apps, optionaly filtered by tags.","operationId":"AppsController:index","parameters":[{"name":"tags","in":"query","description":"Name of tag as filter criteria","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"csv"}],"responses":{"200":{"description":"App list data.","schema":{"$ref":"#/definitions/AppListData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 406])); }"}}},"/apps/{applicationId}":{"get":{"tags":["public"],"summary":"Get public app","description":"Get public app.","operationId":"AppsController:show","parameters":[{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"}],"responses":{"200":{"description":"App data.","schema":{"$ref":"#/definitions/AppData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 404, 406])); }"}}},"/apps/{applicationId}/products":{"get":{"tags":["public"],"summary":"Get all application products.","description":"Get all application products.","operationId":"AppProductsController:index","parameters":[{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"}],"responses":{"200":{"description":"Product list","schema":{"$ref":"#/definitions/ProductListData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}}},"/apps/{applicationId}/products/{productId}":{"get":{"tags":["public"],"summary":"Get app product","description":"Get app product.","operationId":"AppProductsController:show","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"productId","in":"path","description":"Given id of product.","required":true,"type":"integer"}],"responses":{"200":{"description":"App version","schema":{"$ref":"#/definitions/ProductData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}}},"/apps/{applicationId}/distribution":{"get":{"tags":["public"],"summary":"Get public app distribution","description":"Get public app distribution.","operationId":"AppsDistributionController:show","parameters":[{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"}],"responses":{"200":{"description":"App distribution data.","schema":{"$ref":"#/definitions/AppDistributionData"}},"402":{"description":"Payment required.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 404, 406])); }"}}},"/apps/search":{"get":{"tags":["public"],"summary":"Search all public apps","description":"Search all public apps.","operationId":"AppsController:search","parameters":[{"name":"q","in":"query","description":"Search query for apps (e.g. name).","required":false,"type":"string"}],"responses":{"200":{"description":"Application list","schema":{"$ref":"#/definitions/AppListData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 406])); }"}}},"/users":{"get":{"tags":["admin"],"summary":"Get all users","description":"Get all users (**customers excluded**).","operationId":"UsersController:index","parameters":[],"responses":{"200":{"description":"User list","schema":{"$ref":"#/definitions/UserListData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 406])); }"}},"post":{"tags":["admin"],"summary":"Create new user","description":"Create new user.","operationId":"UsersController:create","parameters":[{"in":"body","name":"user","description":"User schema.","required":true,"schema":{"$ref":"#/definitions/UserCreatePayload"}}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/UserModel"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbiden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}}},"/users/{userId}":{"get":{"tags":["admin"],"summary":"Get user","description":"Get user.","operationId":"UsersController:show","parameters":[{"name":"userId","in":"path","description":"Given id of user.","required":true,"type":"integer"}],"responses":{"200":{"description":"User","schema":{"$ref":"#/definitions/UserData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"delete":{"tags":["admin"],"summary":"Delete user","description":"Delete user.","operationId":"UsersController:delete","parameters":[{"name":"userId","in":"path","description":"Given id of user.","required":true,"type":"integer"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406])); }"}},"patch":{"tags":["admin"],"summary":"Edit user","description":"Edit user.","operationId":"UsersController:edit","parameters":[{"name":"userId","in":"path","description":"Given id of user.","required":true,"type":"integer"},{"in":"body","name":"user","description":"User schema.","required":true,"schema":{"$ref":"#/definitions/UserEditPayload"}}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 403, 404, 406, 415])); }"}}},"/user-account/auth/signin":{"post":{"tags":["user","sso"],"summary":"User's account signin","description":"User's account signin.","operationId":"UserAuthController:signin","parameters":[{"in":"body","name":"user","description":"User form schema.","required":true,"schema":{"$ref":"#/definitions/SignInUserPayload"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 404, 406, 415])); }"}}},"/user-account/auth/signout":{"delete":{"tags":["user","sso"],"summary":"User's account signout","description":"User's account signout.","operationId":"UserAuthController:signout","parameters":[],"responses":{"204":{"description":"Success: No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 406])); }"}}},"/user-account/signup":{"post":{"tags":["user"],"summary":"Signup new user","description":"Signup new user.","operationId":"UserAuthController:signup","parameters":[{"in":"body","name":"user","description":"User form schema.","required":true,"schema":{"$ref":"#/definitions/SignUpUserPayload"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 406, 415])); }"}}},"/user-account/signup/confirm/{code}":{"get":{"tags":["user","sso"],"summary":"Confirm new user","description":"Confirm new user.","operationId":"UserApproveController:show","produces":["text/html"],"parameters":[{"name":"code","in":"path","description":"Given confirmation code of user's account.","required":true,"type":"string"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 404, 406, 415, 422])); }"}}},"/user-account/resetpassword/{email}":{"post":{"tags":["user","sso"],"summary":"Reset user's password","description":"Reset user's password.","operationId":"UserAuthController:resetPassword","parameters":[{"name":"email","in":"path","description":"Email of account.","required":true,"type":"string"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 406, 415])); }"}}},"/user-account/me":{"get":{"tags":["user"],"summary":"Get user's account","description":"Get user's account.","operationId":"UserAuthController:show","parameters":[],"responses":{"200":{"description":"User","schema":{"$ref":"#/definitions/UserData"}},"401":{"description":"Unauthorized."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 404, 406])); }"}},"patch":{"tags":["user"],"summary":"Edit user's account","description":"Get user's account.","operationId":"UserAuthController:edit","parameters":[{"in":"body","name":"user","description":"User schema.","required":true,"schema":{"$ref":"#/definitions/UserEditPayload"}}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 406, 415])); }"}}},"/user-account/vendors":{"get":{"tags":["user"],"summary":"Get all vendors for user","description":"Get all vendors for user.","operationId":"UserVendorsController:index","parameters":[],"responses":{"200":{"description":"Vendor list","schema":{"$ref":"#/definitions/VendorListData"}},"401":{"description":"Unauthorized."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 406])); }"}}},"/vendors":{"get":{"tags":["admin"],"summary":"Get all vendors","description":"Get all vendors.","operationId":"VendorsController:index","parameters":[],"responses":{"200":{"description":"Vendor list","schema":{"$ref":"#/definitions/VendorListData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbiden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 406])); }"}},"post":{"tags":["vendor"],"summary":"Create new vendor","description":"Create new vendor's vendor.","operationId":"VendorsController:create","parameters":[{"in":"body","name":"vendor","description":"Vendor schema.","required":true,"schema":{"$ref":"#/definitions/VendorPayload"}}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/VendorModel"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbiden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor","self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}}},"/vendors/{vendorId}":{"get":{"tags":["vendor"],"summary":"Get vendor by given id","description":"Get vendor details by given id.","operationId":"VendorsController:show","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"}],"responses":{"200":{"description":"Vendor","schema":{"$ref":"#/definitions/VendorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"delete":{"tags":["vendor"],"summary":"Delete vendor by given id","description":"Delete vendor by given id.","operationId":"VendorsController:delete","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406])); }"}},"patch":{"tags":["vendor"],"summary":"Edit vendor by given id","description":"Edit vendor details by given id.","operationId":"VendorsController:edit","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"in":"body","name":"vendor","description":"Vendor schema.","required":true,"schema":{"$ref":"#/definitions/VendorPayload"}}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 403, 404, 406, 415])); }"}}},"/vendors/members/confirm/{code}":{"get":{"tags":["user","sso"],"summary":"Confirm new user","description":"Confirm new user.","operationId":"VendorMemberApproveController:show","produces":["text/html"],"parameters":[{"name":"code","in":"path","description":"Given confirmation code of user's account.","required":true,"type":"string"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 404, 406, 415, 422])); }"}}},"/vendors/{vendorId}/members":{"get":{"tags":["vendor"],"summary":"Get all vendor's members","description":"Get all vendor's members.","operationId":"VendorMembersController:index","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"}],"responses":{"200":{"description":"Vendor member list","schema":{"$ref":"#/definitions/VendorMemberListData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"post":{"tags":["vendor"],"summary":"Invite new member for vendor","description":"Invite new member for vendor.","operationId":"VendorMembersController:create","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"email","in":"query","description":"Email of user's account.","required":true,"type":"string","format":"email"}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/UserModel"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 404, 406, 409, 415])); }"}}},"/vendors/{vendorId}/members/{memberId}":{"delete":{"tags":["vendor"],"summary":"Remove vendor's member","description":"Remove vendor's member.","operationId":"VendorMembersController:delete","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"memberId","in":"path","description":"Given id of membership.","required":true,"type":"integer"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 409])); }"}}},"/vendors/{vendorId}/members/{memberId}/{event}":{"put":{"tags":["vendor"],"summary":"Trigger member into specific event","description":"Trigger member into specific event.","operationId":"VendorMembersController:update","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"memberId","in":"path","description":"Given id of membership.","required":true,"type":"integer"},{"name":"event","in":"path","description":"Given event which needs to be triggered.","required":true,"type":"string","enum":["confirm"]}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps":{"get":{"tags":["vendor"],"summary":"Get all vendor's applications","description":"Get all vendor's applications.","operationId":"VendorAppsController:index","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"}],"responses":{"200":{"description":"Application list","schema":{"$ref":"#/definitions/AppListData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"post":{"tags":["vendor"],"summary":"Create new application for vendor","description":"Create new application for vendor.","operationId":"VendorAppsController:create","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"in":"body","name":"application","description":"Application schema.","required":true,"schema":{"$ref":"#/definitions/AppPayload"}}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/AppModel"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}":{"get":{"tags":["vendor"],"summary":"Get vendor's app","description":"Get vendor's app.","operationId":"VendorAppsController:show","parameters":[{"name":"vendorId","in":"path","description":"Id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"App","schema":{"$ref":"#/definitions/AppData"}},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 403, 404, 406])); }"}},"delete":{"tags":["vendor"],"summary":"Delete app","description":"Delete app.","operationId":"VendorAppsController:delete","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 409, 415])); }"}},"patch":{"tags":["vendor"],"summary":"Edit app","description":"Edit app.","operationId":"VendorAppsController:edit","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"in":"body","name":"app","description":"App schema.","required":true,"schema":{"$ref":"#/definitions/AppPayload"}}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 403, 404, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/uploads":{"post":{"tags":["vendor"],"summary":"Upload app assets","description":"Upload app assets.","operationId":"VendorAppsController:upload","consumes":["multipart/form-data"],"parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"tags","in":"formData","description":"Asset file metadata to upload.","required":true,"type":"string"},{"name":"file","in":"formData","description":"Asset file to upload.","required":true,"type":"file"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (image/jpeg, image/png)."},"415":{"description":"Supported types (multipart/form-data)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]},"payload":{"maxbytes":10485760,"parse":true,"output":"stream"}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/assets/{assetId}":{"delete":{"tags":["vendor"],"summary":"Delete app asset","description":"Delete app asset.","operationId":"VendorAppsAssetsController:delete","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"assetId","in":"path","description":"Given id of asset.","required":true,"type":"integer","format":"int64"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (image/jpeg, image/png)."},"415":{"description":"Supported types (multipart/form-data)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]},"payload":{"maxbytes":10485760,"parse":true,"output":"stream"}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/{event}":{"put":{"tags":["vendor"],"summary":"Trigger app into specific event","description":"Trigger app into specific event.","operationId":"VendorAppsController:update","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"event","in":"path","description":"Given event which needs to be triggered.","required":true,"type":"string","enum":["publish"]}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/products":{"get":{"tags":["vendor"],"summary":"Get all vendor's application products.","description":"Get all vendor's application products.","operationId":"VendorAppProductsController:index","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"}],"responses":{"200":{"description":"Product list","schema":{"$ref":"#/definitions/ProductListData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"post":{"tags":["vendor"],"summary":"Create new product for application","description":"Create new product for application.","operationId":"VendorAppProductsController:create","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"},{"in":"body","name":"application","description":"Application schema.","required":true,"schema":{"$ref":"#/definitions/ProductPayload"}}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/ProductModel"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/products/{productId}":{"get":{"tags":["vendor"],"summary":"Get app product","description":"Get app product.","operationId":"VendorAppProductsController:show","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"productId","in":"path","description":"Given id of product.","required":true,"type":"integer"}],"responses":{"200":{"description":"App version","schema":{"$ref":"#/definitions/ProductData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"delete":{"tags":["vendor"],"summary":"Create new product for application","description":"Create new product for application.","operationId":"VendorAppProductsController:delete","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"},{"name":"productId","in":"path","description":"Given id of product.","required":true,"type":"integer"}],"responses":{"204":{"description":"No Content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}},"patch":{"tags":["vendor"],"summary":"Edit application product.","description":"Edit application product..","operationId":"VendorAppProductsController:edit","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of application.","required":true,"type":"integer"},{"name":"productId","in":"path","description":"Given id of product.","required":true,"type":"integer"},{"in":"body","name":"application","description":"Application schema.","required":true,"schema":{"$ref":"#/definitions/ProductPayload"}}],"responses":{"204":{"description":"No Content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/versions":{"get":{"tags":["vendor"],"summary":"Get all app versions","description":"Get all app versions.","operationId":"VendorAppVersionsController:index","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"App version list","schema":{"$ref":"#/definitions/VersionListData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"post":{"tags":["vendor"],"summary":"Create new version of app","description":"Create new version of app.","operationId":"VendorAppVersionsController:create","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"in":"body","name":"version","description":"Version schema.","required":true,"schema":{"$ref":"#/definitions/VersionPayload"}}],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/VersionModel"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 401, 403, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/versions/{versionId}":{"get":{"tags":["vendor"],"summary":"Get app version","description":"Get app version.","operationId":"VendorAppVersionsController:show","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"versionId","in":"path","description":"Given id of version.","required":true,"type":"integer"}],"responses":{"200":{"description":"App version","schema":{"$ref":"#/definitions/VersionData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"delete":{"tags":["vendor"],"summary":"Delete app version","description":"Delete app version.","operationId":"VendorAppVersionsController:delete","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer"},{"name":"versionId","in":"path","description":"Given id of version.","required":true,"type":"integer"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 404, 406])); }"}},"patch":{"tags":["vendor"],"summary":"Edit app version","description":"Edit app version.","operationId":"VendorAppVersionsController:edit","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer"},{"name":"versionId","in":"path","description":"Given id of version.","required":true,"type":"integer"},{"in":"body","name":"version","description":"Version schema.","required":true,"schema":{"$ref":"#/definitions/VersionPayload"}}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 403, 404, 406, 409, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/versions/{versionId}/uploads":{"post":{"tags":["vendor"],"summary":"Upload app assets","description":"Upload app assets.","operationId":"VendorAppVersionsController:upload","consumes":["multipart/form-data"],"parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer","format":"int64"},{"name":"versionId","in":"path","description":"Given id of app version.","required":true,"type":"integer"},{"name":"file","in":"formData","description":"Asset file to upload.","required":true,"type":"file"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (image/jpeg, image/png)."},"415":{"description":"Supported types (multipart/form-data)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]},"payload":{"maxbytes":1073741824,"parse":true,"output":"stream"}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 415])); }"}}},"/vendors/{vendorId}/apps/{applicationId}/versions/{versionId}/{event}":{"put":{"tags":["vendor"],"summary":"Trigger app version into specific event","description":"Trigger app version into specific event.","operationId":"VendorAppVersionsController:update","parameters":[{"name":"vendorId","in":"path","description":"Given id of vendor.","required":true,"type":"integer"},{"name":"applicationId","in":"path","description":"Given id of app.","required":true,"type":"integer"},{"name":"versionId","in":"path","description":"Given id of app version.","required":true,"type":"integer"},{"name":"event","in":"path","description":"Give event which needs to be triggered.","required":true,"type":"string","enum":["publish"]}],"responses":{"204":{"description":"Success: No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Error: Unauthorized."},"403":{"description":"Error: Forbidden."},"404":{"description":"Error: The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"409":{"description":"The request could not be completed due to a conflict.","schema":{"$ref":"#/definitions/ErrorData"}},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin","vendor"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406, 409, 415])); }"}}},"/customers":{"get":{"tags":["admin"],"summary":"Get all customers","description":"Get all customers (**users excluded**).","operationId":"CustomersController:index","parameters":[],"responses":{"200":{"description":"Success: Customer list","schema":{"$ref":"#/definitions/CustomerListData"}},"401":{"description":"Error: Unauthorized."},"403":{"description":"Error: Forbidden."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 406])); }"}}},"/customers/{customerId}":{"get":{"tags":["admin"],"summary":"Get customer","description":"Get customer.","operationId":"CustomersController:show","parameters":[{"name":"customerId","in":"path","description":"Given id of customer.","required":true,"type":"integer"}],"responses":{"200":{"description":"Success: Customer","schema":{"$ref":"#/definitions/CustomerData"}},"401":{"description":"Error: Unauthorized."},"403":{"description":"Error: Forbidden."},"404":{"description":"Error: The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 403, 404, 406])); }"}},"delete":{"tags":["admin"],"summary":"Delete customer","description":"Delete customer.","operationId":"CustomersController:delete","parameters":[{"name":"customerId","in":"path","description":"Given id of customer.","required":true,"type":"integer"}],"responses":{"204":{"description":"Success: No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Error: Unauthorized."},"403":{"description":"Error: Forbidden."},"404":{"description":"Error: The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 403, 404, 406])); }"}},"patch":{"tags":["admin"],"summary":"Edit customer","description":"Edit customer.","operationId":"CustomersController:edit","parameters":[{"name":"customerId","in":"path","description":"Given id of customer.","required":true,"type":"integer"},{"in":"body","name":"customer","description":"Customer schema.","required":true,"schema":{"$ref":"#/definitions/CustomerPayload"}}],"responses":{"204":{"description":"Success: No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Error: Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Error: Unauthorized."},"403":{"description":"Error: Forbidden."},"404":{"description":"Error: The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["admin"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 403, 404, 406, 415])); }"}}},"/customer-account/auth/signin":{"post":{"tags":["customer","sso"],"summary":"Customer's account signin","description":"Customer's account signin.","operationId":"CustomerAuthController:signin","parameters":[{"in":"body","name":"customer","description":"Customer form schema.","required":true,"schema":{"$ref":"#/definitions/SignInCustomerPayload"}}],"responses":{"201":{"description":"Success: Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Error: Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"Error: The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 404, 406, 415])); }"}}},"/customer-account/auth/signout":{"delete":{"tags":["customer","sso"],"summary":"Customer's account signout","description":"Customer's account signout.","operationId":"CustomerAuthController:signout","parameters":[],"responses":{"204":{"description":"Success: No content","schema":{"$ref":"#/definitions/EmptyData"}},"401":{"description":"Unauthorized."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 401, 406])); }"}}},"/customer-account/signup":{"post":{"tags":["customer"],"summary":"Signup new customer","description":"Signup new customer.","operationId":"CustomerAuthController:signup","parameters":[{"in":"body","name":"customer","description":"Customer form schema.","required":true,"schema":{"$ref":"#/definitions/SignUpCustomerPayload"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 406, 415,422])); }"}}},"/customer-account/signup/confirm/{code}":{"put":{"tags":["customer","sso"],"summary":"Confirm new customer","description":"Confirm new customer.","operationId":"CustomerAuthController:signupConfirm","parameters":[{"name":"code","in":"path","description":"Given confirmation code of customer's account.","required":true,"type":"string"}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Conflict.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 404, 406, 415])); }"}}},"/customer-account/resetpassword/{phone}":{"post":{"tags":["customer","sso"],"summary":"Reset customer's password","description":"Reset customer's password.","operationId":"CustomerAuthController:resetPassword","parameters":[{"name":"phone","in":"path","description":"Given phone number of customer's account.","required":true,"type":"string"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 406, 415])); }"}}},"/customer-account/resetpassword/confirm/{code}":{"post":{"tags":["customer","sso"],"summary":"Reset customer's password","description":"Reset customer's password.","operationId":"CustomerAuthController:confirmPassword","parameters":[{"name":"code","in":"path","description":"Given code to reset password.","required":true,"type":"string"},{"in":"body","name":"password","description":"Reset password schema.","required":true,"schema":{"$ref":"#/definitions/ResetPasswordPayload"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"404":{"description":"Not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"422":{"description":"Unprocessable Entity error.","schema":{"$ref":"#/definitions/ErrorData"}}},"security":[],"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([201, 400, 404, 406, 415])); }"}}},"/customer-account/me":{"get":{"tags":["customer"],"summary":"Get customer's account","description":"Get customer's account.","operationId":"CustomerAuthController:show","parameters":[],"responses":{"200":{"description":"Customer","schema":{"$ref":"#/definitions/CustomerData"}},"401":{"description":"Unauthorized."},"404":{"description":"The specified resource was not found.","schema":{"$ref":"#/definitions/ErrorData"}},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([200, 401, 404, 406])); }"}},"patch":{"tags":["customer"],"summary":"Edit customer's account","description":"Edit customer's account.","operationId":"CustomerAuthController:edit","parameters":[{"in":"body","name":"customer","description":"Customer schema.","required":true,"schema":{"$ref":"#/definitions/CustomerModel"}}],"responses":{"204":{"description":"No content","schema":{"$ref":"#/definitions/EmptyData"}},"400":{"description":"Bad request.","schema":{"$ref":"#/definitions/ErrorData"}},"401":{"description":"Unauthorized."},"406":{"description":"Supported types (application/vnd.decent.alax.v1+json)."},"415":{"description":"Supported types (application/vnd.decent.alax.v1+json)."}},"security":[{"BearerAuth":[]}],"x-alax-gateway-integration":{"security":{"scopes":["self"]}},"x-stoplight":{"beforeScript":"function(ctx, request) { ctx.mock.set(true, _.sample([204, 400, 401, 406, 415])); }"}}}},"securityDefinitions":{"BearerAuth":{"description":"Bearer/JWT security header","type":"apiKey","name":"Authorization","in":"header","x-alax-gateway-security-scopes":["admin","vendor","funder","self"]}},"definitions":{"UserListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/UserListModel"}},"example":{"data":{"source":[{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"},{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}]},"error":null}},"UserData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/UserModel"}},"example":{"data":{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"},"error":null}},"ProductListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/ProductListModel"}},"example":{"data":{"source":[{"id":0,"name":"name","description":"description","state":"active","chain_content":{"id":2,"result":[{"id":"2.13.44","author":"1.2.243","co_authors":[],"expiration":"2019-01-23T23:00:00","created":"2018-04-17T07:33:15","price":{"map_price":[[1,{"amount":100000000,"asset_id":"1.3.0"}]]},"size":1,"synopsis":"{\"title\":\"cdn content\",\"description\":\"abcd\",\"content_type_id\":\"1.1.3.0\"}","URI":"https://alax.io?scheme=net.decent.app","quorum":0,"key_parts":[],"_hash":"10e7d47ecbb77cd319ce38f338d720a4d17a25b3","last_proof":[],"is_blocked":false,"AVG_rating":0,"num_of_ratings":0,"times_bought":1,"publishing_fee_escrow":{"amount":0,"asset_id":"1.3.0"},"seeder_price":[]}]}},{"id":0,"name":"name","description":"description","state":"active","chain_content":{"id":2,"result":[{"id":"2.13.44","author":"1.2.243","co_authors":[],"expiration":"2019-01-23T23:00:00","created":"2018-04-17T07:33:15","price":{"map_price":[[1,{"amount":100000000,"asset_id":"1.3.0"}]]},"size":1,"synopsis":"{\"title\":\"cdn content\",\"description\":\"abcd\",\"content_type_id\":\"1.1.3.0\"}","URI":"https://alax.io?scheme=net.decent.app","quorum":0,"key_parts":[],"_hash":"10e7d47ecbb77cd319ce38f338d720a4d17a25b3","last_proof":[],"is_blocked":false,"AVG_rating":0,"num_of_ratings":0,"times_bought":1,"publishing_fee_escrow":{"amount":0,"asset_id":"1.3.0"},"seeder_price":[]}]}}]},"error":null}},"AppListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/AppListModel"}},"example":{"data":{"source":[{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"name":"name","description":"description","id":0,"published_at":"2000-01-23"},{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"name":"name","description":"description","id":0,"published_at":"2000-01-23"}]},"error":null}},"AppData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/AppModel"}},"example":{"data":{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"name":"name","description":"description","id":0,"published_at":"2000-01-23"},"error":null}},"AppDistributionData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/AppDistributionModel"}},"example":{"data":{"url":"http://example.com/aeiou"},"error":null}},"VersionListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/VersionListModel"}},"example":{"data":{"source":[{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"id":0,"published_at":"2000-01-23","value":"value"},{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"id":0,"published_at":"2000-01-23","value":"value"}]},"error":null}},"VersionData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/VersionModel"}},"example":{"data":{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"id":0,"published_at":"2000-01-23","value":"value"},"error":null}},"VendorMemberListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/VendorMemberListModel"}},"example":{"data":{"source":[{"vendor":{"name":"name","id":0},"id":0,"user":{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}},{"vendor":{"name":"name","id":0},"id":0,"user":{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}}]},"error":null}},"VendorListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/VendorListModel"}},"example":{"data":{"source":[{"name":"name","id":0},{"name":"name","id":0}]},"error":null}},"VendorData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/VendorModel"}},"example":{"data":{"name":"name","id":0},"error":null}},"CustomerListData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/CustomerListModel"}},"example":{"data":{"source":[{"phone":"phone","id":0},{"phone":"phone","id":0}]},"error":null}},"CustomerData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/CustomerModel"}},"example":{"data":{"phone":"phone","id":0},"error":null}},"EmptyData":{"type":"object"},"ErrorData":{"type":"object","properties":{"error":{"$ref":"#/definitions/ErrorModel"},"data":{"type":"object","example":null,"properties":{}}}},"UserListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/UserModel"}}},"example":{"source":[{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"},{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}]}},"ResetPasswordPayload":{"type":"object","required":["password"],"properties":{"password":{"type":"string","format":"password"}},"example":{"password":"password"}},"SignInUserPayload":{"type":"object","required":["email","password"],"properties":{"password":{"type":"string","format":"password"},"email":{"type":"string"}},"example":{"password":"password","email":"email@email.com"}},"SignUpUserPayload":{"type":"object","required":["email","name","password"],"properties":{"password":{"type":"string","format":"password"},"email":{"type":"string"},"name":{"type":"string"}},"example":{"password":"password","email":"email@email.com","name":"name"}},"UserModel":{"type":"object","required":["email"],"properties":{"id":{"type":"integer","format":"int64"},"email":{"type":"string","format":"email"},"name":{"type":"string"},"confirmed_at":{"type":"string","format":"date"}},"example":{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}},"UserEditPayload":{"type":"object","required":["email","name"],"properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"}},"example":{"name":"name","email":"email"}},"UserCreatePayload":{"type":"object","required":["email","name","password"],"properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"},"password":{"type":"string"}},"example":{"name":"name","email":"email","password":"password"}},"ProductData":{"type":"object","properties":{"error":{"type":"object","example":null,"properties":{}},"data":{"$ref":"#/definitions/ProductModel"}},"example":{"data":{"id":0,"name":"name","description":"description","state":"active","chain_content":{"id":2,"result":[{"id":"2.13.44","author":"1.2.243","co_authors":[],"expiration":"2019-01-23T23:00:00","created":"2018-04-17T07:33:15","price":{"map_price":[[1,{"amount":100000000,"asset_id":"1.3.0"}]]},"size":1,"synopsis":"{\"title\":\"cdn content\",\"description\":\"abcd\",\"content_type_id\":\"1.1.3.0\"}","URI":"https://alax.io?scheme=net.decent.app","quorum":0,"key_parts":[],"_hash":"10e7d47ecbb77cd319ce38f338d720a4d17a25b3","last_proof":[],"is_blocked":false,"AVG_rating":0,"num_of_ratings":0,"times_bought":1,"publishing_fee_escrow":{"amount":0,"asset_id":"1.3.0"},"seeder_price":[]}]}},"error":null}},"ProductListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/ProductModel"}}},"example":{"source":[{"id":0,"name":"name","description":"description","state":"active","chain_content":{"id":2,"result":[{"id":"2.13.44","author":"1.2.243","co_authors":[],"expiration":"2019-01-23T23:00:00","created":"2018-04-17T07:33:15","price":{"map_price":[[1,{"amount":100000000,"asset_id":"1.3.0"}]]},"size":1,"synopsis":"{\"title\":\"cdn content\",\"description\":\"abcd\",\"content_type_id\":\"1.1.3.0\"}","URI":"https://alax.io?scheme=net.decent.app","quorum":0,"key_parts":[],"_hash":"10e7d47ecbb77cd319ce38f338d720a4d17a25b3","last_proof":[],"is_blocked":false,"AVG_rating":0,"num_of_ratings":0,"times_bought":1,"publishing_fee_escrow":{"amount":0,"asset_id":"1.3.0"},"seeder_price":[]}]}},{"id":0,"name":"name","description":"description","state":"active","chain_content":{"id":2,"result":[{"id":"2.13.44","author":"1.2.243","co_authors":[],"expiration":"2019-01-23T23:00:00","created":"2018-04-17T07:33:15","price":{"map_price":[[1,{"amount":100000000,"asset_id":"1.3.0"}]]},"size":1,"synopsis":"{\"title\":\"cdn content\",\"description\":\"abcd\",\"content_type_id\":\"1.1.3.0\"}","URI":"https://alax.io?scheme=net.decent.app","quorum":0,"key_parts":[],"_hash":"10e7d47ecbb77cd319ce38f338d720a4d17a25b3","last_proof":[],"is_blocked":false,"AVG_rating":0,"num_of_ratings":0,"times_bought":1,"publishing_fee_escrow":{"amount":0,"asset_id":"1.3.0"},"seeder_price":[]}]}}]}},"AppListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/AppModel"}}},"example":{"source":[{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"name":"name","description":"description","id":0,"published_at":"2000-01-23"},{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"name":"name","description":"description","id":0,"published_at":"2000-01-23"}]}},"AppPayload":{"type":"object","required":["bundle_id","description","name"],"properties":{"name":{"type":"string"},"chain_content_id":{"type":"string"},"chain_price":{"type":"string"},"bundle_id":{"type":"string"},"description":{"type":"string"}},"example":{"chain_price":"chain_price","chain_content_id":"chain_content_id","bundle_id":"bundle_id","name":"name","description":"description"}},"AppModel":{"type":"object","required":["name"],"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"chain_content_id":{"type":"string"},"chain_price":{"type":"string"},"bundle_id":{"type":"string"},"description":{"type":"string"},"published_at":{"type":"string","format":"date"},"assets":{"type":"array","items":{"$ref":"#/definitions/AssetModel"}}},"example":{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"name":"name","description":"description","id":0,"published_at":"2000-01-23"}},"AppDistributionModel":{"type":"object","properties":{"url":{"type":"string","format":"url"}},"example":{"url":"http://example.com/aeiou"}},"VersionListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/VersionModel"}}},"example":{"source":[{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"id":0,"published_at":"2000-01-23","value":"value"},{"assets":[{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]},{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}],"id":0,"published_at":"2000-01-23","value":"value"}]}},"VersionModel":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"version":{"type":"string"},"url":{"type":"string"},"size":{"type":"integer","format":"int64"},"mimetype":{"type":"string"},"published_at":{"type":"string","format":"date"}},"example":{"id":0,"published_at":"2000-01-23","version":"1.1.1","url":"https://some.address1.png","size":128,"mimetype":"image/png"}},"VersionPayload":{"type":"object","required":["version"],"properties":{"version":{"type":"string"}},"example":{"version":"1.1.1"}},"AssetModel":{"type":"object","required":["mimetype"],"properties":{"id":{"type":"integer","format":"int64"},"url":{"type":"string","format":"url"},"size":{"type":"integer","format":"int64"},"mimetype":{"type":"string"},"published_at":{"type":"string","format":"date"},"tags":{"type":"array","items":{"type":"string"}}},"example":{"path":"http://example.com/aeiou","checksum":"checksum","mimetype":"mimetype","id":6,"tags":["tags","tags"]}},"VendorMemberListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/UserModel"}}},"example":{"source":[{"vendor":{"name":"name","id":0},"id":0,"user":{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}},{"vendor":{"name":"name","id":0},"id":0,"user":{"name":"name","id":0,"confirmed_at":"2000-01-23","email":"email"}}]}},"VendorListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/VendorModel"}}},"example":{"source":[{"name":"name","id":0},{"name":"name","id":0}]}},"VendorPayload":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}},"example":{"name":"name"}},"VendorModel":{"type":"object","required":["name"],"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"example":{"name":"name","id":0}},"CustomerListModel":{"type":"object","properties":{"source":{"type":"array","items":{"$ref":"#/definitions/CustomerModel"}}},"example":{"source":[{"phone":"phone","id":0},{"phone":"phone","id":0}]}},"SignUpCustomerPayload":{"type":"object","required":["chain_account_id","chain_account_secret","password","phone"],"properties":{"password":{"type":"string","format":"password"},"phone":{"type":"string"},"chain_account_id":{"type":"string"},"chain_account_secret":{"type":"string"}},"example":{"password":"password","phone":555,"chain_account_id":"trgetgertg","chain_account_secret":"rgeergerg"}},"SignInCustomerPayload":{"type":"object","required":["password","phone"],"properties":{"password":{"type":"string","format":"password"},"phone":{"type":"string"}},"example":{"password":"password","phone":555}},"CustomerPayload":{"type":"object","required":["phone"],"properties":{"phone":{"type":"string"}},"example":{"phone":"phone"}},"CustomerModel":{"type":"object","required":["phone"],"properties":{"id":{"type":"integer","format":"int64"},"phone":{"type":"string"}},"example":{"phone":"phone","id":0}},"ProductPayload":{"type":"object","required":["description","name","price","state"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"state":{"type":"string"},"price":{"type":"string"}},"example":{"name":"name","description":"description","state":"active","price":"0.99"}},"ProductModel":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"description":{"type":"string"},"state":{"type":"string"},"chain_content":{"type":"string"}},"example":{"id":0,"name":"name","description":"description","state":"active","chain_content":{"id":2,"result":[{"id":"2.13.44","author":"1.2.243","co_authors":[],"expiration":"2019-01-23T23:00:00","created":"2018-04-17T07:33:15","price":{"map_price":[[1,{"amount":100000000,"asset_id":"1.3.0"}]]},"size":1,"synopsis":"{\"title\":\"cdn content\",\"description\":\"abcd\",\"content_type_id\":\"1.1.3.0\"}","URI":"https://alax.io?scheme=net.decent.app","quorum":0,"key_parts":[],"_hash":"10e7d47ecbb77cd319ce38f338d720a4d17a25b3","last_proof":[],"is_blocked":false,"AVG_rating":0,"num_of_ratings":0,"times_bought":1,"publishing_fee_escrow":{"amount":0,"asset_id":"1.3.0"},"seeder_price":[]}]}}},"ErrorModel":{"type":"object","required":["status"],"properties":{"status":{"type":"number"},"data":{"type":"object","properties":{}},"message":{"type":"string"}}}}}