hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1400) Improve REST interface semantics and efficiency
Date Mon, 01 Jun 2009 23:55:07 GMT

    [ https://issues.apache.org/jira/browse/HBASE-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715306#action_12715306
] 

Andrew Purtell commented on HBASE-1400:
---------------------------------------

@Brian:

According to eclipse, this syntax is invalid:

{code}
  @GET
  @Produces(MIMETYPE_TEXT, MIMETYPE_XML, MIMETYPE_PROTOBUF)
  public TableModel get(@Context UriInfo uriInfo) {
  ...
  }
{code}

and so is this:

{code}
  @GET
  @Produces(MIMETYPE_TEXT)
  @Produces(MIMETYPE_XML)
  @Produces(MIMETYPE_PROTOBUF)
  public TableModel get(@Context UriInfo uriInfo) {
  ...
  }
{code}

Also I wonder how to build a response with custom headers and cache control if the resource
function is returning a model instead of a Response object.

I think I will add just additional methods to support JSON encoding for now. 

> Improve REST interface semantics and efficiency
> -----------------------------------------------
>
>                 Key: HBASE-1400
>                 URL: https://issues.apache.org/jira/browse/HBASE-1400
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: rest
>            Reporter: Andrew Purtell
>            Priority: Minor
>         Attachments: stargate-0.0.1.zip, stargate-testing.pdf, stargate.pdf
>
>
> Improve the semantics of the REST interface: more metadata operations, bulk updates,
protobufs (if Accept equals "application/x-protobuf" for GET or Content-Type equals the same
for PUT or POST) instead of multipart/related (which is not supported now anyway) etc. for
general efficiency and support for queries or scanners that return multiple KeyValues. 
> I am working on a proposal.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message