TASKPM/scripts/rest-clients
Fernando Bellas Permuy 22c883820a ItEr47S12CUImportacionRecursosProductivosItEr46S13: ResourceServiceREST adapted to GenericRESTService and added support for recoverable errors.
ResourceServiceREST has been adapted to GenericRESTService. Updating functionality in ResourceServiceREST is not implemented yet.

As part of this patch, the generic infraestructure for REST services has been improved. In particular, recoverable error support has been provided. Exceptions representing recoverable errors must extend from RecoverableErrorException. To demonstrate this capability, ResourceServiceREST nows reports non-existent calendars, criterions, critetion types, and cost categories as recoverable errors.
2010-02-10 13:09:28 +01:00
..
base64.sh ItEr40S20CUImportacionRecursosProductivosItEr39S23: "scripts/rest-clients" folder has been created with initial scripts for REST clients. 2009-12-23 13:53:13 +01:00
criterion-types-sample.xml ItEr46S13CUImportacionRecursosProductivosItEr45S11: First version of the generic REST service and CriterionServiceREST reimplemented in terms of it. 2010-02-05 12:25:36 +01:00
criterion-types-update-sample.xml ItEr46S13CUImportacionRecursosProductivosItEr45S11: First version of the generic REST service and CriterionServiceREST reimplemented in terms of it. 2010-02-05 12:25:36 +01:00
export-criterion-types.sh ItEr40S20CUImportacionRecursosProductivosItEr39S23: get-*.sh and post-*.sh REST scripts have been renamed to export-*.sh and import-*.sh, respectively. 2009-12-29 17:13:12 +01:00
export-order-element.sh ItEr41S16ImplantacionAplicacionItEr40S21: Added scripts for order elements service. 2010-01-02 12:58:45 +01:00
export-resources-hours.sh ItEr45S17CUServizoExportacionHoras: Added script to test the new service to export resource hours from command line. 2010-01-26 20:29:10 +01:00
get-xml-schema.sh ItEr43S09ImplantacionAplicacionItEr42S13: Added script to get XML Schema of web services. 2010-01-13 14:04:54 +01:00
import-criterions-types.sh ItEr41S16ImplantacionAplicacionItEr40S21: Added scripts for order elements service. 2010-01-02 12:58:45 +01:00
import-order.sh ItEr41S16ImplantacionAplicacionItEr40S21: Added scripts for order elements service. 2010-01-02 12:58:45 +01:00
import-resources.sh ItEr41S16ImplantacionAplicacionItEr40S21: Added scripts for order elements service. 2010-01-02 12:58:45 +01:00
order-sample.xml ItEr45S23CUImportacionTiposEtiquetasEEtiquetas: Removed labels information from example XMLs, because of it is needed that labels exists on database before make the import of the order. 2010-01-28 14:09:05 +01:00
order-update-sample.xml ItEr45S23CUImportacionTiposEtiquetasEEtiquetas: Removed labels information from example XMLs, because of it is needed that labels exists on database before make the import of the order. 2010-01-28 14:09:05 +01:00
README ItEr46S13CUImportacionRecursosProductivosItEr45S11: Added support for updating when importing criterion types. 2010-02-03 23:14:09 +01:00
resources-sample-mini.xml ItEr46S13CUImportacionRecursosProductivosItEr45S11: code added to entities imported by ResourceService. 2010-02-05 18:27:01 +01:00
resources-sample.xml ItEr47S12CUImportacionRecursosProductivosItEr46S13: ResourceServiceREST adapted to GenericRESTService and added support for recoverable errors. 2010-02-10 13:09:28 +01:00
rest-common-env.sh ItEr40S20CUImportacionRecursosProductivosItEr39S23: "scripts/rest-clients" folder has been created with initial scripts for REST clients. 2009-12-23 13:53:13 +01:00
update-order.sh ItEr41S16ImplantacionAplicacionItEr40S21: Added scripts for order elements service. 2010-01-02 12:58:45 +01:00

+ Check you have "tidy" available from the command line.

+ Check you have "/usr/bin/ruby".

+ chmod u+x *.sh

+ When working with the local application:

  * Get XML Schema for any service:

    - get-xml-schema.sh <service-path>

    Example:
    - get-xml-schema.sh criteriontypes

  * [Optional] For clarity: remove "navaldev" database + reload Jetty.

  * Import criterion types:

    - import-criterions-types.sh criterion-types-sample.xml
      (authenticate with wswriter/wswriter)

    - Check the returned errors are consistent with the comments in
      criterion-types-sample.xml.

    - Repeat with criterion-types-update-sample.xml (for updating some
      criterion types).

  * Export criterion types:

    - export-criterion-types.sh (authenticate with wsreader/wsreader)

  * Import resources:

    - import-resources.sh resources-sample-mini.xml (or resources-sample.xml)
      (authenticate with wswriter/wswriter)

    - Check the returned errors are consistent with the comments in
      resources-sample.xml.

  * Export order elements:

    - export-order-element.sh ORDER-ELEMENT-CODE (authenticate with
      wsreader/wsreader)

  * Import orders:

    - import-order.sh order-sample.xml (authenticate with wswriter/wswriter)

  * Update orders:

    - update-order.sh order-update-sample.xml (authenticate with
      wswriter/wswriter)

  * Export resources hours:

    - export-resources-hours.sh 2010-01-01 2010-12-31 (authenticate with
      wsreader/wsreader)

    - export-resources-hours.sh 21654685 2010-01-01 2010-12-31 (authenticate
      with wsreader/wsreader)

+ When working with the online demo add "--prod" argument to every command.
Example:

  * import-criterions-types.sh --prod criterion-types-sample.xml
    (authenticate with wswriter/wswriter)