changeset 919:29a4a1a99a22

Added Sample calls for creating an FIS doc/trunk@1054 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 04 May 2010 13:36:36 +0000
parents 8a63b0d53003
children 63bc0044ff72
files doc/ChangeLog doc/config-manual/model_of_transitions.tex doc/config-manual/sample-documents/create-artifact.xml
diffstat 3 files changed, 28 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/doc/ChangeLog	Tue May 04 12:54:42 2010 +0000
+++ b/doc/ChangeLog	Tue May 04 13:36:36 2010 +0000
@@ -1,3 +1,12 @@
+2010-05-04  Tim Englich <tim@intevation.de>
+
+	* config-manual/model_of_transitions.tex:
+	Added Sample calls for creating an FIS and also getting
+	the Products which it contains.
+	* config-manual/sample-documents/create-artifact.xml:
+	Added XMl-Document which contains the XML-Request-Body for
+	the http-post call for creating an Artifact.
+
 2010-05-04  Tim Englich <tim@intevation.de>
 
 	* config-manual/model_of_transitions.tex:
--- a/doc/config-manual/model_of_transitions.tex	Tue May 04 12:54:42 2010 +0000
+++ b/doc/config-manual/model_of_transitions.tex	Tue May 04 13:36:36 2010 +0000
@@ -591,7 +591,7 @@
 Then we check if the new FIS is served by the REST-Server
 calling the following command:
 
-curl http://localhost:8181/factories |grep fis\_justanewfis
+curl http://localhost:8181/factories | xmllint --format - | grep fis\_justanewfis
 
 If the FIS was added the new Artifactfactory will be found in the generated 
 XML-Output and it will be shown.
@@ -633,11 +633,16 @@
 
 Restart the Artifact-Database:
 
+\begin{lstlisting}
 /etc/init.d/artifactdb restart
+\end{lstlisting}
 
 Now we should be able to choose the Artifact.
+
 The Listbox with products will be empty.
-//TODO: USE Screenshots the commandline is to complex?
+\begin{lstlisting}
+curl -d "@sample-documents/create-artifact.xml"  http://localhost:8181/create | xmllint --format -
+\end{lstlisting}
 
 \subsubsection{Adding removing Products to the specific Artifact}
 Now it is Time to configure the different Products which the FIS should be able 
@@ -703,14 +708,23 @@
         <parameter name="fisname" 
                  value="fis\_justanewfis"/>
     </parameters>
- </product>
+</product>
 \end{lstlisting}
 
 Restart the Artifact-Database:
 
+\begin{lstlisting}
 /etc/init.d/artifactdb restart
+\end{lstlisting}
+
+If we call 
+\begin{lstlisting}
+curl -d "@sample-documents/create-artifact.xml"  http://localhost:8181/create | xmllint --format -
+\end{lstlisting}
+
+The Product timeSeries should be available for ths FIS justanewfis.
  
-Now we should be able to choose the Product Timeseries for FIS justanewfis.
+Now we should be able to choose the Product.
 This Product should work and you should be able to generate even the defined
 Outputformats.
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/config-manual/sample-documents/create-artifact.xml	Tue May 04 13:36:36 2010 +0000
@@ -0,0 +1,1 @@
+<?xml version="1.0" encoding="UTF-8"?><art:action xmlns:art="http://www.intevation.de/2009/artifacts"><art:type name="create"/><art:factory name="fis_justanewfis"/></art:action>

http://dive4elements.wald.intevation.org