| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.101.0/docs/apis/_sources/http_router_parameters_0.rst.txt |
.. index:: single: http_router_parameters .. _http_router_parameters/0:
.. rst-class:: right
category
http_router_parameters
Declarative router companion category that reuses http_parameters declarations for request extraction and OpenAPI metadata generation.
| Availability:
| logtalk_load(http_parameters(loader))
| Author: Paulo Moura | Version: 1:0:0 | Date: 2026-06-26
| Compilation flags:
| static
| Extends:
| public :ref:`http_router <http_router/0>`
| Uses:
| :ref:`http_core <http_core/0>`
| :ref:`http_parameters <http_parameters/0>`
| :ref:`list <list/0>`
| Remarks:
400 Bad Request response descriptor from the same declarations. Importing objects can extend or override that metadata using route_parameter_extra_metadata/2 or by overriding route_metadata/2 and delegating with ^^route_metadata/2.| Inherited public predicates: | Â :ref:`http_router/0::api_info/1` Â :ref:`http_router/0::handle/2` Â :ref:`http_router/0::operations/1` Â :ref:`http_router/0::schema/2` Â :ref:`http_router/0::security/1` Â :ref:`http_router/0::security_scheme/2` Â :ref:`http_router/0::servers/1` Â
.. contents:: :local: :backlinks: top
.. index:: route_parameters/2 .. _http_router_parameters/0::route_parameters/2:
route_parameters/2 ^^^^^^^^^^^^^^^^^^^^^^
Extracts typed parameters for the route identified by the routed request route/1 annotation.
| Compilation flags:
| static
| Template:
| route_parameters(Request,Parameters)
| Mode and number of proofs:
| route_parameters(+compound,-list(compound)) - one_or_error
| Exceptions:
| Request is not a valid normalized HTTP request term:
| domain_error(http_request,Request)
| Request does not contain a route annotation:
| domain_error(http_routed_request,Request)
| The route parameter declarations are invalid:
| domain_error(http_parameter_declaration,Declaration)
| A path parameter declaration is not declared by the route path template:
| domain_error(http_parameter_declaration(Name,path),not_in_route_path(RouteId))
| A path parameter declaration type is incompatible with the route path template:
| domain_error(http_parameter_declaration(Name,path),incompatible_route_path_type(Type,PathTemplateType))
| The request parameters fail declared type or constraint validation:
| error(http_parameter_validation(Errors),Context)
.. index:: route_parameter_declarations/2 .. _http_router_parameters/0::route_parameter_declarations/2:
route_parameter_declarations/2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Optional hook predicate that returns the http_parameters declaration list for a route identifier.
| Compilation flags:
| static
| Template:
| route_parameter_declarations(RouteId,Declarations)
| Mode and number of proofs:
| route_parameter_declarations(?atom,?list(compound)) - zero_or_one
.. index:: route_parameter_request_body_description/2 .. _http_router_parameters/0::route_parameter_request_body_description/2:
route_parameter_request_body_description/2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Optional hook predicate that customizes the generated OpenAPI request-body description for form parameter declarations.
| Compilation flags:
| static
| Template:
| route_parameter_request_body_description(RouteId,Description)
| Mode and number of proofs:
| route_parameter_request_body_description(?atom,?atom) - zero_or_one
.. index:: route_parameter_extra_metadata/2 .. _http_router_parameters/0::route_parameter_extra_metadata/2:
route_parameter_extra_metadata/2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Optional hook predicate that returns additional route metadata terms to merge with the metadata generated from parameter declarations.
| Compilation flags:
| static
| Template:
| route_parameter_extra_metadata(RouteId,Metadata)
| Mode and number of proofs:
| route_parameter_extra_metadata(?atom,?list(compound)) - zero_or_one
(no local declarations; see entity ancestors if any)
(none)