Edamam · API Governance Rules
Edamam API Rules
Spectral linting rules defining API design standards and conventions for Edamam.
15 Rules
error 8
warn 6
info 1
Rule Categories
edamam
Rules
error
edamam-summary-required
Every operation MUST have a summary.
#EdamamOperations
warn
edamam-summary-title-case
Operation summaries SHOULD use Title Case (Edamam convention).
#EdamamOperations
warn
edamam-description-required
Operations SHOULD provide a description with usage context.
#EdamamOperations
error
edamam-tags-required
Operations MUST be tagged (Recipe Search, Food Database, Nutrition, Meal Planner, Shopping List).
#EdamamOperations
error
edamam-app-id-key-auth
All operations MUST require Edamam app_id + app_key (or HTTP basic) auth.
#EdamamOperations
info
edamam-account-user-header
Operations SHOULD support the Edamam-Account-User header for Active User Tracking.
#EdamamOperations
error
edamam-paths-version-prefix
Paths MUST be versioned under /api/{api-name}/v{n}/...
$.paths
error
edamam-paths-no-trailing-slash
Paths MUST NOT end with a trailing slash.
$.paths
error
edamam-200-response-required
GET/POST operations MUST define a 200 response.
$.paths[*][get,post]
warn
edamam-400-response-required
Operations SHOULD document a 400 error response.
#EdamamOperations
warn
edamam-403-response-required
Operations SHOULD document a 403 auth/quota error response.
#EdamamOperations
warn
edamam-recipe-schema-fields
Recipe schema SHOULD include uri, label, ingredients, totalNutrients, dietLabels, healthLabels.
$.components.schemas.Recipe.properties
error
edamam-nutrient-info-shape
NutrientInfo MUST expose label, quantity, unit.
$.components.schemas.NutrientInfo.properties
warn
edamam-links-hateoas
Paged list responses MUST include _links.next using HATEOAS.
$.components.schemas.Response.properties
error
edamam-co2-class-enum
co2EmissionsClass MUST be one of A+, A, B, C, D, E, F, G.
$.components.schemas.Recipe.properties.co2EmissionsClass