Now let's explore each optional attribute and how to use them effectively.
Path Parameters
Path parameters are used to replace dynamic segments in your URL path.
Example:
This will resolve to a request to https://api.example.com/users/12345.
Query Parameters
Query parameters add a query string to your URL.
Example:
This will resolve to a request to https://api.example.com/users?page=1&limit=10&sort=name
Headers
Headers allow you to send additional information with your request.
Example:
Body
The body contains data sent with the request. It's typically used with POST, PUT, and PATCH methods.
Example:
Multiple Requests
Laminar also supports sending multiple HTTP requests in a single operation. This is useful for batch processing or when you need to perform several related actions at once. See HTTP Request Batching.
You can make your batch requests more powerful by using dynamic path parameters. This is especially useful when working with lists of IDs: