You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/07/01 13:52:11 UTC

[jira] [Resolved] (CXF-6958) Error in documentation

     [ 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)