Get Endpoint Details
swagger_get_endpointGet detailed information about a specific API endpoint, including parameters, request body, responses, and security requirements. Specify spec name, path, and method.
Instructions
Get detailed information about a specific API endpoint, including parameters, request body, responses, and security requirements.
Use this tool after swagger_list_paths to drill down into a specific endpoint's complete details.
Args:
spec_name (string): Name of the previously loaded spec
path (string): URL path of the endpoint (e.g., "/pets/{petId}")
method (string): HTTP method (get, post, put, patch, delete, options, head)
Returns: Full endpoint details with parameters, request body, responses, and security.
Examples:
Use when: "Show me the details of GET /pets/{petId}" -> params with spec_name="", path="/pets/{petId}", method="get"
Use when: "What parameters does the create user endpoint take?" -> params with spec_name="", path="/users", method="post"
Error Handling:
Returns error if the spec name has not been loaded
Returns error if the path or method is not found, with suggestions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | URL path of the endpoint (e.g., '/pets/{petId}', '/users', '/store/order'). Must start with '/'. | |
| method | Yes | HTTP method (get, post, put, patch, delete, options, head) | |
| spec_name | Yes | Name of the previously loaded OpenAPI/Swagger spec (use swagger_list_loaded to see available names) |