Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:2.1:restconfbackend [2019/08/01 20:45]
cmaudoux [REST configuration backend]
documentation:2.1:restconfbackend [2019/09/30 17:31] (current)
coudot [REST configuration backend]
Line 5: Line 5:
   * GET /​config/<​cfgNum>:​ get the metadata for config n° <​cfgNum>​   * GET /​config/<​cfgNum>:​ get the metadata for config n° <​cfgNum>​
   * GET /​config/<​latest|cfgNum>/<​key>:​ get conf key value   * GET /​config/<​latest|cfgNum>/<​key>:​ get conf key value
-  * GET /​config/<​latest|cfgNum>?​full:​ get the full configuration+  * GET /​config/<​latest|cfgNum>?​full=1: get the full configuration
  
 You can retrieve "human readable"​ error messages: You can retrieve "human readable"​ error messages:
-  * GET /​error/<​lang>/<​errNum>:​ get error <​errNum> ​from lang <​lang> ​message +  * GET /​error/<​lang>/<​errNum>:​ get <​errNum> ​error reference and  ​<​lang> ​errors file. 
-If no <errNum> provided, ​retrieve ALL error messages from <​lang>​ ('​en' ​by default if no <​lang>​ specified)+If no <lang> provided, '​en' ​errors file is returned.
  
 <note tip>Note that REST is not a real configuration backend, but just a proxy system to access to your configuration over the network</​note>​ <note tip>Note that REST is not a real configuration backend, but just a proxy system to access to your configuration over the network</​note>​