Hi all,<br><br>I will try to write a flow of steps for the use case. Please correct me wherever I am wrong.<br><br><div class="gmail_quote">On Tue, Jun 1, 2010 at 10:26 PM, Arnulf Christl <span dir="ltr">&lt;<a href="mailto:arnulf.christl@metaspatial.net">arnulf.christl@metaspatial.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Vikash,<br>
here goes the first try for a user story:<br>
<br>
User finds a new service / creates a new service and wants to publish<br>
it. All that is needed to register a new service is a user name<br>
(authentication) with email for confirmation, the Capabilities URL of<br>
the service and whether it should be public.<br>
<br></blockquote><div><br>First the user needs to authenticate himself using a username/password. For this I am working on plain http authentication with the mapbender server.<br><br>The registering of a new service is a Create operation. So, it should be a POST operation. And the URI should be like this  (assuming that the url of the mapbender server is <a href="http://www.mapbender.org">www.mapbender.org</a>) - <a href="http://www.mapbender.org/resources/resourceID">http://www.mapbender.org/resources/resourceID</a><br>
<br>So to post this user would send four parameters username, email id and capabilities url and public/private status of the service.<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Q: What happens if this URL (or a similar one?) has already been<br>
uploaded earlier? Add a counter for the the same URL (uploaded several<br>
times)?<br>
A: The Capabilities URL needs to be checked against the ones already in<br>
the database. -&gt; What happens then?<br></blockquote><div><br>In case, the capabilities URL already exists, we can send an error to the user saying that it already exists. <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Q: What happens if the user gets &quot;lost&quot;, is deleted, etc.?<br>
A: ?<br></blockquote><div><br>I didn&#39;t really get this? <br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Q: What happens if the service is deleted by another user? (This is<br>
currently not possible, it would generate an error message).<br></blockquote><div><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Q: What happens if Mapbender cannot read the capabilities document?<br>
A: Error message &amp; ?<br></blockquote><div><br><br>Again can you explain me this?<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Q: Are we going to use this &quot;interface&quot; also to update services or do we<br>
need to create another one?<br>
A: ?<br></blockquote><div><br>To update the service we need to create a separate interface. And that would be using PUT HTTP command. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
We add these User Stories to the Wiki so that we can refine them there:<br>
<a href="http://www.mapbender.org/Talk:RESTful_API" target="_blank">http://www.mapbender.org/Talk:RESTful_API</a><br>
<br>
<br>
Best regads,<br>
Arnulf.<br>
<br>
<br></blockquote><div><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
- --<br>
Nothing makes sense, except we make it.<br>
<a href="http://www.metaspatial.net" target="_blank">http://www.metaspatial.net</a><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAkwFO7kACgkQXmFKW+BJ1b1FxwCfeCyznkireorNnhg4/Kr4iMHR<br>
4FIAn1BfYIzXmsl2LLWSV36kFejKmgpM<br>
=4NBN<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Mapbender_dev mailing list<br>
<a href="mailto:Mapbender_dev@lists.osgeo.org">Mapbender_dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapbender_dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapbender_dev</a><br>
</blockquote></div><br>