====== Differences ====== This shows you the differences between two versions of the page.
api1:rules [2017/10/07 14:56] 127.0.0.1 external edit |
api1:rules [2017/10/17 10:00] (current) maries |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===Format rules=== | ||
+ | ==Dates== | ||
+ | All date and time values are displayed as integer numbers and represent the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT), like [[http://php.net/manual/en/function.time.php|PHP time()]] function. The date/time property type in the specification is specified as “Time”, the actual JSON type is “Number”. | ||
+ | |||
+ | ==Case Sensitive Parameters== | ||
+ | The field and parameter names in requests are case sensitive. | ||
+ | |||
+ | ==Currencies== | ||
+ | We support these currencies | ||
+ | * « EUR » | ||
+ | * « USD » | ||
+ | |||
+ | The [[https://en.wikipedia.org/wiki/ISO_4217|ISO_4217]] format is expected | ||
+ | |||
+ | ==Languages== | ||
+ | We support thesse languages: | ||
+ | * << FR >> | ||
+ | * << EN >> | ||
+ | * << ES >> | ||
+ | |||
+ | The [[https://fr.wikipedia.org/wiki/ISO_3166-1|ISO_3166]] format is expected. | ||
+ | |||
+ | ===HTTP Response Code=== | ||
+ | The following HTTP codes are used by the API to respond to requests:\\ | ||
+ | * **200** : request successful | ||
+ | * **201** : the object has been created | ||
+ | * **400** : any kind of logical error (missing parameters, invalid operation, constraint violation etc.) | ||
+ | * **403** : access is forbidden (authentication or authorization failure) | ||
+ | * **404** : object not found | ||
+ | * **405** : HTTP method not allowed (for example if you try to update a read-only object) | ||
+ | * **411** : length Required (if the request body is empty for methods that require it) | ||
+ | * **500** : internal server error | ||
+ | |||
+ | ===Error code=== | ||
+ | Waiting for API v2. | ||