I want to design api response like this by swagger.
{
"todos": [
{
"id": 1,
"content": "eating sushi",
"completed": false
},
{
"id": 2,
"content": "wearing kimono",
"completed": false
},
{
"id": 3,
"content": "watching dragon ball",
"completed": false
}
]
}
But, I don't know how I can design this. I know how to design single data like this. Please tell me how to design array data by swagger.
{
"id": 1,
"content": "eating sushi",
"completed": false
}
Aucun commentaire:
Enregistrer un commentaire