Feb 12
deco rior [AJS}Designing a good API interface
Feb 12, 2015; 09:37
deco rior
[AJS}Designing a good API interface
This is somewhat angular/lasso related.
From a practical view, the general approach is to use an API format and send JSON parameters.
So the path is something like /courts/booking/123455
and the parameters are send as straight JSON.
This is very different for sending from parameters as an array from a form.
1. What is the preferred approach to setup a router in the webserver?
2. What are people using as a dispatch/router mechanism in lasso (simple includes, calling types, etc?)
3. We have this tag to get the JSON parameters directly. Is there a better way?
<?
define jsonParams()=>{
local(s = web_request->postparams)
local(a = #s->get(1))
local(v = #a->first)
return json_deserialize(#v)
}
?>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Feb 12
Jolle Carlestam Re: [AJS}Designing a good API interface
Feb 12, 2015; 20:12
Jolle Carlestam
Re: [AJS}Designing a good API interface
Feb 12
Jolle Carlestam Re: [AJS}Designing a good API interface
Feb 12, 2015; 20:26
Jolle Carlestam
Re: [AJS}Designing a good API interface
Feb 12
deco rior Re: [AJS}Designing a good API interface
Feb 12, 2015; 13:21
deco rior
Re: [AJS}Designing a good API interface
Feb 12
deco rior Re: [AJS}Designing a good API interface
Feb 12, 2015; 13:26
deco rior
Re: [AJS}Designing a good API interface