-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from maykinmedia/feature/release-0.36.0
🔖 Release version 0.36.0
- Loading branch information
Showing
6 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Setup configuration | ||
=================== | ||
|
||
Loading Services from a YAML file | ||
********************************* | ||
|
||
This library provides a ``ConfigurationStep`` | ||
(from the library ``django-setup-configuration``, see the | ||
`documentation <https://github.com/maykinmedia/django-setup-configuration>`_ | ||
for more information on how to run ``setup_configuration``) | ||
to configure any number of ``Services`` from a YAML file. | ||
|
||
To add this step to your configuration steps, add ``django_setup_configuration`` to ``INSTALLED_APPS`` and add the following setting: | ||
|
||
.. code:: python | ||
SETUP_CONFIGURATION_STEPS = [ | ||
... | ||
"zgw_consumers.contrib.setup_configuration.steps.ServiceConfigurationStep" | ||
... | ||
] | ||
The YAML file that is passed to ``setup_configuration`` must set the | ||
``zgw_consumers_config_enable`` flag to ``true`` to enable the step and also provide ``services`` under | ||
the ``zgw_consumers`` namespace to configure ``Services`` | ||
|
||
Example file: | ||
|
||
.. code:: yaml | ||
zgw_consumers_config_enable: True | ||
zgw_consumers: | ||
services: | ||
# all possible configurable fields | ||
- identifier: objecten-test | ||
label: Objecten API test | ||
api_root: http://objecten.local/api/v1/ | ||
api_connection_check_path: objects | ||
api_type: orc | ||
auth_type: api_key | ||
header_key: Authorization | ||
header_value: Token foo | ||
client_id: client | ||
secret: super-secret | ||
nlx: http://some-outway-adress.local:8080/ | ||
user_id: open-formulieren | ||
user_representation: Open Formulieren | ||
timeout: 5 | ||
# minimum required fields | ||
- identifier: objecttypen-test | ||
label: Objecttypen API test | ||
api_root: http://objecttypen.local/api/v1/ | ||
api_type: orc | ||
auth_type: api_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "zgw-consumers" | ||
version = "0.35.1" | ||
version = "0.36.0" | ||
description = "Configuration for service (OpenAPI 3 or other) consumers" | ||
authors = [ | ||
{name = "Maykin Media", email = "[email protected]"} | ||
|
@@ -107,7 +107,7 @@ markers = [ | |
] | ||
|
||
[tool.bumpversion] | ||
current_version = "0.35.1" | ||
current_version = "0.36.0" | ||
files = [ | ||
{filename = "pyproject.toml"}, | ||
{filename = "README.rst"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters