Skip to content

[Question] Documentation API with Swagger #143

@Garfield-fr

Description

@Garfield-fr

Hi,

I would like to documented my API with some descriptions and parameters on entities. I read the swagger specification, but it's not same on ApiResource annotation. Do you have an example ?

I don't find this in your documentation.

My annotation on Communication entity:

/**
 * @ApiResource(
 *     collectionOperations={
 *          "get"={
 *              "method"="GET",
 *              "parameters"={
 *                  "institution"={
 *                      "type"="string",
 *                      "required"=true
 *                  },
 *                  "language"={
 *                      "type"="string",
 *                      "required"=true
 *                  }
 *              },
 *              "description"="Communication collection"
 *          }
 *     },
 *     itemOperations={},
 *
 * )
 */

communications

Thank's

Bertrand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions