-
Notifications
You must be signed in to change notification settings - Fork 11
/
swapi.dataloader-config.yaml
41 lines (40 loc) · 1.2 KB
/
swapi.dataloader-config.yaml
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
39
40
41
typings:
language: flow
embedResourcesType:
imports: |
import type { SWAPIClientlibTypes } from './swapi';
ResourcesType: |
type ResourcesType = SWAPIClientlibTypes;
resources:
getPlanets:
docsLink: https://swapi.dev/documentation#planets
isBatchResource: true
batchKey: planet_ids
newKey: planet_id
getPeople:
docsLink: https://swapi.dev/documentation#people
isBatchResource: true
batchKey: people_ids
newKey: person_id
getVehicles:
docsLink: https://swapi.dev/documentation#vehicles
isBatchResource: true
batchKey: vehicle_ids
newKey: vehicle_id
getFilms:
docsLink: https://swapi.dev/documentation#films
isBatchResource: true
batchKey: film_ids
newKey: film_id
isBatchKeyASet: true
getFilmsV2:
docsLink: https://swapi.dev/documentation#films
isBatchResource: true
batchKey: film_ids
newKey: film_id
nestedPath: properties
propertyBatchKey: properties
responseKey: id
getRoot:
docsLink: https://swapi.dev/documentation#root
isBatchResource: false