... StubFactory.produce(new TypeReference<GenericApiResponse<YOUR_CLASS>>(){ }); ... |
cmd/app generate api |
cmd/app generate api-stub |
<class name="PersonResponse" xmlns="http://www.knubisoft.com/api/schema/class"> <string name="fullName" description="Fake full name of a person" stubData="fullName"/> <string name="birthday" description="Fake birthday of a person" stubData="date"/> </class> |
{ "body": { "fullName": "Lon Wyman", "birthday": "Fri Apr 09 12:15:47 EEST 1993", }, "errors": null, "debugInfo": null } |
If you have any questions/suggestions/remarks feel free to contact Diakonov Serhii. Hope you'll find it useful =)