Advertisement
Proudyy

api_platform.yaml - blogbuddy

Jun 1st, 2024 (edited)
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.02 KB | Source Code | 0 0
  1. api_platform:
  2.     title: blogbuddy API
  3.     version: 0.0.1
  4.     show_webby: false
  5.     # Mercure integration, remove if unwanted
  6.     mercure:
  7.         include_type: true
  8.     formats:
  9.         jsonld: ['application/ld+json']
  10.         json: ['application/json']
  11.     error_formats:
  12.         jsonproblem:
  13.             mime_types: [ 'application/problem+json' ]
  14.         jsonld:
  15.             mime_types: [ 'application/ld+json' ]
  16.     docs_formats:
  17.         jsonld: ['application/ld+json']
  18.         jsonopenapi: ['application/vnd.openapi+json']
  19.         html: ['text/html']
  20.     # Good defaults for REST APIs
  21.     defaults:
  22.         stateless: true
  23.         cache_headers:
  24.             vary: ['Content-Type', 'Authorization', 'Origin']
  25.         extra_properties:
  26.             standard_put: true
  27.             rfc_7807_compliant_errors: true
  28.     event_listeners_backward_compatibility_layer: false
  29.     keep_legacy_inflector: false
  30.     swagger:
  31.         api_keys:
  32.             JWT:
  33.                 name: Authorization
  34.                 type: header
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement