-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-facades.yml
More file actions
38 lines (38 loc) · 1.36 KB
/
api-facades.yml
File metadata and controls
38 lines (38 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
###
# This is base configuration file for API Facade generator that will be always loaded,
# and options can be overridden by configuration loaded from concrete config.
###
jane: # TODO: Possibly Jane will no longer be required
# Whether to annotate Jane classes with @internal to hint IDE to not suggest those classes
markInternal: true
input:
location: http://127.0.0.1:8000/openapi.json
generate:
modules:
#
namer:
class: Maslosoft\ApiFacades\Namers\Module\UrlNamer
processors:
# Tags configuration used when generating from tags
# firstTag:
# class: Maslosoft\ApiFacades\Processors\Tags\FirstTag
# URLs configuration when generating from URLs is used
trimUrl:
class: Maslosoft\ApiFacades\Processors\Url\TrimPrefix
# Skip part of URL starring with this string
prefix: "api"
baseClass: Maslosoft\ApiFacades\Base\GenericModule
models:
hydrator:
class: Maslosoft\ApiFacades\Hydrators\ObjectProperties
operations:
namer:
class: Maslosoft\ApiFacades\Namers\Operations\OperationId
baseClass: Maslosoft\ApiFacades\Base\GenericOperation
output:
# Adjust to requirements
namespace: Maslosoft\Api
# Discover directory based on PSR-4 composer.json autoload
discoverOutput: true
# If discover output is not enabled, this path will be used as output
path: ""