This service is responsible for settings in registration catalogs. This includes code lists, internal fields, editable fields for concepts, and settings across different catalogs including design and responsible users.
This is a REST API. The Open-API spec can be found here.
- maven
- java 21
- docker
- docker-compose
mvn test
Start catalog admin service locally using maven. Use Spring profile develop.
mvn spring-boot:run -Dspring-boot.run.profiles=develop
NB! Remember to use correct catalogId.
Method: POST
URL: https://catalog-admin.staging.fellesdatakatalog.digdir.no/api/code-lists/[catalogId]
Payload:
{
"codeList": {
"id": "",
"catalogId": [catalogId],
"name": "Oppretter kodeliste",
"description": "Beskrivelse",
"codes": [
{
"id": "2eecd911-580b-47b9-b305-532ca68d29ca",
"name": {
"nb": "Ny kode 1",
"nn": "",
"en": ""
},
"parentID": null
},
{
"id": "9ddcf0b1-dafb-4a34-89be-b9c50343023c",
"name": {
"nb": "Ny kode 2",
"nn": "",
"en": ""
},
"parentID": null
}
]
}
}
URL: https://catalog-admin.staging.fellesdatakatalog.digdir.no/api/design/[catalogId]/design
Method: PATCH
Payload:
[
{
"op": "replace",
"path": "/logoDescription",
"value": "qt-dawg"
},
{
"op": "replace",
"path": "/backgroundColor",
"value": "#8087ff"
}
]