Files
openapi-generator/samples/client/others/rust/reqwest/enum-query-params/docs/DefaultApi.md
Devon ae42568b26 [Rust] Enum Query Parameter Serialization Fixes (#22683)
* [Rust] Enum Query Parameter Serialization Fixes

Adds tests to ensure this won't regress again. Also fixes some other compile errors with Box<> and file uploads.

* Remove duplicate query param integration tests from petstore samples

* re-gen samples

* fix enum boxing tests

* stream files

* samples

* doc generator fix & snapshot

* doc generation fixes, update samples

* another attempt to fix the doc generator

* improve doc generation - don't try link to internal models, and fixing links missing in some scenarios

the rust doc generator will be the death of me

* also fix hyper

* applying same fix to hyper

* snapshot fixes
2026-01-13 11:18:56 +08:00

2.0 KiB

\DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
get_aggregate_data GET /aggregate Get aggregated data
get_items GET /items Get items with filters

get_aggregate_data

models::AggregateResponse get_aggregate_data(status, time_bucket, sort_direction) Get aggregated data

Test endpoint with enum query parameters referenced via $ref

Parameters

Name Type Description Required Notes
status Status Status filter [required]
time_bucket Option<TimeBucket> Time aggregation bucket
sort_direction Option<SortDirection> Sort direction

Return type

models::AggregateResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_items

Vecmodels::Item get_items(category, priority) Get items with filters

Parameters

Name Type Description Required Notes
category Option<String> Item category (inline enum)
priority Option<Priority> Priority level (enum via ref)

Return type

Vecmodels::Item

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]