Replies: 2 comments 2 replies
-
I wonder how that would work if each of the nested paths has a different set of possible query options: foo{?corge,grault}:
post:
get:
paths:
'{id}{?waldo,fred}':
# resource object
patch:
delete:
get:
paths:
bar{?quux}:
# related resource, etc How would those template snippets be combined into full URI templates for each path? Also |
Beta Was this translation helpful? Give feedback.
-
I think the idea of nested paths is one way of making OpenAPI more "resource oriented", see #30. Another way would be introduce "resource" as a concept, and relate URI templates with resources, allowing to express that both templates That would allow retaining URI templates as instances of RFC6570 without needing rules on how to combine them from "URI template snippets". |
Beta Was this translation helpful? Give feedback.
-
Can we simplify paths with the help of nested paths especially now that paths can be referenced?
PS: This is under the assumption that majority of API users follow the below pattern:
/foo
/foo
/foo/{id}
/foo/{id}
/foo/{id}
Beta Was this translation helpful? Give feedback.
All reactions