Я хочу удалить ссылки по умолчанию из api / doc.Я установил и настроил swagger и nelmio, но smtf идет не так.
API / DOC
Я добавляю /**
*
*
* Register new user.
*
* @SWG\Tag(name="Registration")
* @Route("/register/clients", methods={"POST"})
* @SWG\Response(
* response=200,
* description="Returns the rewards of an user",
* @SWG\Schema(
* type="object",
* @SWG\Property(property="email", type="string"),
* @SWG\Property(property="password", type="string")
* )
* )
*
*
*
* @param Request $request
*/
, поэтому появляются регистрационные регистры / клиенты.Теперь я попытался удалить другие ссылки.Я прочитал, что должен использовать:
# config/packages/nelmio_api_doc.yaml
nelmio_api_doc:
areas:
path_patterns: # an array of regexps
- ^/api(?!/doc$)
host_patterns:
- ^api\.
https://symfony.com/doc/master/bundles/NelmioApiDocBundle/index.html
Я не знаю, что я потерял.