Common APIs
This section contains detail about the service APIs in the Common Master data module
Title APIs These APIs includes create, update and fetch APIs. Create and Update API is used by the Administrator Portal for the Create and Update Title functionality. Fetch APIs are used by IDA to separate out Name from the title.
Gender APIs These APIs includes create, update and fetch APIs. Create and Update API is used by the Administrator Portal for the Create and Update Gender functionality. Fetch API is used by Pre-Registration to display the Genders on the demographic form page for the applicant to select one gender while filling out the form.
Age Group Types APIs This service will provide the age group based on the passed age.
ID Types APIs These API contains the Create and Fetch ID types API.
Holidays APIs These APIs includes create, update and fetch APIs. Create and Update API is used by the Administrator Portal for the Create and Update Holiday functionality. Fetch API is used by Pre-Registration to refer the list of Holiday for a Registration Center while generating booking appointments.
Locations APIs These APIs includes create, update and fetch APIs. Create and Update API is used by the Administrator Portal for the Create and Update Location functionality. Fetch API is used by Pre-Registration and ID objected validator. Pre-Registration uses this API to display locations in the demographic form page for applicant to select locations from the dropdown while filling in the address. ID object validator uses the fetch API to validate the value of location received in the packet against the Masterdata.
Languages APIs These include APIs to create, update and fetch MOSIP supported languages.
Individual Types APIs These includes the APIs to fetch list of Individual Types. This API is used by Pre-Registration to display the list of Individual type for an applicant to select on the Demographic page.
Application Types APIs These include APIs to create, update and fetch name of MOSIP Applications.
Blacklisted Words APIs These APIs includes create, update and fetch APIs. Create and Update API is used by the Administrator Portal for the Create and Update Blacklisted Word functionality. Fetch API is used by Pre-Registration to verify if a Blacklisted word in entered by the Applicant in the Demographic form.
Working days APIs This API is fetches the defined working days of a week for a Registration Center. It is used by Pre-Registration to consider working days while generating booking appointments for a Registration Center.
Exceptional holidays APIs This API is fetches the list of exceptional holidays if any defined for a Registration Center. It is used by Pre-Registration to consider exceptional holidays while generating booking appointments for a Registration Center.
Title
POST /title
This service will create the list of Title which are used in the MOSIP platform.
Resource URL
POST /title
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
titletype
Yes
Name of the title
Example Request
Example Response
Response Code : 200 (OK)
GET /title
This service will provides the service for list of all titles.
Resource URL
GET /title
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
NA
NA
NA
NA
NA
Example Response
Response Code : 200 (OK)
GET /title/{langcode}
This service will provides the service for the List of Titles.
Resource URL
GET /title/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
langcode
Yes
Code of the language
Example Response
Response Code : 200 (OK)
PUT /title
This service will provides the service for updating a particular title.
Resource URL
PUT /title
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the title
titleName
Yes
Name of the title
isActive
Yes
Name of the title
langCode
Yes
Name of the title
titleDescription
Yes
Name of the title
Example Response
Response Code : 200 (OK)
DELETE /title/{code}
This service will provides the service for deleting a particular title.
Resource URL
DELETE /title/{code}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the title
Example Response
Response Code : 200 (OK)
Failure Response
Response Code : 200 (OK)
GET /title/all
This service will provides the service for list of all titles.
Resource URL
GET /title/all
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
orderBy
optional
order the requested data based on param
pageNumber
optional
page no for the requested data
pageSize
optional
page size for the requested data
sortBy
optional
sort the requested data based on param value
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-047
Error occured while fetching Titles
Fetch Issue
KER-MSD-XXX
Error occurred while inserting Title details
Insertion Issue
KER-MSD-048
Title not found
Data Not Found
KER-MSD-103
Error occurred while updating Title details
Update Issue
KER-MSD-104
Error occurred while deleting Title details
Deletion Issue
POST /titles/search
This API is used by the Administrator Portal to fetch list of Titles based on a given filter criteria to display the list of Titles on the Portal UI.
Resource URL
POST /titles/search
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["in","equals","startsWith","between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the start range
-NA-
toValue
No
If the type is "between", this field is the value of the end range
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Filter Values
name
["contains","equals","startsWith"]
status
["equals"]
Example Request
Example Response
Response Code : 200 (OK)
POST /titles/filtervalues
This API is used by the Administrator Portal UI to populate filter dropdowns on the Title List View UI Screen.
Resource URL
POST /titles/filtervalues
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Example Request
Example Response
Response Code : 200 (OK)
Gender
POST /gendertypes
This service will create the list of Gender which are used in the MOSIP platform.
Resource URL
POST /gendertypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
gendertype
Yes
Name of the gender
Example Request
Example Response
Response Code : 200 (OK)
PUT /gendertypes
This service will update Gender which are used in the MOSIP platform.
Resource URL
PUT/gendertypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of gender type
genderName
Yes
Name of gender type
isActive
Yes
is active or not
code
Yes
language code of gender
Example Request
Example Response
Response Code : 200 (OK)
DELETE /gendertypes/{code}
This service will delete Gender which are used in the MOSIP platform.
Resource URL
DELETE/gendertypes/{code}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of gender type
Example Response
Response Code : 200 (OK)
GET /gendertypes
This service will provides the service for the List of Genders.
Resource URL
GET /gendertypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
NA
NA
NA
NA
NA
Example Response
Response Code : 200 (OK)
GET /gendertypes/{langcode}
This service will provides the service for the List of Genders.
Resource URL
GET /gendertypes/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
langcode
Yes
Code of the language
Example Response
Response Code : 200 (OK)
GET /gendertypes/{gendername}
This service will provides the gender based on the gender name.
Resource URL
GET /gendertypes/{gendername}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
gendername
Yes
Name of the gender
Example Response
Response Code : 200 (OK)
Failure Response
Response Code : 200 (OK)
GET gendertypes/all
This service will provides all gendertypes details.
Resource URL
GET gendertypes/all
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
orderBy
optional
order the requested data based on param
pageNumber
optional
page no for the requested data
pageSize
optional
page size for the requested data
sortBy
optional
sort the requested data based on param value
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-017
Error occured while fetching gender types
Fetch Issue
KER-MSD-018
Gender Type not found
Not Found
KER-MSD-068
Could not insert Gender Data
Insert Issue
KER-MSD-101
Error occurred while updating Gender Type details
Update Issue
KER-MSD-102
Error occurred while deleting Gender Type details
Delete Issue
POST /genders/search
This API is used by the Administrator Portal to fetch list of Genders based on a given filter criteria to display the list of Genders on the Portal UI.
Resource URL
POST /genders/search
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["contains","equals","startsWith","between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the start range
-NA-
toValue
No
If the type is "between", this field is the value of the end range
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Example Request
Example Response
Response Code : 200 (OK)
POST /genders/filtervalues
This API is used by the Administrator Portal UI to populate filter dropdowns on the Gender List View UI Screen.
Resource URL
POST /genders/filtervalues
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Example Request
Example Response
Response Code : 200 (OK)
Age Group Types
GET /agegrouptype/{age}
This service will provides the age group based on the passed age.
Resource URL
GET /agegrouptype/{age}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Response
Failure Response
Response Code : 200 (OK)
ID Types
POST /idtypes
This service will create the list of Id types which are used in the MOSIP platform.
Resource URL
POST /idtypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
idtype
Yes
Name of the id type
languagecode
Yes
Language of the id type
Example Request
Example Response
Response Code : 200 (OK)
GET /idtypes/{langcode}
This service will provides the service for the List of id types based on language.
Resource URL
GET /idtypes/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
langcode
Yes
Code of the language
Example Response
Response Code : 200 (OK)
Failure Response
Response Code : 200 (OK)
Failure details
KER-MSD-022
ID Type not found.
Not Found
KER-MSD-021
Error occurred while fetching ID Types
Fetch Issue
KER-MSD-059
Error occurred while inserting ID Type details.
Insert Issue
Holidays
GET /holidays
This service will get all the holidays.
Resource URL
GET /holidays
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
--NA--
Example Response
Response Code : 200 (OK)
POST /holidays
This service will create a new holiday.
Resource URL
POST /holidays
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
locationCode
Yes
location code
holidayDate
Yes
date
holidayMonth
Yes
month
holidayYear
Yes
year
holidayName
Yes
name
holidayDesc
Yes
description
langCode
Yes
language code
isActive
Yes
is active?
Example Request
Example Response
Response Code : 200 (OK)
PUT /holidays
This service will update a holiday.
Resource URL
PUT /holidays
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
locationCode
Yes
location code
holidayDate
Yes
date
newHolidayDate
Yes
new date
newHolidayName
Yes
new name
holidayName
Yes
name
holidayDesc
Yes
description
langCode
Yes
language code
isActive
Yes
is active?
newHolidayDesc
Yes
new description
Example Request
Example Response
Response Code : 200 (OK)
DELETE /holidays
This service will provides the service to delete a holiday.
Resource URL
DELETE /holidays
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
holidayDate
Yes
date to be deleted
holidayName
Yes
name of the holiday to be deleted
locationCode
Yes
location code
Example Request
Example Response
Response Code : 200 (OK)
GET /holidays/{holidayid}
This service will provides the service to get all holidays by Id.
Resource URL
GET /holidays/{holidayid}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
holidayid
yes
holiday Id
Example Response
Response Code : 200 (OK)
GET /holidays/{holidayid}/{langcode}
This service will get all the holidays by holidayid and language code.
Resource URL
GET /holidays/{holidayid}/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
holidayid
yes
holiday Id
langCode
Yes
language code
Example Response
Response Code : 200 (OK)
GET /holidays/all
This service will retrieve all the holidays with additional metadata.
Resource URL
GET /holidays/all
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
orderBy
optional
response order
desc
pageNumber
optional
page no for the requested data
0
pageSize
optional
page size for the requested data
10
sortBy
optional
sort the requested data based on param value
createdDateTime
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-019
Error occured while fetching Holidays
Fetch Issue
KER-MSD-020
Holiday not found
Data Not Found
KER-MSD-065
Error occurred while inserting holiday
Insertion Issue
KER-MSD-099
Error occurred while updating holiday
Update Issue
KER-MSD-100
Error occurred while deleting holiday
Deletion Issue
KER-MSD-025
Error occured while fetching Location Hierarchy
fetch issue
KER-MSD-026
Location not found
Data Not Found
POST /holidays/filtervalues
This API is used by the Administrator Portal UI to populate filter dropdowns on the Holiday List View UI Screen.
Resource URL
POST /holidays/filtervalues
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Example Request
Example Response
Response Code : 200 (OK)
POST /holidays/search
This API is used by the Administrator Portal to fetch list of Holidays based on a given filter criteria to display the list of Holidays on the Portal UI.
Resource URL
POST /holidays/search
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["contains","equals","startsWith","between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the fromName
-NA-
toValue
No
If the type is "between", this field is the value of the toName
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Filter Values
Please find the filter columns used in search
holidayName
holidayDate|["between"]
isActive
Example Request
Example Response
Response Code : 200 (OK)
Locations
POST /locations
POST /locations
This masterdata service creates the location. Please find the steps to create primary/secondary languages in the link.
Resource URL
POST /locations
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the location
name
Yes
Name of the location
hierarchyLevel
Yes
Heirarchy level of the location
hierarchyName
Yes
Hierarchy level name of the location
parentLocCode
Yes
Parent location code of the location
langCode
Yes
Language Code of the location
isActive
Yes
Is this location active
Example Request
Example Response
Response Code : 200 (OK)
Error Response:
Response Code : 200 (OK)
Failure details
KER-MSD-500
Internal Server Error
If system error occurs
KER-ATH-403
Forbidden
If unauthorized role detected
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
KER-MSD-389
Parent location not found
KER-MSD-385
Location already exist under the hierarchy
KER-MSD-064
Error occured while inserting location hierarchy details
PUT /locations
Resource URL
PUT /locations
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the location
name
Yes
Name of the location
hierarchyLevel
Yes
Heirarchy level of the location
hierarchyName
Yes
Hierarchy level name of the location
parentLocCode
Yes
Parent location code of the location
langCode
Yes
Language Code of the location
isActive
Yes
Is this location active
Example Request
Example Response
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
KER-MSD-500
Internal Server Error
If system error occurs
KER-ATH-403
Forbidden
If unauthorized role detected
KER-ATH-401
Authentication Failed
If no role/invalid token is detected
KER-MSD-097
Error occured while updating location hierarchy details
DELETE /locations/{locationcode}
Resource URL
DELETE /locations/{locationcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
locationcode
Yes
location code
Example Response
Response Code : 200 (OK)
GET /locations/{langcode}
This service will provides the service for the List of Locations.
Resource URL
GET /locations/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Response
Response Code : 200 (OK)
GET /locations/{locationcode}/{languagecode}
This service will provides the service for the List of Locations.
Resource URL
GET /locations/{locationcode}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Response
Response Code : 200 (OK)
GET /locations/immediatechildren/{locationcode}/{langcode}
This service will provides the service for the List of Locations.
Resource URL
GET /locations/immediatechildren/{locationcode}/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Response
Response Code : 200 (OK)
GET /locations/locationhierarchy/{hierarchyname}
This service will provides the service for the List of Locations based on the location hierarchy name.
Resource URL
GET /locations/locationhierarchy/{hierarchyname}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Response
Response Code : 200 (OK)
GET /locations/validate/{locationname}
This service whether the given location name is valid or not.
Resource URL
GET /locations/validate/{locationname}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
locationname
yes
This is the location name.
-NA-
Example Response
Response Code : 200 (OK)
GET /locations/all
This service will provide all locations
Resource URL
GET /locations/all
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
pageNumber
optional
page no for the requested data
-NA-
pageSize
optional
page size for the requested data
-NA-
sortBy
optional
sort the requested data based on param value
-NA-
orderBy
optional
order the requested data based on param
-NA-
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-025
Error occured while fetching Location Hierarchy
Fetch Issue
KER-MSD-026
Location not found
Data Not Found
KER-MSD-064
Error occured while inserting location hierarchy details
Insertion Issue
KER-MSD-097
Error occured wihile updating location hierarchy details
Update Issue
KER-MSD-098
Error occured wihile deleting location hierarchy details
Deletion Issue
KER-MSD-028
Location Hierarchy Level not found
Data Not Found
KER-MSD-027
Error occured while fetching Location Hierarchy Levels
Fetch Issue
KER-MSD-389
Parent location not found
Data Not Found
KER-MSD-385
Location already exist under the hierarchy
insertion issue
POST /locations/search
This API is used by the Administrator Portal to fetch list of Locations based on a given filter criteria to display the list of Locations on the Portal UI.
Resource URL
POST /locations/search
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["in","equals",,"startsWith""between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the start range
-NA-
toValue
No
If the type is "between", this field is the value of the end range
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Filter Values
Please find the filter columns used in search
isActive
region
province
city
Zone
postalCode
Example Request
Example Response
Response Code : 200 (OK)
POST /locations/filtervalues
This API is used by the Administrator Portal UI to populate filter dropdowns on the Location List View UI Screen.
Resource URL
POST /locations/filtervalues
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Example Request
Example Response
Response Code : 200 (OK)
Languages
POST /languages
This service will create a Language which is used in the MOSIP platform.
Resource URL
POST /languages
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the language
name
Yes
Name of the language
Example Request
Example Response
Response Code : 200 (OK)
GET /languages
This service will provides the service for the List of languages.
Resource URL
GET /languages
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
NA
Example Request
-NA-
Example Response
Response Code : 200 (OK)
PUT /languages
This service will update a Language which is used in the MOSIP platform.
Resource URL
PUT /languages
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the language
name
Yes
Name of the language
Example Request
Example Response
Response Code : 200 (OK)
DELETE /languages/{code}
This service will delete a Language which is used in the MOSIP platform.
Resource URL
DELETE /languages/{code}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the language
Example Request
-NA-
Example Response
Failure Response
Response Code : 200 (OK)
Failure details
KER-MSD-24
Language not found
no language found exception
KER-MSD-23
Error occured while fetching Languages
language fetch exception
KER-MSD-049
Error occurred while inserting Language details
language create exception
KER-MSD-XXX
Error occured while updating Language
language update exception
KER-MSD-XXX
Error occured while deleting Language
language delete exception
Individual Types
POST /individualtypes
This service will create the list of individualtypes which are used in the MOSIP platform.
Resource URL
POST /individualtypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
code of individualtype
name
Yes
name of individualtype
Example Request
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-153
Data insertion in IndividualTypeRepository is failed
create individualType is failed
PUT /individualtypes
This service will update the list of individualtypes which are used in the MOSIP platform.
Resource URL
PUT /individualtypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
code of individualtype
name
Yes
name of individualtype
Example Request
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-151
Individual Type not found
no individual type found exception
KER-MSD-154
Data updation in IndividualTypeRepository is failed
Data updation in individualType is failed
GET /individualtypes
This service will provides the complete list of all individual types in the MOSIP platform
Resource URL
GET /individualtypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Request
-NA-
Example Response
Response Code : 200 (OK)
Failure Response
Response Code : 200 (OK)
GET /individualtypes/all
This service will get all the individualtypes.
Resource URL
GET /individualtypes/all
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
orderBy
optional
order the requested data based on param
pageNumber
optional
page no for the requested data
pageSize
optional
page size for the requested data
sortBy
optional
sort the requested data based on param value
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-151
Individual Type not found
no individual type found exception
KER-MSD-152
Error occurred while fetching Individual Type
individual type fetch exception
POST /individualtypes/search
This service is for the individual types search functionality. All the filter parameters are passed and the individual types are searched and the matching results are returned.
Resource URL
POST /individualtypes/search
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["in","equals",”startsWith”,"between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the start range
-NA-
toValue
No
If the type is "between", this field is the value of the end range
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Example Request
Example Response
Response Code : 200 (OK)
POST /individualtypes/filtervalues
This service returns the filter values which are required in the dropdown entries of the filter screen.
Resource URL
POST /individualtypes/filtervalues
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Example Request
Example Response
Response Code : 200 (OK)
Application Types
POST /applicationtypes
This service will create the list of ApplicationTypes which are used in the MOSIP platform.
Resource URL
POST /applicationtypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
code of applicationtype
description
Yes
description of applicationtype
Example Request
Example Response
Response Code : 200 (OK)
GET /applicationtypes
This service will provides the service for the List of ApplicationTypes.
Resource URL
GET /applicationtypes
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
-NA-
Example Response
Response Code : 200 (OK)
GET /applicationtypes/{code}/{langcode}
This service will provides the service for the List of ApplicationTypes.
Resource URL
GET /applicationtypes/{code}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the applicationtype
langcode
Yes
Name of the language
Example Response
Response Code : 200 (OK)
GET /applicationtypes/{langcode}
This service is used to fetch all Application details by language code
Resource URL
GET /applicationtypes/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
langcode
Yes
Name of the language
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-001
Error occurred while fetching Applications
application fetch exception
KER-MSD-101
Error occurred while inserting application details
application insert exception
KER-MSD-002
Application not found
application not found exception
KER-MSD-201
Bad Request Found
application request exception
Blacklisted Words
POST /blacklistedwords
This service will create a blacklistedword which will be used in the MOSIP platform.
Resource URL
POST /blacklistedwords
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
description
optional
blacklisted word description
isActive
Yes
is active or not
langCode
Yes
language code
word
Yes
blacklisted word name
Example Request
Example Response
Response Code : 200 (OK)
PUT /blacklistedwords
This service will update the blacklisted word which is used in the MOSIP platform.
Resource URL
PUT /blacklistedwords
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
description
optional
blacklisted word description
isActive
Yes
is active or not
langCode
Yes
language code
oldWord
Yes
old blacklisted word
word
Yes
blacklisted word
Example Request
Example Response
Response Code : 200 (OK)
GET /blacklistedwords/{langcode}
This service will provides the service for the List of blacklisted words based on the passed language code.
Resource URL
GET /blacklistedwords/{langcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
langcode
Yes
language code
Example Response
Response Code : 200 (OK)
DELETE /blacklistedwords/{word}
This service will provides the service to delete the blacklisted word.
Resource URL
DELETE /blacklistedwords/{word}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
word
Yes
blacklisted word to be deleted
Example Response
Response Code : 200 (OK)
GET /blacklistedwords/all
This service will provides the service for the List of blacklistedwords.
Resource URL
GET /blacklistedwords/all
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
orderBy
optional
response order
desc
pageNumber
optional
page no for the requested data
0
pageSize
optional
page size for the requested data
10
sortBy
optional
sort the requested data based on param value
createdDateTime
Example Response
Response Code : 200 (OK)
PUT /blacklistedwords/details
This service will update the blacklisted word details except the word itself.
Resource URL
PUT /blacklistedwords/details
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
description
optional
blacklisted word description
isActive
Yes
is active or not
langCode
Yes
language code
word
Yes
blacklisted word name
Example Request
Example Response
Response Code : 200 (OK)
POST /blacklistedwords/words
This service will validate list of words if they are blacklisted or not.
Resource URL
POST /blacklistedwords/words
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
blacklisted words
Yes
blacklisted words to be validated
Example Request
Example Response
Response Code : 200 (OK)
Failure details
KER-MSD-008
Blacklisted word not found
no blacklisted words found
KER-MSD-007
Error occurred while fetching Blacklisted words
blacklisted words fetch exception
KER-MSD-070
Error occurred while inserting Blacklisted words
blacklisted words insert exception
KER-MSD-105
Error occurred while updating Blacklisted Word
blacklisted words update exception
KER-MSD-106
Error occurred while deleting Blacklisted Word
blacklisted words delete exception
POST /blacklistedwords/search
This API is used by the Administrator Portal to fetch list of Locations based on a given filter criteria to display the list of Blacklisted Words on the Portal UI.
Resource URL
POST /blacklistedwords/search
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["contains","equals","startsWith","between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the start range
-NA-
toValue
No
If the type is "between", this field is the value of the end range
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Filter Values
Please find the filter columns used in search
word
langCode
isActive
Example Request
Example Response
Response Code : 200 (OK)
POST /blacklistedwords/filtervalues
This API is used by the Administrator Portal UI to populate filter dropdowns on the Blacklisted Word List View UI Screen.
Resource URL
POST /blacklistedwords/filtervalues
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Example Request
Example Response
Response Code : 200 (OK)
Working days
GET /weekdays/{registrationCenterID}/{languagecode}
This service returns all the week days.
Resource URL
https://mosip.io/v1/masterdata/weekdays/{registrationCenterId}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Part Parameters
registrationCenterID
Yes
Id of the registration center
languagecode
Yes
Language code in ISO 639-2 standard
-NA-
Response Part Parameters
name
Yes
Id of the registration center
order
Yes
This is the order of the weekdays. If the weekdays are in the order of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday. The order will be 1-Sunday, 2-Monday, 3-Tuesday, 4-Wednesday, 5-Thursday, 6-Friday, 7-Saturday and 8-Sunday.
languagecode
Yes
Language code in ISO 639-2 standard
-NA-
Responses
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
KER-WKDS-001
reg_working_nonworking table not accessible
Table not accessible
KER-WKDS-002
No week day found
No data present in week day table
GET /workingdays/{registrationCenterID}/{languagecode}
This service returns the working days of a particular registration center.
Resource URL
https://mosip.io/v1/masterdata/workingdays/{registrationCenterId}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Part Parameters
registrationCenterID
Yes
Id of the registration center
languagecode
Yes
Language code in ISO 639-2 standard
-NA-
Responses
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
KER-WKDS-001
reg_working_nonworking table not accessible
Table not accessible
KER-WKDS-003
No working/non working day data found
No Data present in Working days table.
Exceptional holidays
GET /exceptionholidays/{registrationCenterId}/{languagecode}
This service returns the exceptional holidays of a particular registration center.
Resource URL
https://mosip.io/v1/masterdata/exceptionholidays/{registrationCenterId}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Part Parameters
registrationCenterID
Yes
Id of the registration center
languagecode
Yes
Language code in ISO 639-2 standard
-NA-
Responses
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
KER-EHD-001
Error occured while fetching Exceptional Holidays
Database exception
KER-EHD-002
Exceptional Holiday not founds
Exceptional holidays data not present for registration center id and language code
Last updated