All URIs are relative to https://api.facestore.local/v1
Method | HTTP request | Description |
---|---|---|
AddBrands | POST /brands | |
DeleteBrandById | DELETE /brands/{id}/ | |
GetBrandById | GET /brands/{id}/ | |
GetBrands | GET /brands | |
UpdateCategoryById | PUT /brands/{id}/ | |
UpdateCategoryById_0 | PATCH /brands/{id}/ |
InlineResponse201 AddBrands (Brand brand)
Creates a new brand in the store.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class AddBrandsExample
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");
var apiInstance = new BrandsApi();
var brand = new Brand(); // Brand | Brand to add to the store
try
{
InlineResponse201 result = apiInstance.AddBrands(brand);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BrandsApi.AddBrands: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brand | Brand | Brand to add to the store |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteBrandById (long? id)
Deletes a single brand based on the ID supplied
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class DeleteBrandByIdExample
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");
var apiInstance = new BrandsApi();
var id = 789; // long? | ID of brand to delete
try
{
apiInstance.DeleteBrandById(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling BrandsApi.DeleteBrandById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of brand to delete |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse201 GetBrandById (long? id, List includes, int? limit)
Returns a brand based on a single ID ### Includes You can give the following values on includea parameter: routes, products
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetBrandByIdExample
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");
var apiInstance = new BrandsApi();
var id = 789; // long? | ID of brand to fetch
var includes = new List<string>(); // List<string> | Include associated objects within response (optional)
var limit = 56; // int? | max records to return (optional)
try
{
InlineResponse201 result = apiInstance.GetBrandById(id, includes, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BrandsApi.GetBrandById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of brand to fetch | |
includes | List | Include associated objects within response | [optional] |
limit | int? | max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 GetBrands (List includes, int? limit, List orderBy)
Returns all brands from the system that the user has access to ### Includes You can give the following values on includes parameter: routes, products
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetBrandsExample
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");
var apiInstance = new BrandsApi();
var includes = new List<string>(); // List<string> | Include associated objects within response (optional)
var limit = 56; // int? | max records to return (optional)
var orderBy = new List<string>(); // List<string> | Specify the field to be sorted, examples: - `?order_by=id|desc` - `?order_by=updated_at|desc,position|asc` (optional)
try
{
InlineResponse200 result = apiInstance.GetBrands(includes, limit, orderBy);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BrandsApi.GetBrands: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
includes | List | Include associated objects within response | [optional] |
limit | int? | max records to return | [optional] |
orderBy | List | Specify the field to be sorted, examples: - `?order_by=id | desc` - `?order_by=updated_at |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateCategoryById (long? id, Object brand)
Update a single brand based on the ID supplied
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class UpdateCategoryByIdExample
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");
var apiInstance = new BrandsApi();
var id = 789; // long? | ID of brand to update
var brand = ; // Object | Brand to update in store
try
{
apiInstance.UpdateCategoryById(id, brand);
}
catch (Exception e)
{
Debug.Print("Exception when calling BrandsApi.UpdateCategoryById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of brand to update | |
brand | Object | Brand to update in store |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateCategoryById_0 (long? id, Object brand)
Update a single brand based on the ID supplied
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class UpdateCategoryById_0Example
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");
var apiInstance = new BrandsApi();
var id = 789; // long? | ID of brand to update
var brand = ; // Object | Brand to update in store
try
{
apiInstance.UpdateCategoryById_0(id, brand);
}
catch (Exception e)
{
Debug.Print("Exception when calling BrandsApi.UpdateCategoryById_0: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of brand to update | |
brand | Object | Brand to update in store |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]