Skip to content

Commit d83f8b4

Browse files
author
dmitriy
committed
updated api doc bundle and annotations
1 parent 4db6445 commit d83f8b4

File tree

92 files changed

+1612
-1589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1612
-1589
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"lexik/jwt-authentication-bundle": "^2.8",
4343
"mark-gerarts/automapper-plus-bundle": "^1.3",
4444
"matthiasnoback/symfony-console-form": "^3.6",
45-
"nelmio/api-doc-bundle": "^3.6",
45+
"nelmio/api-doc-bundle": "^4.0",
4646
"nelmio/cors-bundle": "^2.1",
4747
"piwik/device-detector": "^3.12",
4848
"ramsey/uuid-doctrine": "^1.6",

composer.lock

Lines changed: 66 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
nelmio_api_doc:
22
documentation:
3-
schemes: [http, https]
3+
servers:
4+
- url: http://{domain}
5+
variables:
6+
domain:
7+
default: localhost
8+
description: API over HTTP
9+
- url: https://{domain}
10+
variables:
11+
domain:
12+
default: localhost
13+
description: API over HTTPS
414
info:
515
title: Symfony Api
616
description: This is an symfony api environment example
717
version: 1.0.0
8-
securityDefinitions:
9-
Bearer:
10-
type: apiKey
11-
description: 'Value: Bearer {token}'
12-
name: Authorization
13-
in: header
18+
components:
19+
securitySchemes:
20+
Bearer:
21+
type: http
22+
scheme: bearer
23+
bearerFormat: JWT
24+
ApiKey:
25+
type: apiKey
26+
name: Authorization
27+
description: 'Value: ApiKey {token}'
28+
in: header
1429
security:
1530
- Bearer: []
31+
- ApiKey: []
1632
areas: # to filter documented areas
1733
path_patterns:
1834
- ^/api(?!/doc$) # Accepts routes under /api except /api/doc

0 commit comments

Comments
 (0)