MinBZK / work-packages-library

Public library for delivery of results work packages assigned in public private partnership
Other
1 stars 7 forks source link

As a PO I want an OpenPDC plugin that can look up business rules via API from the rules library #31

Open sgort opened 1 year ago

sgort commented 1 year ago

For regels.overheid.nl, we work with work packages, these are small jobs for a fixed fee to deliver part functionality (proof of concept), including minimal documentation and tests.

Introduction

The Open Products and Services Catalog (OpenPDC) is a database in which all products and services of the municipality are stored. The products and services can be read by anyone via an Application Programming Interface (API).

We also want to make the rules associated with these products and services accessible via OpenPDC. For that purpose we have available:

User story

Outline subtasks or task

Acceptance criteria

Proposed solution

Demonstrates the functional question with OpenWebconcept in combination with the Yivi app.

Story points

The initial estimate of the size of this work package is:

Definition of “done”

sgort commented 1 year ago

Example body for API POST request

{
    "variables": {
        "Woonplaats": {
            "value": "Utrecht",
            "type": "String"
        },
        "leeftijd": {
            "value": "58",
            "type": "Integer"
        },
        "ouderDan21": {
            "value": true,
            "type": "Boolean"
        },
        "alleenstaande": {
            "value": true,
            "type": "Boolean"
        },
        "thuiswonendeKinderen": {
            "value": false,
            "type": "Boolean"
        },
        "inkomenPerMaand": {
            "value": "900",
            "type": "Integer"
        },
        "vermogen": {
            "value": "3000",
            "type": "Integer"
        }
    }
}

Will provide the response

[
    {
        "residentApplication": {
            "type": "Integer",
            "value": 264,
            "valueInfo": {}
        }
    }
]