diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-23 08:36:26 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-23 08:36:26 +0200 |
| commit | 5543c1d2ba00f8379685ab22154caf1ad9f4659d (patch) | |
| tree | 46518bac5fae927b624c5c533949b1dfcf58921f /crates/rocie-client/docs/ApiSetBarcodeApi.md | |
| parent | build(scripts/mk_sqlite_schema.sh): Init (diff) | |
| download | server-5543c1d2ba00f8379685ab22154caf1ad9f4659d.zip | |
chore(crates/rocies-client): Regenerate
Diffstat (limited to 'crates/rocie-client/docs/ApiSetBarcodeApi.md')
| -rw-r--r-- | crates/rocie-client/docs/ApiSetBarcodeApi.md | 67 |
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) + |
