mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
1.6 KiB
1.6 KiB
Adidas API Guidelines Ruleset
- all JSON fields follow
camelCase - field names are ASCII alphanumeric characters or
_or$ - collection/array fields have names in plural
- all requests go through
httpsprotocol - every API operation needs to have at least on
2xxresponse GETrequest cannot accept abodyparameter- all responses are of media type
application/hal+json - all error responses are 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 follow
ISO 8601standard: https://www.iso.org/iso-8601-date-and-time-format.html - language codes follow
ISO 639standard: https://www.iso.org/iso-639-language-codes.html - country codes follow
ISO 3166 alpha-2standard: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 - currency codes 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 URIcannot contain a-characterHTTPheaders useHyphenated-Pascal-CasenotationHTTPheaders cannot includeX-headers (https://tools.ietf.org/html/rfc6648). All non-standard headers are named without theX-prefix.