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 https://dev.d4science.org/how-to-access-resources") }) 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) { } }