Convention for JS should be to always put a / at the end of baseURL. This is because when
a baseURL is not specified, the current context is assumed which includes the ending / so
we don't want them in the endpoint, nor "resource" or what ever we name that
new parameter.
On Apr 11, 2013, at 4:06 AM, Sebastien Blanc <scm.blanc(a)gmail.com> wrote:
Regarding on how we pass the resource, do we want to establish an
convention here about the leading "/" ?
i.e "/teams", should we omit the "/" and just pass "teams"
?
If we take a look a the current impl in JS for passing an id, we have the convention of
no leading "/" as this one is added implicitly by the library.
More generally, I will start a new thread about convention for passing resources because
I spotted some other cases where we are mixing stuff, remember : Keeping It Simple by
Don't Repeating Yourself with Convention Over Configuration
Seb
On Thu, Apr 11, 2013 at 9:42 AM, Sebastien Blanc <scm.blanc(a)gmail.com> wrote:
+1 for approach #1
And since approach #1 seems quite popular the Gist has been updated with the JS version
of #1
https://gist.github.com/cvasilak/4a5f51b8d1ad9cc7f21b
On Thu, Apr 11, 2013 at 8:33 AM, Daniel Bevenius <daniel.bevenius(a)gmail.com>
wrote:
+1 for approach #1. Nice write up on this Christos, thanks for that!
On 10 April 2013 18:32, Matthias Wessendorf <matzew(a)apache.org> wrote:
yeah - same here, :) +1 on proposal #1
On Wed, Apr 10, 2013 at 6:23 PM, Douglas Campos <qmx(a)qmx.me> wrote:
Approach #1 hands down
--
qmx
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
--
Matthias Wessendorf
blog:
http://matthiaswessendorf.wordpress.com/
sessions:
http://www.slideshare.net/mwessendorf
twitter:
http://twitter.com/mwessendorf
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev