mirror of
https://github.com/apache/jclouds.git
synced 2025-03-01 05:49:06 +00:00
JCLOUDS-1080: request JSON only for list objects
This commit is contained in:
parent
9dc85ecaab
commit
52044d23d9
@ -72,7 +72,6 @@ import com.google.common.annotations.Beta;
|
||||
*/
|
||||
@Beta
|
||||
@RequestFilters(AuthenticateRequest.class)
|
||||
@Consumes(APPLICATION_JSON)
|
||||
public interface ObjectApi {
|
||||
|
||||
/**
|
||||
@ -80,6 +79,7 @@ public interface ObjectApi {
|
||||
*
|
||||
* @return an {@link ObjectList} of {@link SwiftObject} ordered by name or {@code null}.
|
||||
*/
|
||||
@Consumes(APPLICATION_JSON)
|
||||
@Named("object:list")
|
||||
@GET
|
||||
@ResponseParser(ParseObjectListFromResponse.class)
|
||||
@ -98,6 +98,7 @@ public interface ObjectApi {
|
||||
*
|
||||
* @return an {@link ObjectList} of {@link SwiftObject} ordered by name or {@code null}.
|
||||
*/
|
||||
@Consumes(APPLICATION_JSON)
|
||||
@Named("object:list")
|
||||
@GET
|
||||
@ResponseParser(ParseObjectListFromResponse.class)
|
||||
@ -190,7 +191,6 @@ public interface ObjectApi {
|
||||
@Path("/{objectName}")
|
||||
@ResponseParser(ParseObjectFromResponse.class)
|
||||
@Fallback(NullOnNotFoundOr404.class)
|
||||
@QueryParams(keys = "format", values = "json")
|
||||
@Nullable
|
||||
SwiftObject get(@PathParam("objectName") String objectName, GetOptions options);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user