Shopify Storefront API · API Governance Rules
Shopify Storefront API API Rules
Spectral linting rules defining API design standards and conventions for Shopify Storefront API.
6 Rules
error 2
warn 2
info 2
Rule Categories
shopify
Rules
info
shopify-storefront-graphql-endpoint
Shopify Storefront API uses a single GraphQL endpoint
$.paths
error
shopify-storefront-access-token
Storefront API requires X-Shopify-Storefront-Access-Token authentication
$.components.securitySchemes
error
shopify-storefront-operation-id
All Storefront API operations must have operationIds
$.paths[*][get,post,put,delete,patch]
warn
shopify-storefront-graphql-content-type
GraphQL endpoint should accept application/json content type
$.paths[*].post.requestBody.content
warn
shopify-storefront-graphql-response
GraphQL responses should have data and errors fields
$.components.schemas.GraphQLResponse.properties
info
shopify-storefront-gid-format
Shopify Storefront API uses global IDs in gid://shopify/ format
$.components.schemas.*.properties.id