|
2 | 2 |
|
3 | 3 | FIO Wrapper internally uses a configuration file to provide its standard capabilities. The configuration can be [overwritten](usage.md) by the user. |
4 | 4 |
|
| 5 | +## `base.yml` |
| 6 | + |
| 7 | +```yaml |
| 8 | +fio: |
| 9 | + application: FIO Wrapper |
| 10 | + version: 1.0.0 |
| 11 | + base_url: https://rest.fnar.net |
| 12 | + timeout: 10 |
| 13 | + ssl_verify: true |
| 14 | + versions: |
| 15 | + - 1.0.0 |
| 16 | +cache: |
| 17 | + enabled: false |
| 18 | + default_expire: 3600 |
| 19 | +fio_urls: |
| 20 | + 1.0.0: |
| 21 | + material_base: /material |
| 22 | + material_all: /allmaterials |
| 23 | + exchange_base: /exchange |
| 24 | + exchange_orders: /orders |
| 25 | + exchange_all: /all |
| 26 | + exchange_full: /full |
| 27 | + building_base: /building |
| 28 | + building_all: /allbuildings |
| 29 | + recipe_base: /recipes |
| 30 | + recipe_all: /allrecipes |
| 31 | + planet_base: /planet |
| 32 | + planet_all: /allplanets |
| 33 | + planet_full: /allplanets/full |
| 34 | + planet_sites: /sites |
| 35 | + planet_search: /search |
| 36 | + localmarket_base: /localmarket |
| 37 | + localmarket_planet: /planet |
| 38 | + localmarket_shipping_source: /shipping/source |
| 39 | + localmarket_shipping_destination: /shipping/destination |
| 40 | + localmarket_company: /company |
| 41 | + sites_base: /sites |
| 42 | + sites_planets: /planets |
| 43 | + sites_warehouses: /warehouses |
| 44 | + storage_base: /storage |
| 45 | + storage_planets: /planets |
| 46 | + groups: /auth/groups |
| 47 | + groups_group: /auth/group |
| 48 | + groups_groupmemberships: /auth/groupmemberships |
| 49 | + groups_hub: /fioweb/grouphub |
| 50 | + groups_burn: /fioweb/burn/group |
5 | 51 |
|
6 | | - |
7 | | -## `base.ini` |
8 | | - |
9 | | -```ini |
10 | | -[FIO] |
11 | | -application = FIO Wrapper |
12 | | -version = 1.0.0 |
13 | | -base_url = https://rest.fnar.net |
14 | | -timeout = 10 |
15 | | -ssl_verify = True |
16 | | -versions = 1.0.0 |
17 | | - |
18 | | -[URL] |
19 | | -# material |
20 | | -1.0.0_material_base = /material |
21 | | -1.0.0_material_all = /allmaterials |
22 | | - |
23 | | -# exchange |
24 | | -1.0.0_exchange_base = /exchange |
25 | | -1.0.0_exchange_orders = /orders |
26 | | -1.0.0_exchange_all = /all |
27 | | -1.0.0_exchange_full = /full |
28 | | - |
29 | | -# building |
30 | | -1.0.0_building_base = /building |
31 | | -1.0.0_building_all = /allbuildings |
32 | | - |
33 | | -# recipe |
34 | | -1.0.0_recipe_base = /recipes |
35 | | -1.0.0_recipe_all = /allrecipes |
36 | | - |
37 | | -# planet |
38 | | -1.0.0_planet_base = /planet |
39 | | -1.0.0_planet_all = /allplanets |
40 | | -1.0.0_planet_full = /allplanets/full |
41 | | -1.0.0_planet_sites = /sites |
42 | | -1.0.0_planet_search = /search |
43 | | - |
44 | | -# localmarket |
45 | | -1.0.0_localmarket_base = /localmarket |
46 | | -1.0.0_localmarket_planet = /planet |
47 | | -1.0.0_localmarket_shipping_source = /shipping/source |
48 | | -1.0.0_localmarket_shipping_destination = /shipping/destination |
49 | | -1.0.0_localmarket_company = /company |
50 | | - |
51 | | -# sites |
52 | | -1.0.0_sites_base = /sites |
53 | | -1.0.0_sites_planets = /planets |
54 | | -1.0.0_sites_warehouses = /warehouses |
55 | | - |
56 | | -# storage |
57 | | -1.0.0_storage_base = /storage |
58 | | -1.0.0_storage_planets = /planets |
59 | | - |
60 | | -# groups |
61 | | -1.0.0_groups = /auth/groups |
62 | | -1.0.0_groups_group = /auth/group |
63 | | -1.0.0_groups_groupmemberships = /auth/groupmemberships |
64 | | -1.0.0_groups_hub = /fioweb/grouphub |
65 | | -1.0.0_groups_burn = /fioweb/burn/group |
66 | 52 | ``` |
67 | 53 |
|
68 | 54 | ## Config() class |
|
0 commit comments