Skip to content

Update documentation for Symfony #2

Description

@Heyden7611

Hello, Would it be possible to improve the documentation of selency/openapi for use in Symfony 6.3 for example.
I would like to implement this, but I don't know how the implementation should do this.

On the first example the namespaces do not correspond to the folder where the file must be created.
Also in the first example how do we access $this->openApi ?

    public function configure(DocumentationConfigurator $doc): void
    {
      $doc->info($this->openApi->info()
          ->title('Monolith API')
          ->description(file_get_contents(__DIR__.'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/Resources/info_description.md'))
          ->contact(name: 'API support', url: 'https://symfony.com', email: 'contact@symfony.com')
          ->specificationExtension('x-logo', [
              'url' => 'https://symfony.com/logos/symfony_black_02.png',
              'altText' => 'Symfony logo',
          ])
          ->license('MIT')
      );
    }

Thank you and thank you for this component

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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