[
https://issues.apache.org/jira/browse/HTRACE-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317418#comment-14317418
]
Abraham Elmahrek commented on HTRACE-105:
-----------------------------------------
[[email protected]], does it make sense to move "/query" to "/spans/query"
and rename every thing prefixed with "/span" with "/spans"? It seems we get
some flexibility in the nomenclature that way. Also, {{query}} is an action on
{{spans}}.
> Cleanup our REST vocabulary supported by htraced
> ------------------------------------------------
>
> Key: HTRACE-105
> URL: https://issues.apache.org/jira/browse/HTRACE-105
> Project: HTrace
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Attachments: 105.txt
>
>
> Currently, we support the following REST operations:
> {code}
> /0xSOME_SPAN_ID // a GET of a span id will return the span
> /server/info // A GET will return server version, etc.
> /writeSpan // POSTing here will allow you write spans
> /0XSOME_SPAN_ID/children // A GET here will return the children of a span id
> /span/0xSOME_SPAN_ID // A GET here will return a span.
> /query?QUERY_IN_QUERY_STRING // A GET will return result of query
> {code}
> How about we just do:
> /query?.....
> /server/info
> /span/0xSOME_SPAN_ID // A GET here will return a span
> /span // A POST here will allow you write spans
> /span/0xSOME_SPAN_ID/children // A GET here will return children.
> We won't drop the old means. We'll just talk up the above as the canonical
> vocabulary.
> [~eclark] You listening?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)