package com.kryptnostic.storage.v2.http;

import java.util.Set;
import java.util.UUID;

import retrofit.client.Response;
import retrofit.http.POST;
import retrofit.http.Path;

import com.kryptnostic.storage.v2.models.PaddedMetadataObjectIds;

public interface MetadataStorageApi {
    String CONTROLLER       = "/metadata";
    String OBJECT_ID        = "objectId";
    String METADATA_ID      = "metadataId";
    String DELETE           = "/delete";

    String OBJECT_ID_PATH   = "/{" + OBJECT_ID + "}";
    String METADATA_ID_PATH = "/{" + METADATA_ID + "}";

    @POST( CONTROLLER + OBJECT_ID_PATH )
    Response createMetadataEntry( @Path( OBJECT_ID ) UUID objectId, Set<PaddedMetadataObjectIds> paddedMetadataObjectIds );
}

@@ -114,16 +114,45 @@
 sponse;%0A
+import retrofit.http.DELETE;%0A
 import r
@@ -325,26 +325,24 @@
 TROLLER     
-  
 = %22/metadata
@@ -370,18 +370,16 @@
 ID      
-  
 = %22objec
@@ -388,52 +388,8 @@
 d%22;%0A
-    String METADATA_ID      = %22metadataId%22;%0A
     
@@ -410,18 +410,16 @@
         
-  
 = %22/dele
@@ -450,18 +450,16 @@
 ID_PATH 
-  
 = %22/%7B%22 +
@@ -479,64 +479,8 @@
 %22%7D%22;
-%0A    String METADATA_ID_PATH = %22/%7B%22 + METADATA_ID + %22%7D%22;
 %0A%0A  
@@ -641,11 +641,125 @@
 ctIds );
+%0A%0A    @DELETE( CONTROLLER + OBJECT_ID_PATH )%0A    Response createMetadataEntry( @Path( OBJECT_ID ) UUID objectId );
 %0A%7D%0A

Update metadata api.