<br><br><div class="gmail_quote">On Mon, Mar 22, 2010 at 5:51 PM, Arnulf Christl <span dir="ltr"><<a href="mailto:seven@arnulf.us">seven@arnulf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
Siddharth Prakash Singh wrote:<br>
> Hello devs,<br>
><br>
> I will be applying for the GSoc 2010 project - "RESTful API for Mapbender".<br>
> I need to discuss few things to write a proposal for the project -<br>
><br>
> 1) What data format to use - JSON or XML ?<br>
> I personally prefer JSON as it mingles well with Javascript. We can also<br>
> have support for both data format like Twitter API supports both.<br>
<br>
</div>Heelo Siddharth,<br>
thanks for taking up this idea, I am very interested in getting this<br>
started as it has a lot of potential.<br>
<br>
It will probably be a good idea to use both JSON or XML, I am personally<br>
pretty agnostic on this. Maybe others on the list who are deeper in the<br>
software have a more comprehensive opinion on this.<br>
<div class="im"><br>
> 2) What resources/functions to expose to the clients? I am not a Mapbender<br>
> expert (as an administrator). So I need your views positively on this.<br>
<br>
</div>Part of the exercise will involve finding out exactly this. As a<br>
starting ppint but far from a definite list I would suggest to follow<br>
the CRUD paradigm and find out what Mapbender entities we might need:<br>
<br>
* User<br>
* Group<br>
* OGC WMS Service<br>
* Application<br>
<br>
Create: (these will all need an up front user authentication)<br>
* New OGC WMS service in Mapbender (with auto generated unique ID and<br>
relation to an owner)<br>
* New container (that is the old Mapbender "GUI", now "Application")<br>
* New service (that is the OGC WMS serice) in the container. The result<br>
would be a representation of the serivice in a Mapbender Application.<br>
* New Mapbender User (including core metadata like name, email,<br>
organization, etc.)<br>
* New Group ...<br>
* New member in Group<br>
* and so on...<br></blockquote><div><br></div><div><br></div><div>I don't understand what OGC WMS service is. But as a software developer I can make out that I don't need to know exactly what an OGC WMS service is. In terms of code, it will be adding some row in the database. Is this true? If not can you expand it bit more in terms of what needs to be done.</div>
<div><br></div><div>Rest of them are fine.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Read: (some will all need a user authentication, except for "public"<br>
information, see other discussion thread)<br>
* OGC WMS service using the unique Mapbender id, again with user<br>
authentication...<br>
* OGC WMS service using the Online Resource URL<br>
* User metadata via unique Mapbender id<br>
* All OGC WMS services related to user id<br>
* Application...<br>
<br></blockquote><div><br></div><div>Same thing goes here.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Update:<br>
* more or less the same...<br>
<div class="im"><br>
> Please also enlighten me on other issues I will have to face while working<br>
> on this project. I am also exploring more about writing a Restful API in<br>
> PHP.<br>
<br>
</div>I am nut sure what you mean? We will want to have at least 1/3 of the<br>
time up front for designing the Resource and their representation. This<br>
is somewhat unusual for a hacker but it makes the software so much<br>
better. So plan for a lot of communication and learning in the start up<br>
phase.<br></blockquote><div><br></div><div>Yeah I will put up lot of time in the beginning of the project on discussions and communication via mailing list. But could you explain a bit more about what do you mean by saying "designing the resource and their representation". </div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Then we will want to implement the API with a test driven development,<br>
that means first write the test, then the code to satisfy it. Christoph<br>
acn point you to relevant information on how to achieve this in the<br>
Mapbender Wiki.<br>
<br>
And last but not least we need a comprehensive documentation, which<br>
should naturally evolve during the implementation phase and not be added<br>
on as an appendix after everything is done.<br>
<br>
Now - all of this is how it ideally works out. In reality there will be<br>
lapses and issues and confusion. Therefore I suggest to follow an agile<br>
methodology and make a fixed reporting window of no more than 15 Minutes<br>
at least twice a week on IRC where you can report problems and show<br>
stoppers. It will be my job to point you in the right direction to<br>
resolve them.<br></blockquote><div><br></div><div>Yeah I am fine with this. Weekly reporting two times is ok. </div><div><br></div><div><br></div><div>And we were also discussing about authentication method? Plain curl or OAuth. You suggested me to go for both. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> Waiting for your suggestions and comments.<br>
><br>
> Regards<br>
> Siddharth<br>
<br>
</div>Best regards,<br>
Arnulf.<br>
<br>
- --<br>
Arnulf Christl<br>
<br>
Exploring Space, Time and Mind<br>
<a href="http://arnulf.us" target="_blank">http://arnulf.us</a><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>
iEYEARECAAYFAkunYLcACgkQXmFKW+BJ1b0orQCeMkSd8v2aVs4WfC4WhIo0GnTU<br>
TUwAnRxdKlhPENrEzq3nlob3ut69pqPH<br>
=9hXS<br>
-----END PGP SIGNATURE-----<br>
<div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Siddharth Prakash Singh<br><a href="http://www.spsneo.com">http://www.spsneo.com</a><br>