bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 57 forks source link

Legal API - create staff only configurations endpoint #21025

Open argush3 opened 1 week ago

argush3 commented 1 week ago

Create a staff only endpoint that allows for updating of one or more existing configuration entries.

TODOs

Example GET /configurations payload

GET /configurations

{
  "configurations": [
    {
      "name": "NUM_DISSOLUTIONS_ALLOWED",
      "value": "100"
    },
    {
      "name": "DISSOLUTIONS_ON_HOLD",
      "value": false
    },
   ...
  ]
}

Example PUT /configurations payload

PUT /configurations

{
  "configurations": [
    {
      "name": "NUM_DISSOLUTIONS_ALLOWED",
      "value": "100"
    },
    {
      "name": "DISSOLUTIONS_ON_HOLD",
      "value": false
    },
   ...
  ]
}