# HG changeset patch # User Tim Englich # Date 1272980196 0 # Node ID 29a4a1a99a2255636e09036230a6e41b67bab5d7 # Parent 8a63b0d53003e83730a7d197aa98e527abac3044 Added Sample calls for creating an FIS doc/trunk@1054 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 8a63b0d53003 -r 29a4a1a99a22 doc/ChangeLog --- 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 + + * 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 * config-manual/model_of_transitions.tex: diff -r 8a63b0d53003 -r 29a4a1a99a22 doc/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 @@ - + \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. diff -r 8a63b0d53003 -r 29a4a1a99a22 doc/config-manual/sample-documents/create-artifact.xml --- /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 @@ +