Hi all!
A REST service I'm working on is sending HATEOAS links back to its
AngularJS client. For a few of them, we can't provide the full URL (for
lack of information), just a URI Template. We want to follow RFC 6570
(section 3.2.7, "Path-Style Parameter Expansion") [1] to do that. The
syntax is {;varName,foo} which the client is supposed to expand to
;varName=bar;foo=baz
A colleague made me aware of AngularJS's documentation [2] for $resource,
where a syntax with colons is used: :varName
I suppose the equivalent for that would be section 3.2.2 in that RFC
(simple string expansion): {varName}, e.g. example.com/order/{orderId}/
would be example.com/order/:orderId/ in that syntax, and expand to
.../order/123/
So, first of all, could the colon syntax be used for matrix parameter
templates?
Secondly, is that colon syntax defined in a standard/rfc, or is it
AngularJS-specific?
(The service is supposed to be client-agnostic.)
Last but not least, does AngularJS support RFC6570 out of the box?
Kind regards,
Christian
1) https://tools.ietf.org/html/rfc6570#section-3.2.7
2) https://docs.angularjs.org/api/ngResource/service/$resource
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.