Skip to content

stapi-fastapi/v0.8.0

Choose a tag to compare

@philvarner philvarner released this 18 Dec 16:50
3f766b1

Added

  • RootRouter Callable get_orders now requires an additional value in the result tuple that is a count of the total number of orders
    that will be returned from pagination. When this returns Some(int), the value is used for the numberMatched field in
    FeatureCollection returned from the /orders endpoint. If this feature is not desired, providing a function that returns
    Nothing will exclude the numberMatched field in the response.
  • ProductRouter and RootRouter now have a method url_for that makes the link generation code slightly cleaner and
    allows for overridding in child classes, to support proxy rewrite of the links.