User Tools

Site Tools


api2:rules

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
api2:rules [2017/10/07 14:46]
127.0.0.1 external edit
api2:rules [2018/08/08 17:56] (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.
 +
 +===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
 +  * **204** : the object has been destroyed
 +  * **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)
 +  * **422** : unprocessable entity (missing parameters, invalid operation, constraint violation etc.)
 +  * **500** : internal server error
 +
 +===Error code===
 +Ongoing work
  
api2/rules.1507380377.txt.gz · Last modified: 2017/10/07 14:46 by 127.0.0.1