cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6958) Error in documentation
Date Fri, 01 Jul 2016 13:52:11 GMT

     [ https://issues.apache.org/jira/browse/CXF-6958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-6958.
-----------------------------------
    Resolution: Fixed
      Assignee: Sergey Beryozkin

https://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS+Client+API

I wish all issues were requiring as much effort as this one :-)

thanks

> Error in documentation
> ----------------------
>
>                 Key: CXF-6958
>                 URL: https://issues.apache.org/jira/browse/CXF-6958
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Jasper Horn
>            Assignee: Sergey Beryozkin
>
> On http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-Proxy-basedAPI in
the code sample that reads:
> {code}
> @Path("/bookstore")
> public interface BookStore {
>    @GET
>    Books getAllBooks();
>     
>    @Path("{id}")
>    BookResource getBookSubresource(@PathParam("id") long id) throws NoBookFoundException;
> }
>  
> public class BookStoreImpl implements BookStore {
>    public Books getAllBooks() {}
>     
>    public Book getBookSubresource(long id) throws NoBookFoundException {}
> }
>  
> public interface BookResource {
>    @GET
>    Book getBook();
> }
>  
> public class BookResourceImpl implements BookResource {
>    Book getBook() {}
> }
> {code}
> Shouldn't that be 
> {code}
>    public BookResource getBookSubresource(long id) throws NoBookFoundException {}
> {code}
> (In other words, returning a BookResource instead of a Book)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message