Skip to content

ctruchi/restx-multipart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restx-multipart

Simple restx-module to handle mime "multipart/form-data". Currently handles only consuming (for file upload)

Example :

import restx.annotations.Consumes;
import restx.annotations.POST;
import restx.annotations.RestxResource;
import restx.factory.Component;

import javax.servlet.http.Part;
import java.util.Collection;

@Component
@RestxResource
public class UploadResource {

    @POST("/upload")
    @Produces("multipart/form-data")
    public void upload(Collection<Part> parts) {
        System.out.printLn(parts);
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages