--- openapi: 3.0.1 info: title: Platform API V2 contact: name: Spark Solutions url: https://sparksolutions.co email: we@sparksolutions.co version: v2 paths: "/api/v2/platform/addresses": get: summary: Returns a list of Addresses tags: - Addresses security: - bearer_auth: [] description: Returns a list of Addresses operationId: addresses-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: user,country,state schema: type: string - name: filter in: query description: '' example: user_id_eq=1&firstname_cont=Joh schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: address attributes: firstname: John lastname: Doe address1: 1 Lovely Street address2: Northwest city: Herndon zipcode: '35005' phone: 555-555-0199 state_name: alternative_phone: 555-555-0199 company: Company created_at: '2021-08-30T22:29:07.024Z' updated_at: '2021-08-30T22:29:07.024Z' deleted_at: label: relationships: country: data: id: '1' type: country state: data: id: '1' type: state user: data: - id: '2' type: address attributes: firstname: John lastname: Doe address1: 2 Lovely Street address2: Northwest city: Herndon zipcode: '35005' phone: 555-555-0199 state_name: alternative_phone: 555-555-0199 company: Company created_at: '2021-08-30T22:29:07.026Z' updated_at: '2021-08-30T22:29:07.026Z' deleted_at: label: relationships: country: data: id: '1' type: country state: data: id: '2' type: state user: data: meta: count: 2 total_count: 2 total_pages: 1 links: self: http://www.example.com/api/v2/platform/addresses?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/addresses?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/addresses?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/addresses?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/addresses?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates an Address tags: - Addresses security: - bearer_auth: [] description: Creates an Address operationId: create-address parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: user,country,state schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '1' type: address attributes: firstname: John lastname: Doe address1: 5 Lovely Street address2: Northwest city: Herndon zipcode: '35005' phone: 555-555-0199 state_name: alternative_phone: 555-555-0199 company: Company created_at: '2021-08-30T22:29:07.137Z' updated_at: '2021-08-30T22:29:07.137Z' deleted_at: label: relationships: country: data: id: '2' type: country state: data: id: '1' type: state user: data: id: '1' type: user '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: First Name can't be blank, Last Name can't be blank, Address can't be blank, City can't be blank, Country can't be blank, Zip Code can't be blank, and Phone can't be blank errors: firstname: - can't be blank lastname: - can't be blank address1: - can't be blank city: - can't be blank country: - can't be blank zipcode: - can't be blank phone: - can't be blank requestBody: content: application/json: schema: "$ref": "#/components/schemas/address_params" "/api/v2/platform/addresses/{id}": get: summary: Returns an Address tags: - Addresses security: - bearer_auth: [] description: Returns an Address operationId: show-address parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: user,country,state schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '1' type: address attributes: firstname: John lastname: Doe address1: 6 Lovely Street address2: Northwest city: Herndon zipcode: '35005' phone: 555-555-0199 state_name: alternative_phone: 555-555-0199 company: Company created_at: '2021-08-30T22:29:07.160Z' updated_at: '2021-08-30T22:29:07.160Z' deleted_at: label: relationships: country: data: id: '1' type: country state: data: id: '1' type: state user: data: '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates an Address tags: - Addresses security: - bearer_auth: [] description: Updates an Address operationId: update-address parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: user,country,state schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '1' type: address attributes: firstname: Jack lastname: Doe address1: 8 Lovely Street address2: Northwest city: Herndon zipcode: '35005' phone: 555-555-0199 state_name: alternative_phone: 555-555-0199 company: Company created_at: '2021-08-30T22:29:07.192Z' updated_at: '2021-08-30T22:29:07.196Z' deleted_at: label: relationships: country: data: id: '1' type: country state: data: id: '1' type: state user: data: '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: First Name can't be blank and Last Name can't be blank errors: firstname: - can't be blank lastname: - can't be blank '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/address_params" delete: summary: Deletes an Address tags: - Addresses security: - bearer_auth: [] description: Deletes an Address operationId: delete-address parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/classifications": get: summary: Returns a list of Classifications tags: - Classifications security: - bearer_auth: [] description: Returns a list of Classifications operationId: classifications-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: product,taxon schema: type: string - name: filter in: query description: '' example: taxon_id_eq=1 schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: classification attributes: position: 1 created_at: '2021-08-30T22:29:07.400Z' updated_at: '2021-08-30T22:29:07.400Z' relationships: product: data: id: '1' type: product taxon: data: id: '2' type: taxon - id: '2' type: classification attributes: position: 1 created_at: '2021-08-30T22:29:07.447Z' updated_at: '2021-08-30T22:29:07.447Z' relationships: product: data: id: '2' type: product taxon: data: id: '4' type: taxon meta: count: 2 total_count: 2 total_pages: 1 links: self: http://www.example.com/api/v2/platform/classifications?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/classifications?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/classifications?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/classifications?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/classifications?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates a Classification tags: - Classifications security: - bearer_auth: [] description: Creates a Classification operationId: create-classification parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: product,taxon schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '1' type: classification attributes: position: 1 created_at: '2021-08-30T22:29:07.600Z' updated_at: '2021-08-30T22:29:07.600Z' relationships: product: data: id: '1' type: product taxon: data: id: '2' type: taxon '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Taxon can't be blank and Product can't be blank errors: taxon: - can't be blank product: - can't be blank requestBody: content: application/json: schema: "$ref": "#/components/schemas/classification_params" "/api/v2/platform/classifications/{id}": get: summary: Returns a Classification tags: - Classifications security: - bearer_auth: [] description: Returns a Classification operationId: show-classification parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: product,taxon schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '1' type: classification attributes: position: 1 created_at: '2021-08-30T22:29:07.667Z' updated_at: '2021-08-30T22:29:07.667Z' relationships: product: data: id: '1' type: product taxon: data: id: '2' type: taxon '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates a Classification tags: - Classifications security: - bearer_auth: [] description: Updates a Classification operationId: update-classification parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: product,taxon schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '1' type: classification attributes: position: 1 created_at: '2021-08-30T22:29:07.783Z' updated_at: '2021-08-30T22:29:07.783Z' relationships: product: data: id: '1' type: product taxon: data: id: '2' type: taxon '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Product can't be blank errors: product: - can't be blank '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/classification_params" delete: summary: Deletes a Classification tags: - Classifications security: - bearer_auth: [] description: Deletes a Classification operationId: delete-classification parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/classifications/{id}/reposition": put: summary: Reposition a Classification tags: - Classifications security: - bearer_auth: [] operationId: reposition-classification description: Reposition a Classification parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: product,taxon schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '1' type: classification attributes: position: 2 created_at: '2021-08-30T22:29:08.086Z' updated_at: '2021-08-30T22:29:08.095Z' relationships: product: data: id: '1' type: product taxon: data: id: '2' type: taxon '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: is not a number errors: {} '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/classification_params" "/api/v2/platform/countries": get: summary: Returns a list of Countries tags: - Countries security: - bearer_auth: [] operationId: countries-list description: Returns a list of Countries responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: country attributes: iso_name: UNITED STATES iso: US iso3: IS34 name: United States of America numcode: 840 states_required: true updated_at: '2021-08-30T22:29:08.218Z' zipcode_required: true created_at: '2021-08-30T22:29:08.218Z' relationships: states: data: [] - id: '2' type: country attributes: iso_name: ISO_NAME_2 iso: I2 iso3: IS35 name: NAME_2 numcode: 840 states_required: false updated_at: '2021-08-30T22:29:08.222Z' zipcode_required: true created_at: '2021-08-30T22:29:08.222Z' relationships: states: data: [] - id: '3' type: country attributes: iso_name: ISO_NAME_3 iso: I3 iso3: IS36 name: NAME_3 numcode: 840 states_required: false updated_at: '2021-08-30T22:29:08.223Z' zipcode_required: true created_at: '2021-08-30T22:29:08.223Z' relationships: states: data: [] meta: count: 3 total_count: 3 total_pages: 1 links: self: http://www.example.com/api/v2/platform/countries next: http://www.example.com/api/v2/platform/countries?page=1 prev: http://www.example.com/api/v2/platform/countries?page=1 last: http://www.example.com/api/v2/platform/countries?page=1 first: http://www.example.com/api/v2/platform/countries?page=1 '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/countries/{id}": get: summary: Returns a Country tags: - Countries security: - bearer_auth: [] operationId: show-country description: Returns a Country parameters: - name: id in: path required: true schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '2' type: country attributes: iso_name: ISO_NAME_6 iso: I6 iso3: IS41 name: NAME_6 numcode: 840 states_required: false updated_at: '2021-08-30T22:29:08.259Z' zipcode_required: true created_at: '2021-08-30T22:29:08.259Z' relationships: states: data: [] '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/menu_items": get: summary: Returns a list of Menu Items tags: - Menu Items security: - bearer_auth: [] description: Returns a list of Menu Items operationId: menu-items-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: linked_resource schema: type: string - name: filter in: query description: '' example: menu_item_name_eq=Women schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: menu_item attributes: name: Corporis deleniti vel necessitatibus laborum aliquid. subtitle: destination: new_window: false item_type: Container linked_resource_type: URL code: lft: 1 rgt: 16 depth: 0 created_at: '2021-08-30T22:29:08.302Z' updated_at: '2021-08-30T22:29:08.383Z' link: is_container: true is_root: true is_child: false is_leaf: false relationships: icon: data: menu: data: id: '1' type: menu parent: data: linked_resource: data: children: data: - id: '2' type: menu_item - id: '3' type: menu_item - id: '4' type: menu_item - id: '5' type: menu_item - id: '6' type: menu_item - id: '7' type: menu_item - id: '8' type: menu_item - id: '2' type: menu_item attributes: name: Link no. 1 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 2 rgt: 3 depth: 1 created_at: '2021-08-30T22:29:08.314Z' updated_at: '2021-08-30T22:29:08.316Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '1' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] - id: '3' type: menu_item attributes: name: Link no. 2 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 4 rgt: 5 depth: 1 created_at: '2021-08-30T22:29:08.325Z' updated_at: '2021-08-30T22:29:08.327Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '2' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] - id: '4' type: menu_item attributes: name: Link no. 3 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 6 rgt: 7 depth: 1 created_at: '2021-08-30T22:29:08.336Z' updated_at: '2021-08-30T22:29:08.337Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '3' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] - id: '5' type: menu_item attributes: name: Link no. 4 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 8 rgt: 9 depth: 1 created_at: '2021-08-30T22:29:08.346Z' updated_at: '2021-08-30T22:29:08.348Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '4' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] - id: '6' type: menu_item attributes: name: Link no. 5 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 10 rgt: 11 depth: 1 created_at: '2021-08-30T22:29:08.356Z' updated_at: '2021-08-30T22:29:08.358Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '5' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] - id: '7' type: menu_item attributes: name: Link no. 6 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 12 rgt: 13 depth: 1 created_at: '2021-08-30T22:29:08.367Z' updated_at: '2021-08-30T22:29:08.369Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '6' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] - id: '8' type: menu_item attributes: name: Link no. 7 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 14 rgt: 15 depth: 1 created_at: '2021-08-30T22:29:08.377Z' updated_at: '2021-08-30T22:29:08.379Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '7' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] meta: count: 8 total_count: 8 total_pages: 1 links: self: http://www.example.com/api/v2/platform/menu_items?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates a Menu Item tags: - Menu Items security: - bearer_auth: [] description: Creates a Menu Item operationId: create-menu-item parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: linked_resource schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '5' type: menu_item attributes: name: Link no. 18 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 8 rgt: 9 depth: 1 created_at: '2021-08-30T22:29:08.554Z' updated_at: '2021-08-30T22:29:08.556Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank, Menu can't be blank, and Item type is not included in the list errors: name: - can't be blank menu: - can't be blank item_type: - is not included in the list requestBody: content: application/json: schema: "$ref": "#/components/schemas/menu_item_params" "/api/v2/platform/menu_items/{id}": get: summary: Returns a Menu Item tags: - Menu Items security: - bearer_auth: [] description: Returns a Menu Item operationId: show-menu-item parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: linked_resource schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '5' type: menu_item attributes: name: Link no. 25 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 8 rgt: 9 depth: 1 created_at: '2021-08-30T22:29:08.665Z' updated_at: '2021-08-30T22:29:08.667Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '4' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates a Menu Item tags: - Menu Items security: - bearer_auth: [] description: Updates a Menu Item operationId: update-menu-item parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: linked_resource schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '5' type: menu_item attributes: name: Menu Item One subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 8 rgt: 9 depth: 1 created_at: '2021-08-30T22:29:08.831Z' updated_at: '2021-08-30T22:29:08.843Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '4' type: icon menu: data: id: '1' type: menu parent: data: id: '1' type: menu_item linked_resource: data: children: data: [] '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank errors: name: - can't be blank '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/menu_item_params" delete: summary: Deletes a Menu Item tags: - Menu Items security: - bearer_auth: [] description: Deletes a Menu Item operationId: delete-menu-item parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/menu_items/{id}/reposition": patch: summary: Reposition a Menu Item tags: - Menu Items security: - bearer_auth: [] operationId: reposition-menu-item description: Reposition a Menu Item parameters: - name: id in: path required: true schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '5' type: menu_item attributes: name: Link no. 62 To Somewhere subtitle: destination: new_window: false item_type: Link linked_resource_type: URL code: lft: 5 rgt: 6 depth: 2 created_at: '2021-08-30T22:29:09.230Z' updated_at: '2021-08-30T22:29:09.241Z' link: is_container: false is_root: false is_child: true is_leaf: true relationships: icon: data: id: '4' type: icon menu: data: id: '1' type: menu parent: data: id: '3' type: menu_item linked_resource: data: children: data: [] '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/menu_item_reposition_params" "/api/v2/platform/menus": get: summary: Returns a list of Menus tags: - Menus security: - bearer_auth: [] description: Returns a list of Menus operationId: menus-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: menu_items schema: type: string - name: filter in: query description: '' example: location_eq=header schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: menu attributes: name: Main Menu location: header locale: en created_at: '2021-08-30T22:29:09.361Z' updated_at: '2021-08-30T22:29:09.390Z' relationships: menu_items: data: - id: '1' type: menu_item - id: '3' type: menu_item - id: '4' type: menu_item - id: '2' type: menu attributes: name: Footer Menu location: footer locale: en created_at: '2021-08-30T22:29:09.365Z' updated_at: '2021-08-30T22:29:09.411Z' relationships: menu_items: data: - id: '2' type: menu_item - id: '5' type: menu_item - id: '6' type: menu_item meta: count: 2 total_count: 2 total_pages: 1 links: self: http://www.example.com/api/v2/platform/menus?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates a Menu tags: - Menus security: - bearer_auth: [] description: Creates a Menu operationId: create-menu parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: menu_items schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '1' type: menu attributes: name: Main Menu location: header locale: en created_at: '2021-08-30T22:29:09.492Z' updated_at: '2021-08-30T22:29:09.495Z' relationships: menu_items: data: - id: '1' type: menu_item '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank, Locale can't be blank, and Location is not included in the list errors: name: - can't be blank locale: - can't be blank location: - is not included in the list requestBody: content: application/json: schema: "$ref": "#/components/schemas/menu_params" "/api/v2/platform/menus/{id}": get: summary: Returns a Menu tags: - Menus security: - bearer_auth: [] description: Returns a Menu operationId: show-menu parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: menu_items schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '1' type: menu attributes: name: Main Menu location: header locale: en created_at: '2021-08-30T22:29:09.523Z' updated_at: '2021-08-30T22:29:09.527Z' relationships: menu_items: data: - id: '1' type: menu_item '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates a Menu tags: - Menus security: - bearer_auth: [] description: Updates a Menu operationId: update-menu parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: menu_items schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '1' type: menu attributes: name: Main Menu location: header locale: en created_at: '2021-08-30T22:29:09.565Z' updated_at: '2021-08-30T22:29:09.568Z' relationships: menu_items: data: - id: '1' type: menu_item '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank, Locale can't be blank, and Location is not included in the list errors: name: - can't be blank locale: - can't be blank location: - is not included in the list '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/menu_params" delete: summary: Deletes a Menu tags: - Menus security: - bearer_auth: [] description: Deletes a Menu operationId: delete-menu parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/option_types": get: summary: Returns a list of Option Types tags: - Option Types security: - bearer_auth: [] description: Returns a list of Option Types operationId: option-types-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: '' schema: type: string - name: filter in: query description: '' example: option_type_id_eq=1&name_cont=Size schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: option_type attributes: name: foo-size-1 presentation: Size position: 1 created_at: '2021-08-30T22:29:09.672Z' updated_at: '2021-08-30T22:29:09.672Z' filterable: true relationships: option_values: data: [] - id: '2' type: option_type attributes: name: foo-size-2 presentation: Size position: 2 created_at: '2021-08-30T22:29:09.673Z' updated_at: '2021-08-30T22:29:09.673Z' filterable: true relationships: option_values: data: [] meta: count: 2 total_count: 2 total_pages: 1 links: self: http://www.example.com/api/v2/platform/option_types?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/option_types?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/option_types?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/option_types?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/option_types?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates an Option Type tags: - Option Types security: - bearer_auth: [] description: Creates an Option Type operationId: create-option-type parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: '' schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '1' type: option_type attributes: name: foo-size-5 presentation: Size position: 1 created_at: '2021-08-30T22:29:09.706Z' updated_at: '2021-08-30T22:29:09.706Z' filterable: true relationships: option_values: data: [] '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank and Presentation can't be blank errors: name: - can't be blank presentation: - can't be blank requestBody: content: application/json: schema: "$ref": "#/components/schemas/option_type_params" "/api/v2/platform/option_types/{id}": get: summary: Returns an Option Type tags: - Option Types security: - bearer_auth: [] description: Returns an Option Type operationId: show-option-type parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: '' schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '1' type: option_type attributes: name: foo-size-6 presentation: Size position: 1 created_at: '2021-08-30T22:29:09.726Z' updated_at: '2021-08-30T22:29:09.726Z' filterable: true relationships: option_values: data: [] '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates an Option Type tags: - Option Types security: - bearer_auth: [] description: Updates an Option Type operationId: update-option-type parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: '' schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '1' type: option_type attributes: name: Size-X presentation: Size position: 1 created_at: '2021-08-30T22:29:09.758Z' updated_at: '2021-08-30T22:29:09.762Z' filterable: true relationships: option_values: data: [] '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank errors: name: - can't be blank '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/option_type_params" delete: summary: Deletes an Option Type tags: - Option Types security: - bearer_auth: [] description: Deletes an Option Type operationId: delete-option-type parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/option_values": get: summary: Returns a list of Option Values tags: - Option Values security: - bearer_auth: [] description: Returns a list of Option Values operationId: option-values-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: option_type schema: type: string - name: filter in: query description: '' example: option_type_id_eq=1&name_cont=M schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: option_value attributes: position: 1 name: Size-1 presentation: S created_at: '2021-08-30T22:29:09.842Z' updated_at: '2021-08-30T22:29:09.842Z' relationships: option_type: data: id: '1' type: option_type - id: '2' type: option_value attributes: position: 1 name: Size-2 presentation: S created_at: '2021-08-30T22:29:09.845Z' updated_at: '2021-08-30T22:29:09.845Z' relationships: option_type: data: id: '2' type: option_type meta: count: 2 total_count: 2 total_pages: 1 links: self: http://www.example.com/api/v2/platform/option_values?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/option_values?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/option_values?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/option_values?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/option_values?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates an Option Value tags: - Option Values security: - bearer_auth: [] description: Creates an Option Value operationId: create-option-value parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: option_type schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '1' type: option_value attributes: position: 1 name: Size-5 presentation: S created_at: '2021-08-30T22:29:09.880Z' updated_at: '2021-08-30T22:29:09.880Z' relationships: option_type: data: '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank and Presentation can't be blank errors: name: - can't be blank presentation: - can't be blank requestBody: content: application/json: schema: "$ref": "#/components/schemas/option_value_params" "/api/v2/platform/option_values/{id}": get: summary: Returns an Option Value tags: - Option Values security: - bearer_auth: [] description: Returns an Option Value operationId: show-option-value parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: option_type schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '1' type: option_value attributes: position: 1 name: Size-6 presentation: S created_at: '2021-08-30T22:29:09.906Z' updated_at: '2021-08-30T22:29:09.906Z' relationships: option_type: data: id: '1' type: option_type '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates an Option Value tags: - Option Values security: - bearer_auth: [] description: Updates an Option Value operationId: update-option-value parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: option_type schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '1' type: option_value attributes: position: 1 name: M presentation: S created_at: '2021-08-30T22:29:09.941Z' updated_at: '2021-08-30T22:29:09.946Z' relationships: option_type: data: id: '1' type: option_type '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank errors: name: - can't be blank '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/option_value_params" delete: summary: Deletes an Option Value tags: - Option Values security: - bearer_auth: [] description: Deletes an Option Value operationId: delete-option-value parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/taxons": get: summary: Returns a list of Taxons tags: - Taxons security: - bearer_auth: [] description: Returns a list of Taxons operationId: taxons-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: taxonomy,parent,children schema: type: string - name: filter in: query description: '' example: taxonomy_id_eq=1&name_cont=Shirts schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: taxon attributes: position: 0 name: taxonomy_16 permalink: taxonomy-16 lft: 1 rgt: 6 description: created_at: '2021-08-30T22:29:10.032Z' updated_at: '2021-08-30T22:29:10.059Z' meta_title: meta_description: meta_keywords: depth: 0 pretty_name: taxonomy_16 seo_title: taxonomy_16 is_root: true is_child: false is_leaf: false relationships: parent: data: taxonomy: data: id: '1' type: taxonomy children: data: - id: '2' type: taxon - id: '3' type: taxon image: data: - id: '2' type: taxon attributes: position: 0 name: taxon_16 permalink: taxonomy-16/taxon-16 lft: 2 rgt: 3 description: created_at: '2021-08-30T22:29:10.043Z' updated_at: '2021-08-30T22:29:10.044Z' meta_title: meta_description: meta_keywords: depth: 1 pretty_name: taxonomy_16 -> taxon_16 seo_title: taxon_16 is_root: false is_child: true is_leaf: true relationships: parent: data: id: '1' type: taxon taxonomy: data: id: '1' type: taxonomy children: data: [] image: data: id: '1' type: taxon_image - id: '3' type: taxon attributes: position: 0 name: taxon_17 permalink: taxonomy-16/taxon-17 lft: 4 rgt: 5 description: created_at: '2021-08-30T22:29:10.053Z' updated_at: '2021-08-30T22:29:10.055Z' meta_title: meta_description: meta_keywords: depth: 1 pretty_name: taxonomy_16 -> taxon_17 seo_title: taxon_17 is_root: false is_child: true is_leaf: true relationships: parent: data: id: '1' type: taxon taxonomy: data: id: '1' type: taxonomy children: data: [] image: data: id: '2' type: taxon_image meta: count: 3 total_count: 3 total_pages: 1 links: self: http://www.example.com/api/v2/platform/taxons?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/taxons?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/taxons?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/taxons?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/taxons?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates a Taxon tags: - Taxons security: - bearer_auth: [] description: Creates a Taxon operationId: create-taxon parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: taxonomy,parent,children schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '2' type: taxon attributes: position: 0 name: taxon_20 permalink: taxonomy-18/taxon-20 lft: 2 rgt: 3 description: created_at: '2021-08-30T22:29:10.139Z' updated_at: '2021-08-30T22:29:10.141Z' meta_title: meta_description: meta_keywords: depth: 1 pretty_name: taxonomy_18 -> taxon_20 seo_title: taxon_20 is_root: false is_child: true is_leaf: true relationships: parent: data: id: '1' type: taxon taxonomy: data: id: '1' type: taxonomy children: data: [] image: data: '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank and Taxonomy can't be blank errors: name: - can't be blank taxonomy: - can't be blank requestBody: content: application/json: schema: "$ref": "#/components/schemas/taxon_params" "/api/v2/platform/taxons/{id}": get: summary: Returns a Taxon tags: - Taxons security: - bearer_auth: [] description: Returns a Taxon operationId: show-taxon parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: taxonomy,parent,children schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '2' type: taxon attributes: position: 0 name: taxon_21 permalink: taxonomy-19/taxon-21 lft: 2 rgt: 3 description: created_at: '2021-08-30T22:29:10.185Z' updated_at: '2021-08-30T22:29:10.186Z' meta_title: meta_description: meta_keywords: depth: 1 pretty_name: taxonomy_19 -> taxon_21 seo_title: taxon_21 is_root: false is_child: true is_leaf: true relationships: parent: data: id: '1' type: taxon taxonomy: data: id: '1' type: taxonomy children: data: [] products: data: [] image: data: id: '1' type: taxon_image '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates a Taxon tags: - Taxons security: - bearer_auth: [] description: Updates a Taxon operationId: update-taxon parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: taxonomy,parent,children schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '2' type: taxon attributes: position: 0 name: T-Shirts permalink: taxonomy-21/taxon-23 lft: 2 rgt: 3 description: created_at: '2021-08-30T22:29:10.259Z' updated_at: '2021-08-30T22:29:10.270Z' meta_title: meta_description: meta_keywords: depth: 1 pretty_name: taxonomy_21 -> T-Shirts seo_title: T-Shirts is_root: false is_child: true is_leaf: true relationships: parent: data: id: '1' type: taxon taxonomy: data: id: '1' type: taxonomy children: data: [] image: data: id: '1' type: taxon_image '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Name can't be blank errors: name: - can't be blank '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/taxon_params" delete: summary: Deletes a Taxon tags: - Taxons security: - bearer_auth: [] description: Deletes a Taxon operationId: delete-taxon parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid "/api/v2/platform/users": get: summary: Returns a list of Users tags: - Users security: - bearer_auth: [] description: Returns a list of Users operationId: users-list parameters: - name: page in: query example: 1 schema: type: integer - name: per_page in: query example: 50 schema: type: integer - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: ship_address,bill_address schema: type: string - name: filter in: query description: '' example: user_id_eq=1&email_cont=spree@example.com schema: type: string responses: '200': description: Records returned content: application/vnd.api+json: examples: Example: value: data: - id: '1' type: user attributes: email: delmy@little.name created_at: '2021-08-30T22:29:10.502Z' updated_at: '2021-08-30T22:29:10.502Z' average_order_value: [] lifetime_value: [] store_credits: [] relationships: bill_address: data: ship_address: data: - id: '2' type: user attributes: email: yoko_brakus@walker.com created_at: '2021-08-30T22:29:10.506Z' updated_at: '2021-08-30T22:29:10.506Z' average_order_value: [] lifetime_value: [] store_credits: [] relationships: bill_address: data: ship_address: data: - id: '3' type: user attributes: email: florida.stoltenberg@legros.com created_at: '2021-08-30T22:29:10.507Z' updated_at: '2021-08-30T22:29:10.507Z' average_order_value: [] lifetime_value: [] store_credits: [] relationships: bill_address: data: ship_address: data: meta: count: 3 total_count: 3 total_pages: 1 links: self: http://www.example.com/api/v2/platform/users?page=1&per_page=&include=&filter= next: http://www.example.com/api/v2/platform/users?include=&page=1&per_page= prev: http://www.example.com/api/v2/platform/users?include=&page=1&per_page= last: http://www.example.com/api/v2/platform/users?include=&page=1&per_page= first: http://www.example.com/api/v2/platform/users?include=&page=1&per_page= '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid post: summary: Creates an User tags: - Users security: - bearer_auth: [] description: Creates an User operationId: create-user parameters: - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: ship_address,bill_address schema: type: string responses: '201': description: record created content: application/vnd.api+json: examples: Example: value: data: id: '2' type: user attributes: email: marcie@ondrickavandervort.com created_at: '2021-08-30T22:29:10.549Z' updated_at: '2021-08-30T22:29:10.549Z' average_order_value: [] lifetime_value: [] store_credits: [] relationships: bill_address: data: ship_address: data: '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Bill address belongs to other user errors: bill_address_id: - belongs to other user requestBody: content: application/json: schema: "$ref": "#/components/schemas/user_params" "/api/v2/platform/users/{id}": get: summary: Returns an User tags: - Users security: - bearer_auth: [] description: Returns an User operationId: show-user parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: ship_address,bill_address schema: type: string responses: '200': description: Record found content: application/vnd.api+json: examples: Example: value: data: id: '2' type: user attributes: email: anita@hilll.name created_at: '2021-08-30T22:29:10.578Z' updated_at: '2021-08-30T22:29:10.578Z' average_order_value: [] lifetime_value: [] store_credits: [] relationships: bill_address: data: ship_address: data: '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid put: summary: Updates an User tags: - Users security: - bearer_auth: [] description: Updates an User operationId: update-user parameters: - name: id in: path required: true schema: type: string - name: include in: query description: 'Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes' example: ship_address,bill_address schema: type: string responses: '200': description: record updated content: application/vnd.api+json: examples: Example: value: data: id: '2' type: user attributes: email: john@example.com created_at: '2021-08-30T22:29:10.622Z' updated_at: '2021-08-30T22:29:10.627Z' average_order_value: [] lifetime_value: [] store_credits: [] relationships: bill_address: data: ship_address: data: '422': description: invalid request content: application/vnd.api+json: examples: Example: value: error: Bill address belongs to other user errors: bill_address_id: - belongs to other user '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid requestBody: content: application/json: schema: "$ref": "#/components/schemas/user_params" delete: summary: Deletes an User tags: - Users security: - bearer_auth: [] description: Deletes an User operationId: delete-user parameters: - name: id in: path required: true schema: type: string responses: '204': description: Record deleted '404': description: Record not found content: application/vnd.api+json: examples: Example: value: error: The resource you were looking for could not be found. '401': description: Authentication Failed content: application/vnd.api+json: examples: Example: value: error: The access token is invalid servers: - url: https://{defaultHost} variables: defaultHost: default: localhost:3000 tags: - name: Addresses - name: Classifications - name: Countries - name: Menu Items - name: Menus - name: Option Types - name: Option Values - name: Taxons - name: Users components: securitySchemes: bearer_auth: type: http scheme: bearer schemas: address_params: type: object properties: country_id: type: string state_id: type: string state_name: type: string address1: type: string city: type: string zipcode: type: string phone: type: string alternative_phone: type: string firstname: type: string lastname: type: string label: type: string company: type: string user_id: type: string classification_params: type: object properties: product_id: type: string taxon_id: type: string position: type: integer option_type_params: type: object properties: name: type: string presentation: type: string required: - name - presentation option_value_params: type: object properties: name: type: string presentation: type: string option_values_attributes: type: string required: - name - presentation product_params: type: object properties: name: type: string description: type: string available_on: type: string discontinue_on: type: string permalink: type: string meta_description: type: string meta_keywords: type: string price: type: string sku: type: string deleted_at: type: string prototype_id: type: string option_values_hash: type: string weight: type: string height: type: string width: type: string depth: type: string shipping_category_id: type: string tax_category_id: type: string cost_currency: type: string cost_price: type: string compare_at_price: type: string option_type_ids: type: string taxon_ids: type: string required: - name - price - shipping_category_id user_params: type: object properties: email: type: string password: type: string password_confirmation: type: string ship_address_id: type: string bill_address_id: type: string required: - email - password - password_confirmation taxon_params: type: object properties: taxonomy_id: type: string parent_id: type: string name: type: string required: - name - taxonomy_id menu_params: type: object properties: name: type: string location: type: string locale: type: string required: - name - location - locale menu_item_params: type: object properties: name: type: string code: type: string subtitle: type: string destination: type: string new_window: type: boolean item_type: type: string linked_resource_type: type: string linked_resource_id: type: integer required: - name menu_item_reposition_params: type: object properties: new_parent_id: type: integer new_position_idx: type: integer required: - name resources_list: type: object properties: data: type: array items: allOf: - "$ref": "#/components/schemas/resource_properties" meta: type: object properties: count: type: integer total_count: type: integer total_pages: type: integer required: - count - total_count - total_pages links: type: object properties: self: type: string next: type: string prev: type: string last: type: string first: type: string required: - self - next - prev - last - first required: - data - meta - links resource_properties: type: object properties: id: type: string type: type: string attributes: type: object relationships: type: object required: - id - type - attributes - relationships resource: type: object properties: data: "$ref": "#/components/schemas/resource_properties" required: - data error: type: object properties: error: type: string required: - error validation_errors: type: object properties: error: type: string errors: type: object required: - error - errors