Replies: 1 comment 1 reply
-
When we use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The accessor confines the resource to the specified HTTP method. In this instance, only
GET
requests are allowed.When implementing a passthrough/proxy resource, the user needs to allow any HTTP method to go through the resource. To fulfill the requirement,
default
identifier was suggested.Fact 1
There have been use-cases where custom HTTP methods such as
COPY
,MOVE
which not specified in the spec also has been used. Therefore we do not restrict the allowed method to a certain definite set. Even though we saydefault
, in fact, we do not have such a default set. Soany
could be a possible suggestion for the accessor.Fact 2
During the dispatching, if two similar resources are defined in service, one with a specific accessor and one with
default
, The most specific resource will get invoked.In this instance,
other
could be a possible suggestion for the accessor.Any
is also possible when the user is aware of the dispatching logic rule (The most specific HTTP method is allowed).Beta Was this translation helpful? Give feedback.
All reactions