8 Service APIs
This section provides a reference for APIs that should be implemented by this Building Block.

8.1 Administrative/Analyst Functions
Searches (Regex supported) and returns multiple records as an array-list.
Field for searching random string type data from database
JohnField name that user wishes to filter
FirstNameHow user wishes to order the data
descendingResult page number
1Number of results on one page
10Example of searchable database field. If more searchable fields are in DB, then more similar fields will follow in input
Value can be in any supported format, for an example 'string'Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesNumber of results
1URI to next results page
1Searches and returns one record.
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesRecord not found
Updates one existing record in the registry database.
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesNo content
No content
Updates multiple records in the registry database that match the input query.
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesNo content
No content
API updates existing record if matching with input parameters is successful. If record is not found the API will create a new record.
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistries8.2 Applicant Functions
Searches records based on input parameters and returns boolean answer (true/false).
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesDelete record.
ID of the citizen that needs to be deleted from the Registry data query API
ID1Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesNo content
Searches and returns one record’s one field value.
Primary key field
DB-1Data format. Endpoint: /data/DB/1.0/DB-1/read-value/First%20name.json
First nameData format. Endpoint: /data/DB/1.0/DB-1/read-value/First%20name.json
jsonFormat is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesAllows a user to see who has read their personal data.
User's personal unique identifier
EE378129277266Database acronym
MCTSFormat is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesSuccess Response
Array of found data processign logs
Log record ID
1234567Identifier of a reader who looked at personal data
EE37819285773Reader's initials
JDReader's instituition ID
EE70049837Reader's institution name
East HospitalReader's institution system name
East Hospital healthcare back officeDate and time of registration
2017-07-21T17:32:28ZInvalid ID supplied
Person requests not found
API endpoint that allows user to get database information with schema
Id of the database that schema is requested
1Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/eregistrations-devDatabase ID
353Database version number
2.7Database name
MCTSDatabase description
Database holding information about MCTS objectsOwner of the database (institution)
Ministry of Social AffairsNumber format in database
{code}{indexNoByCode}Shows database draft status (is draft true/false)
falseShows if database is disabled or not
falseShows if database is archived or not
falseShows database last modification time
2021-10-03T08:35:01.775915ZShows user name of a person who created the database
ingmar.devShows id of a person who created the database
1Shows user id whose behalf was this database created
0Shows user name whose behalf was this database created
Shows database increment
0Shows if this database has logo or not
falseAPI endpoint that allows user to delete database schema
Id of the database that schema is requested
1Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/eregistrations-devSuccess
SuccessSuccess
API endpoint that allows user to create or modify database schema
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/eregistrations-devGroup name where this schema is located
TestCatalog name where this schema is located
Mother and ChildShort code of the database
MCRSuccess
Schema object describing the database
object20IDSuccess
API endpoint that allows user to get information about all databases
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/eregistrations-devExample of databases API request response body
ID of databases
85Name of databases group
Mother and ChildShort name of databases group
MCTSID of databases group
10Order number of databases group
76Data index increment of databases group
3Searches (Regex supported) and returns multiple records as an array-list.
Field for searching random string type data from database
JohnField name that user wishes to filter
FirstNameHow user wishes to order the data
descendingResult page number
1Number of results on one page
10Example of searchable database field. If more searchable fields are in DB, then more similar fields will follow in input
Value can be in any supported format, for an example 'string'Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesNumber of results
1URI to next results page
1Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesSearches and returns one record.
Format is: INSTANCE/CLASS/MEMBER/SUBSYSTEM
eGovStack/GOV/90000009/digitalregistriesRecord not found
Last updated
Was this helpful?