I'm trying to create an array for Swagger UI with multiple inputs but i don't know how. All I see for the moment is one field in Swagger UI.
Code:
/**
* @return \Illuminate\Http\JsonResponse
* @SWG\Post(
* path="/api/v1/test",
* description="tester",
* operationId="tester",
* produces={"application/json"},
* tags={"Test endpoints"},
* @SWG\Parameter(
* name="test",
* description="Tester",
* in="query",
* type="array",
* items={
* "type": "text",
* },
* collectionFormat="csv",
* required=true,
* ),
* @SWG\Response(
* response=200,
* description="test saved"
* ),
* @SWG\Response(
* response=401,
* description="test couldn't be save.",
* )
* )
*/
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire