I want to represent custom object as parameter of an api in swagger-editor. Lets say we are calling an api /postInfo/data
@RequestMapping(value = "/postInfo/data", method = RequestMethod.POST)
public Info requestProcessing(@RequestBody Info info)
{
// Implementation
}
Above method contains Info model class as a parameter :
class Info
{
private String id;
private String name;
private String desc;
}
How can this be represented in swagger editor as yaml document?