From 69c7d4fc521eedca13ff2dca8e869e643faa3f58 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Tue, 12 Jul 2011 17:22:40 +0200 Subject: [PATCH] [doc] Updated web services documentation with info about new methods. FEA: ItEr75S12AllowExportOneEntity --- scripts/rest-clients/README | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/rest-clients/README b/scripts/rest-clients/README index 4881a2bb4..996a8a82a 100644 --- a/scripts/rest-clients/README +++ b/scripts/rest-clients/README @@ -37,8 +37,8 @@ methods with the following meaning: return a list with all the entities. For example, resources web service will return a list with all application resources. - This is current behaviour for ``GET`` services, but it could be expanded to - just return one entity sending the code as a GET parameter. + You can also pass ``code`` attribute (since LibrePlan 1.2) in order to return + just one entity sending the code as a GET parameter. * ``POST``: Used to add and update information in NavalPlan. These services will receive a XML file with a list of entities. For each entity there could be 2 @@ -149,6 +149,11 @@ Example:: $ ./export-resources.sh +To export just one specific resource by code you can add a new extra parameter. +Example:: + + $ ./export-resources.sh WORKER00011 + Import scripts --------------