how to upload single file Angular to Quarkus

195 views
Skip to first unread message

Sajan Soosaimicheal

unread,
Oct 26, 2021, 9:07:25 PM10/26/21
to Quarkus Development mailing list
Hello All,
we have to implement single file upload in existing Rest API Action from angular to Quarkus.
I am new Java and quarkus.  not sure how to start. could you please share any document ?
Data contract: 
````
@Data
public class CreateGlobalVariableModel {
private String key;
private String value;
private String valueType;
private String comments;
private Long userId;
}
````

Sajan Soosaimicheal

unread,
Oct 26, 2021, 9:10:25 PM10/26/21
to Quarkus Development mailing list
adding Resource

@POST
@Path("/globalVariables")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Transactional
public ResultModel createGlobalVariable(@Valid CreateGlobalVariableModel createGlobalVariableModel) throws ValidationException {}

Reply all
Reply to author
Forward
0 new messages