27 lines
1.0 KiB
Java
27 lines
1.0 KiB
Java
package org.gcube.social_networking.rest;
|
|
|
|
import com.webcohesion.enunciate.metadata.rs.RequestHeader;
|
|
import com.webcohesion.enunciate.metadata.rs.RequestHeaders;
|
|
import com.webcohesion.enunciate.metadata.rs.ResourceGroup;
|
|
import com.webcohesion.enunciate.metadata.rs.ResourceLabel;
|
|
import org.gcube.social_networking.socialnetworking.model.shared.Attachment;
|
|
import org.gcube.social_networking.socialnetworking.model.shared.Like;
|
|
|
|
import javax.ws.rs.*;
|
|
|
|
@Path("attachments")
|
|
@ResourceGroup("Attachments APIs")
|
|
@ResourceLabel("Attachments APIs")
|
|
@RequestHeaders({
|
|
@RequestHeader( name = "Authorization", description = "Bearer token, see <a href=\"https://dev.d4science.org/how-to-access-resources\">https://dev.d4science.org/how-to-access-resources</a>")
|
|
})
|
|
public class Attachments {
|
|
@POST
|
|
@Path("/")
|
|
@Produces({"application/json;charset=UTF-8", "application/vnd.api+json"})
|
|
@Consumes({"application/json;charset=UTF-8", "application/vnd.api+json"})
|
|
public void saveAttachmentEntry(Attachment toSave) {
|
|
|
|
}
|
|
}
|