Update web services documentation with information about the new delete services

FEA: ItEr77S06AllowDeleteWorkReports
This commit is contained in:
Manuel Rego Casasnovas 2012-08-27 12:22:43 +02:00
parent 1a973577e3
commit 9a7af06595

View file

@ -5,7 +5,7 @@ Web Services
:Author: Manuel Rego Casasnovas :Author: Manuel Rego Casasnovas
:Contact: rego@igalia.com :Contact: rego@igalia.com
:Date: 28/06/2011 :Date: 27/08/2012
:Copyright: :Copyright:
Some rights reserved. This document is distributed under the Creative Some rights reserved. This document is distributed under the Creative
Commons Attribution-ShareAlike 3.0 licence, available in Commons Attribution-ShareAlike 3.0 licence, available in
@ -93,6 +93,8 @@ permissions for web services of LibrePlan. Default credentials are:
LibrePlan web services use `HTTP Basic Authentication`_ LibrePlan web services use `HTTP Basic Authentication`_
.. _`HTTP Basic Authentication`: http://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA
Common parameters Common parameters
----------------- -----------------
@ -147,10 +149,10 @@ read credentials for web services: ``/ws/rest/<service-path>/?_wadl&_type=xml``
Export scripts Export scripts
-------------- --------------
There several scripts to just get information from LibrePlan system. They always There are several scripts to just get information from LibrePlan system. They
start with ``export-`` prefix. These scripts usually don't need any parameter alway start with ``export-`` prefix. These scripts usually don't need any
(apart from the one to select the environment). They will return a XML output parameter (apart from the one to select the environment). They will return a XML
with the data requested. output with the data requested.
Example:: Example::
@ -177,9 +179,6 @@ Example::
$ ./import-resources.sh resources-sample.xml $ ./import-resources.sh resources-sample.xml
.. _`HTTP Basic Authentication`: http://www.w3.org/Protocols/HTTP/1.0/spec.html#BasicAA
Available web services Available web services
---------------------- ----------------------
@ -206,6 +205,15 @@ For each entity there are the following methods:
* No parameters * No parameters
* URL: ``/ws/rest/<service-path>/`` * URL: ``/ws/rest/<service-path>/``
* Remove entity (only available for work reports):
* HTTP method: ``DELETE``
* Parameter: ``entity-code``
* URL: ``/ws/rest/workreports/<entity-code>/``
* Special URL for work report lines:
``/ws/rest/workreports/line/<entity-code>/``
Supported entities: Supported entities:
* Exception Days: * Exception Days: