about summary refs log tree commit diff stats
path: root/crates/rocie-client/docs/ApiSetBarcodeApi.md
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-client/docs/ApiSetBarcodeApi.md')
-rw-r--r--crates/rocie-client/docs/ApiSetBarcodeApi.md67
1 files changed, 67 insertions, 0 deletions
diff --git a/crates/rocie-client/docs/ApiSetBarcodeApi.md b/crates/rocie-client/docs/ApiSetBarcodeApi.md
new file mode 100644
index 0000000..2075bb9
--- /dev/null
+++ b/crates/rocie-client/docs/ApiSetBarcodeApi.md
@@ -0,0 +1,67 @@
+# \ApiSetBarcodeApi
+
+All URIs are relative to *http://localhost*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**buy_barcode**](ApiSetBarcodeApi.md#buy_barcode) | **POST** /barcode/{id}/buy | Buy an barcode
+[**consume_barcode**](ApiSetBarcodeApi.md#consume_barcode) | **POST** /barcode/{id}/consume | Consume an barcode
+
+
+
+## buy_barcode
+
+> buy_barcode(id)
+Buy an barcode
+
+### Parameters
+
+
+Name | Type | Description  | Required | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+**id** | **i32** | The numeric value of the barcode | [required] |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+[[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)
+
+
+## consume_barcode
+
+> consume_barcode(id, unit_amount)
+Consume an barcode
+
+### Parameters
+
+
+Name | Type | Description  | Required | Notes
+------------- | ------------- | ------------- | ------------- | -------------
+**id** | **i32** | The numeric value of the barcode | [required] |
+**unit_amount** | [**UnitAmount**](UnitAmount.md) |  | [required] |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: text/plain
+
+[[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)
+