Configuration for service (OpenAPI 3 or other) consumers


Keywords
Django, ZGW, Common, Ground, VNG, API, OpenAPI, OAS, mTLS
License
Other
Install
pip install zgw-consumers==0.33.0

Documentation

Welcome to ZGW Consumers' documentation!

Version

0.33.0

Source

https://github.com/maykinmedia/zgw-consumers

Keywords

OpenAPI, Zaakgericht Werken, Common Ground, NLX

Run CI Coverage status Code linting Documentation Status

python-versions django-versions pypi-version

Manage your external API's to consume.

Features

  • Store services with their configuration in the database
  • Built in ape-pie API client adapter
  • NLX support
  • Declare data/domain objects as modern Python dataclasses

Installation

Requirements

  • Python 3.10 or newer
  • Django 3.2 or newer

Install

  1. Install from PyPI
  1. Add zgw_consumers and simple_certmanager to the INSTALLED_APPS setting.

Usage

In the Django admin, you can create Service instances to define your external APIs.

Client

To get a client for a given resource, you can use:

The resulting client will have certificate and authentication automatically configured from the database configuration.