Recommend this page to a friend! |
Classes of Francesco Danti | Scloby Client API | docs/Api/ItemCategoriesApi.md | Download |
|
![]() Swagger\Client\ItemCategoriesApiAll URIs are relative to https://api.scloby.com/v2 Method | HTTP request | Description ------------- | ------------- | ------------- categoriesGet | GET /categories | Get All Categories categoriesIdDelete | DELETE /categories/{id} | Delete existing Category categoriesIdGet | GET /categories/{id} | Get existing category categoriesIdPut | PUT /categories/{id} | Edit existing Category categoriesPost | POST /categories | Add new Category categoriesGet> \Swagger\Client\Model\Categories categoriesGet($pagination, $per_page, $page) Get All Categories Return a JSON of all categories 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\Categories 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) categoriesIdDelete> categoriesIdDelete($id) Delete existing Category 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 Category 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) categoriesIdGet> \Swagger\Client\Model\Categories categoriesIdGet($id) Get existing category In this case you must specify the id in the URL Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- id | string| id of the category | Return type\Swagger\Client\Model\Categories 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) categoriesIdPut> \Swagger\Client\Model\Categories categoriesIdPut($body, $id) Edit existing Category 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\Categories| Object data that need to be updated | id | string| id of the Category that need to be updated | Return type\Swagger\Client\Model\Categories 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) categoriesPost> \Swagger\Client\Model\Categories categoriesPost($body) Add new Category Returns a Json with the data of the new Category Example
ParametersName | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | \Swagger\Client\Model\Categories| Category object that needs to be added. | Return type\Swagger\Client\Model\Categories 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) |