Request payload wrapper for POST, PUT, PATCH, and DELETE handlers.
This newtype wraps a serde_json::Value to accept arbitrary JSON bodies
in requests that support request bodies.
Echoes back the request’s method and headers. If a JSON body is provided,
it will also be echoed. Otherwise, the body in the response will be null.
DELETEPayload (optional): A generic JSON object.200 OK: Returns a JSON object containing method, headers, and body (if provided).Request payload wrapper for POST, PUT, PATCH, and DELETE handlers.
This newtype wraps a serde_json::Value to accept arbitrary JSON bodies
in requests that support request bodies.
Echoes request details, body is null if not provided
Returns a JSON array of EndpointInfo objects, each describing an endpoint’s
path, HTTP method, and a brief description.
GET200 OK: Successfully returns the list of endpoints.500 Internal Server Error: If there’s an issue serializing the endpoint data.Lists all available API endpoints
Represents information about an API endpoint.
A brief description of the endpoint’s purpose.
Example:Echoes request details for GET.
The HTTP method of the endpoint (e.g., “GET”).
Example:GET
The path of the endpoint (e.g., “/get”).
Example:/get
Echoes back the request’s method and headers as a JSON object.
GET200 OK: Returns a JSON object containing the method and headers.Echoes request details (includes a tls object over HTTPS)
Responds with the same headers as a GET request to /get, but with no body.
This is typically used to check if a resource exists or to get its metadata
without transferring the entire content.
HEAD200 OK: Returns an empty body with appropriate headers.Responds with headers for GET query
Useful for debugging what headers are being sent by the client,
including auth tokens, proxy headers, and custom headers.
GET200 OK: Returns a JSON object containing all request headers.Returns all request headers