Forum Discussion

ashish2018's avatar
ashish2018
Occasional Visitor
6 years ago

Array of object

I want to create swaggerhub API for documentation. I am not able to define the array of objects in swaggerhub yaml
Here is the JSON

{
"Id":"dssd",
"createDateTime":"asdasd",
"mediaScanned": "asssd",
"data" : [
{
"entityName":"Entity1",
"Id":"guid",
"gateid":1,
"parkingLotID":1,
"parkingSpaceID":1,
"rateDateId":1,
"frequentParkerId":1,
"ticketNumber":1,
"entryDate":"2018-01-01",
"exitDate":"2018-01-01",
"deleted": false
},
{
"entityName":"Entity1",
"Id": 1,
"entryId":"guid",
"mediaTypeId":"AccessType",
"data": "",
"date": ""
},
{
"entityName":"Entity1",
"Id": 1,
"deviceId":1,
"entryId":"",
"subEntryId":"",
"transactionId":"",
"data":"",
"mediaTypeId":1,
"date": ""
}

]
}