Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/SuppliersApi.md | Download |
|
![]() Swagger\Client\SuppliersApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- suppliersGet | GET /suppliers | GET All suppliers suppliersIdDelete | DELETE /suppliers/{id} | Delete existing supplier suppliersIdPut | PUT /suppliers/{id} | Edit existing supplier suppliersPost | POST /suppliers | Add a new supplier suppliersGet> \Swagger\Client\Model\Supplier suppliersGet($pagination, $per_page, $page) GET All suppliers Returns a Json with data about all suppliers of selected shop. 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\Supplier 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) suppliersIdDelete> suppliersIdDelete($id) Delete existing supplier 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 supplier 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) suppliersIdPut> \Swagger\Client\Model\Supplier suppliersIdPut($body, $id) Edit existing supplier 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\Supplier| Object data that need to be updated | id | string| id of the supplier that need to be updated | Return type\Swagger\Client\Model\Supplier 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) suppliersPost> \Swagger\Client\Model\Supplier suppliersPost($body) Add a new supplier Returns a Json with the data of the new supplier Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Supplier| Supplier object that needs to be added to the selected shop. | Return type\Swagger\Client\Model\Supplier 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) |