TASKPM/scripts/rest-clients
Manuel Rego Casasnovas b19cc48936 Tidy not mandatory for example REST scripts.
* Fixed doc too.

FEA: ItEr74S04BugFixing
2011-06-19 16:51:15 +02:00
..
calendar-exception-type-sample.xml Exception type web services. 2010-10-13 16:32:17 +02:00
calendars-sample.xml Fixed example of calendars service. 2010-09-18 13:38:51 +02:00
cost-categories-sample.xml Fixed example of cost categories service in order to use the same codes than work hours types example. 2010-09-18 13:38:57 +02: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-calendar-exception-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-calendars.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-cost-categories.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-criterion-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-label-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-material-categories.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-orders.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-resources-hours.sh Tidy not mandatory for example REST scripts. 2011-06-19 16:51:15 +02:00
export-resources.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-type-work-hours.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-unit-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export-work-reports.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
export.sh Tidy not mandatory for example REST scripts. 2011-06-19 16:51:15 +02:00
get-xml-schema.sh Updated script to get REST XML schema to new variables for environments. 2011-06-19 15:33:21 +02:00
import-calendar-exception-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-calendars.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-cost-categories.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-criterions-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-label-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-material-categories.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-orders.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-resources.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-type-work-hours.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-unit-types.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import-work-reports.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
import.sh Tidy not mandatory for example REST scripts. 2011-06-19 16:51:15 +02:00
label-sample.xml ItEr49S18AdaptacionServiciosREST: Fixes the LabelServiceREST. 2010-03-04 18:08:53 +01:00
material-categories-sample.xml Fixed material categories service, updated examples and documentation. 2010-09-18 13:39:00 +02:00
order-sample.xml Fixed orders service examples and documentation. 2010-09-20 11:07:07 +02:00
order-update-sample.xml Fixed orders service examples and documentation. 2010-09-20 11:07:07 +02:00
orders-sample.xml Fixed orders service examples and documentation. 2010-09-20 11:07:07 +02:00
README Tidy not mandatory for example REST scripts. 2011-06-19 16:51:15 +02:00
resource-withCalendars-sample.xml ItEr55S07AdaptacionServiciosRESTItEr54S09: Fixed type in hors-per-day instead of hours-per-day. 2010-04-26 13:50:13 +02: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: Added updating functionality to ResourceServiceREST 2010-02-12 10:53:54 +01:00
resources-update-sample.xml ItEr47S12CUImportacionRecursosProductivosItEr46S13: Added updating functionality to ResourceServiceREST 2010-02-12 10:53:54 +01:00
rest-common-env.sh Now rest clients use demo deployment by default and have 2 new options --prod and --dev. 2011-06-09 10:38:37 +02:00
type-work-hours-sample.xml ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : Fixing bug in the type of work hours class. 2010-07-09 13:49:01 +02:00
unit-types-sample.xml Fixed material categories service, updated examples and documentation. 2010-09-18 13:39:00 +02:00
work-reports-sample.xml Renaming example of work reports service to make it consistent with the rest of examples. 2010-09-20 11:07:07 +02:00

+ It's recommended to have "tidy" available in your system.

+ 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 label types:

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

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

  * Export label types:

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

  * Import type of work hours:

    - import-type-work-hours.sh type-work-hours-sample.xml
      (authenticate with wswriter/wswriter)

  * Export type of work hours:

    - export-type-work-hours.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.

    - Repeat with resources-update-sample.xml (resources-sample-mini.xml
      must be previously imported).

  * Export order elements:

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

  * Import orders:

    - import-order-elements.sh order-elements-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)

  * Export calendar exception types:

    - export-calendar-exception-types.sh (authenticate with wsreader/wsreader)

  * Export calendars:

    - export-calendars.sh (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)