cancel
Showing results for 
Search instead for 
Did you mean: 

Array of object

Highlighted
Occasional Visitor

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": ""
}

]
}

1 REPLY 1
Moderator

Re: Array of object

Hi,

 

Please check this article for OpenAPI 3.0: https://swagger.io/docs/specification/data-models/data-types/#array

for Swagger 2.0: https://swagger.io/docs/specification/2-0/describing-parameters/#array-and-multi-value-parameters

 


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors