This repository was archived by the owner on Apr 2, 2025. It is now read-only.
[v0.6.0] - 2025-02-11
Added
- Added token-based pagination to
GET /orders
,GET /products
,
GET /orders/{order_id}/statuses
, andPOST /products/{product_id}/opportunities
. - Optional and Extension STAPI Status Codes "scheduled", "held", "processing", "reserved", "tasked",
and "user_canceled" - Asynchronous opportunity search. If the root router supports asynchronous opportunity
search, all products must support it. If asynchronous opportunity search is
supported,POST
requests to the/products/{productId}/opportunities
endpoint will
default to asynchronous opportunity search unless synchronous search is also supported
by theproduct
and aPrefer
header in thePOST
request is set towait
. - Added the
/products/{productId}/opportunities/
and/searches/opportunities
endpoints to support asynchronous opportunity search.
Changed
- Replaced the root and product backend Protocol classes with Callable type aliases to
enable future changes to make product opportunity searching, product ordering, and/or
asynchronous (stateful) product opportunity searching optional. - Backend methods that support pagination now return tuples to include the pagination
token. - Moved
OrderCollection
construction from the root backend to theRootRouter
get_orders
method. - Renamed
OpportunityRequest
toOpportunityPayload
so that would not be confused as
being a subclass of the Starlette/FastAPI Request class.
Fixed
- Opportunities Search result now has the search body in the
create-order
link.