Salut Olivier,
> +@Path( "directMemoryService" )
> +public interface DirectMemoryCacheService
> +{
> + @GET
> + @Path( "retrieve/{key}" )
> + @Produces( MediaType.APPLICATION_JSON )
> + DirectMemoryCacheResponse retrieve( @PathParam( "key" ) String key );
> +
> + @PUT
> + @Path( "store" )
> + @Produces( MediaType.APPLICATION_JSON )
> + @Consumes( MediaType.APPLICATION_JSON )
> + Boolean store( DirectMemoryCacheRequest request );
> +
> + @DELETE
> + @Path( "delete/{key}" )
> + Boolean delete( @PathParam( "key" ) String key );
> +
> +}
don't the HTTP method names already specify which is the operation to
perform? As discussed in the ML, they can be suppressed without losing
semantic.
Moreover, I think the "directMemoryService" path could be
abbreviated... don't have an idea yet how, but it could :P
WDYT?
best,
-Simo
http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/