Best practices for using aurl
mainTo ensure successful requests with aurl, follow these usage patterns:
- Discovery Workflow: When using an unfamiliar API, first run
aurl [name] --helpto scan endpoints, then useaurl [name] describe METHOD /pathto read full documentation before attempting a call. - Query Parameters: Include query parameters directly in the path:
aurl [name] GET '/path?key=value'. - Shell Safety: Always quote paths that contain a
?character to prevent your shell from attempting globbing. - Validation:
aurlvalidates enum parameters before sending. If you miss required body fields, the CLI will trigger a warning. - Error Handling: If a request results in a 4xx error,
aurlwill suggest the expected request body based on the API specification.