You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/openapi.md
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -485,3 +485,37 @@ api_platform:
485
485
```
486
486
487
487
Note that `clientId` and `clientSecret` are being used by the SwaggerUI if enabled.
488
+
## Info Object
489
+
490
+
The [info object](https://swagger.io/specification/#info-object) provides metadata about the API like licensing information or a contact. You can specify this information using API Platform's configuration:
491
+
492
+
```
493
+
api_platform:
494
+
495
+
# The title of the API.
496
+
title: 'API title'
497
+
498
+
# The description of the API.
499
+
description: 'API description'
500
+
501
+
# The version of the API.
502
+
version: '0.0.0'
503
+
504
+
openapi:
505
+
# The contact information for the exposed API.
506
+
contact:
507
+
# The identifying name of the contact person/organization.
508
+
name:
509
+
# The URL pointing to the contact information. MUST be in the format of a URL.
510
+
url:
511
+
# The email address of the contact person/organization. MUST be in the format of an email address.
512
+
email:
513
+
# A URL to the Terms of Service for the API. MUST be in the format of a URL.
514
+
termsOfService:
515
+
# The license information for the exposed API.
516
+
license:
517
+
# The license name used for the API.
518
+
name:
519
+
# URL to the license used for the API. MUST be in the format of a URL.
0 commit comments