mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-24 15:19:17 +00:00
1.6 KiB
1.6 KiB
Adidas API Guidelines Ruleset
- all JSON fields MUST follow
camelCase - field names MUST be ASCII alphanumeric characters or
_or$ - collection/array fields MUST have names in plural
- all requests go through
httpsprotocol - every API operation MUST have at least one
2xxresponse GETrequest MUST NOT accept abodyparameter- all success responses MUST be of media type
application/hal+json - all error responses MUST be of media type
application/problem+json - every request SHOULD support
application/jsonmedia type application/hal+jsonfollows https://supermodel.io/adidas/api/HALJSON-Schemaapplication/problem+jsonmessages MUST includetitleanddetailfieldsapplication/problem+jsonmessages SHOULD includetypefield- date and time MUST follow
ISO 8601standard: https://www.iso.org/iso-8601-date-and-time-format.html - language codes MUST follow
ISO 639standard: https://www.iso.org/iso-639-language-codes.html - country codes MUST follow
ISO 3166 alpha-2standard: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 - currency codes MUST follow
ISO 4217standard: https://en.wikipedia.org/wiki/ISO_4217 202response code is used after creating an asynchronous process request- a successful and finished async api request returns
303response code and sends the target resource location in theLinkheader URItemplate (RFC 6570) cannot contain a-characterHTTPheaders MUST useHyphenated-Pascal-CasenotationHTTPheaders SHOULD NOT includeX-headers. All non-standard headers are named without theX-prefix.