REST service for importing resources has been exported remotely. A script and a sample file with resources is also provided. Complex validations are not implemented yet.
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
+ 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:
|
|
|
|
* [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.
|
|
|
|
* Export criterion types:
|
|
|
|
- export-criterion-types.sh (authenticate with wsreader/wsreader)
|
|
|
|
* Import resources:
|
|
|
|
- import-resources.sh resources-sample.xml
|
|
(authenticate with wswriter/wswriter)
|
|
|
|
- Check the returned errors are consistent with the comments in
|
|
resources-sample.xml.
|
|
|
|
+ When working with the online demo:
|
|
|
|
* import-criterions-types.sh --prod criterion-types-sample.xml
|
|
(authenticate with wswriter/wswriter)
|
|
|
|
* export-criterion-types.sh --prod (authenticate with wsreader/wsreader)
|
|
|
|
* import-resources.sh --prod resources-sample.xml
|
|
(authenticate with wswriter/wswriter)
|