All URIs are relative to https://{customerId}.billabear.cloud/api/v1
Method | HTTP request | Description |
---|---|---|
CreateProduct | Post /product | Create |
ListProduct | Get /product | List |
ShowProductById | Get /product/{productId} | Detail |
UpdateProduct | Put /product/{productId} | Update |
string CreateProduct(ctx, body) Create
Create a product
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | Product |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2008 ListProduct(ctx, optional) List
List all products
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *ProductsApiListProductOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ProductsApiListProductOpts struct
Name | Type | Description | Notes |
---|---|---|---|
limit | optional.Int32 | How many items to return at one time (max 100) | |
lastKey | optional.String | The key to be used in pagination to say what the last key of the previous page was | |
name | optional.String | The name to search for |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Product ShowProductById(ctx, productId) Detail
Info for a specific product
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
productId | string | The id of the product to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Product UpdateProduct(ctx, productId) Update
Update a product
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
productId | string | The id of the product to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]