Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/ComponentsApi.md | Download |
|
![]() Swagger\Client\ComponentsApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- componentsGet | GET /components | Get All Components componentsIdDelete | DELETE /components/{id} | Delete existing Component componentsIdGet | GET /components/{id} | Get existing component componentsIdPut | PUT /components/{id} | Edit existing Component componentsPost | POST /components | Add new Component componentsGet> \Swagger\Client\Model\Components componentsGet($pagination, $per_page, $page) Get All Components Returns a Json with data about all components (ingredients) of selected shop. Paginated by default (per_page = 1000) Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- pagination | bool| Pagination parameter | [optional] per_page | int| Results_per_page | [optional] page | int| PAGE_NUMBER(starting from 0 to TOTAL_PAGE-1) | [optional] Return type\Swagger\Client\Model\Components AuthorizationHTTP request headers- Content-Type: Not defined - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) componentsIdDelete> componentsIdDelete($id) Delete existing Component In this case you must specify the id in the URL, but it is no necessary in the request body Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the Component that need to be deleted | Return typevoid (empty response body) AuthorizationHTTP request headers- Content-Type: Not defined - Accept: Not defined [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) componentsIdGet> \Swagger\Client\Model\Components componentsIdGet($id) Get existing component In this case you must specify the id in the URL Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the component | Return type\Swagger\Client\Model\Components AuthorizationHTTP request headers- Content-Type: Not defined - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) componentsIdPut> \Swagger\Client\Model\Components componentsIdPut($body, $id) Edit existing Component In this case you must specify the id in the URL and change the data you wanna update Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Components| Object data that need to be updated | id | string| id of the component that need to be updated | Return type\Swagger\Client\Model\Components AuthorizationHTTP request headers- Content-Type: application/json - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) componentsPost> \Swagger\Client\Model\Components componentsPost($body) Add new Component Returns a Json with the data of the new Component. You can set a price difference if you want that when you add this component to an item in a order, the final price will be increased of a particular amount. Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Components| Component object that needs to be added. | Return type\Swagger\Client\Model\Components AuthorizationHTTP request headers- Content-Type: application/json - Accept: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) |