[HTTP Request API] Why not also API name in header?

2 views
Skip to first unread message

Jørn Klungsøyr

unread,
Nov 29, 2011, 3:25:01 PM11/29/11
to openrosa-...@googlegroups.com

Resending to avoid confusion….

One thing that seems to be missing in relation to X-OpenRosa-Version is what the request is for. I assume also that the different parts of the standard can be in different versions?

Or is that implicitly determined with the URL or having to actually read the first part of the payload? Having to ready the payload seems to be more than really needed to dispatch the request properly.

 Best
Jørn

 

 

____________________________________________________________________________
Jorn Klungsoyr
openXdata - Centre for International Health,
University of Bergen, Norway
www.openxdata.org / www.cih.uib.no / www.openrosa.org / www.open-mobile.org
Mobile: +4791365731, Skype/GoogleTalk: jornklung Alternative email:
jorn.kl...@gmail.com
Post: Postboks 7800, 5020 Bergen, Visit: Årstadveien 21, 5th Floor, Bergen
                       ------¤¤¤¤------

 

 

Mitch S

unread,
Nov 29, 2011, 5:29:59 PM11/29/11
to openrosa-...@googlegroups.com
The URL you are issuing the (GET/POST/PUT/etc.) identifies the request action.

A submission request action would go to a URL on your server performing the submission function. 
The OpenRosa specifications don't define the server path for that URL -- just any required query parameters, HTTP  headers, and body content.

The Request API is defining the required HTTP Header elements in all HTTP interactions.

Each request action could be at a different X-OpenRosa-Version level.

Mitch
--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

Jørn Klungsøyr

unread,
Nov 29, 2011, 6:04:08 PM11/29/11
to openrosa-...@googlegroups.com

Thanx for clarifying, this is however not clear in the documents.

 

And this also requires a server to have multiple endpoints for something that really is not needed or read the first part of the payload to possibly know what to do about the payload (if using one URL for all).

 

I still think that the header should include what API and version, not just version, it would ensure that it could be used regardless of what URL is being used (the same or different).

And would ensure the server would know exactly what context this is in, just from the header.

 

Best

Jørn

 

 

____________________________________________________________________________
Jorn Klungsoyr
openXdata - Centre for International Health,
University of Bergen, Norway
www.openxdata.org / www.cih.uib.no / www.openrosa.org / www.open-mobile.org
Mobile: +4791365731, Skype/GoogleTalk: jornklung Alternative email:
jorn.kl...@gmail.com
Post: Postboks 7800, 5020 Bergen, Visit: Årstadveien 21, 5th Floor, Bergen
                       ------¤¤¤¤------

 

Yaw Anokwa

unread,
Nov 29, 2011, 9:17:59 PM11/29/11
to openrosa-...@googlegroups.com
jørn,

i'm pretty sure multiple endpoints is how every other web app does
stuff like this.

i also don't know what you mean by the header should include the api.
you want a header with x-openrosa-api:formlist?

yaw

Reply all
Reply to author
Forward
0 new messages