Linting Rules - OpenAPI V3 Have GET Method
Number of APIs: 1
Needs a summary.
{
"openapi-v3-have-get-method": {
"description": "Ensures that all APIs at least have one GET method.",
"message": "An API must have at least one GET method.",
"formats": [
"oas3"
],
"given": "$.paths[/]",
"severity": "warn",
"then": {
"field": "get",
"function": "truthy"
}
}
}
This request can be run as part of this collection, or dragged and dropped to another collection of governance requests organized by folder, demonstrating how API governance linting works, but also providing a rule that can be used as part of your wider API governance strategy.
- OpenAPI V3 Have GET Method POST {{baseUrl}}/linter?rulesUrl=https://rules.linting.org/rules/openapi-v3-have-get-method/