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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Response
Response Code : 200 (OK)
Failure details
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
Parameters
Filter Values
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Response
Response Code : 200 (OK)
Failure details
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Response
Response Code : 200 (OK)
Failure Response
Response Code : 200 (OK)
Failure details
Holidays
GET /holidays
This service will get all the holidays.
Resource URL
GET /holidays
Resource details
Parameters
Example Response
Response Code : 200 (OK)
POST /holidays
This service will create a new holiday.
Resource URL
POST /holidays
Resource details
Parameters
Example Request
Example Response
Response Code : 200 (OK)
PUT /holidays
This service will update a holiday.
Resource URL
PUT /holidays
Resource details
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Response
Response Code : 200 (OK)
Failure details
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
Parameters
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
Parameters
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
Parameters
Example Request
Example Response
Response Code : 200 (OK)
Error Response:
Response Code : 200 (OK)
Failure details
PUT /locations
Resource URL
PUT /locations
Resource details
Parameters
Example Request
Example Response
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
DELETE /locations/{locationcode}
Resource URL
DELETE /locations/{locationcode}
Resource details
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Response
Response Code : 200 (OK)
GET /locations/all
This service will provide all locations
Resource URL
GET /locations/all
Resource details
Parameters
Example Response
Response Code : 200 (OK)
Failure details
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Request
-NA-
Example Response
Failure Response
Response Code : 200 (OK)
Failure details
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
Parameters
Example Request
Example Response
Response Code : 200 (OK)
Failure details
PUT /individualtypes
This service will update the list of individualtypes which are used in the MOSIP platform.
Resource URL
PUT /individualtypes
Resource details
Parameters
Example Request
Example Response
Response Code : 200 (OK)
Failure details
GET /individualtypes
This service will provides the complete list of all individual types in the MOSIP platform
Resource URL
GET /individualtypes
Resource details
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
Parameters
Example Response
Response Code : 200 (OK)
Failure details
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
Parameters
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
Parameters
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
Parameters
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
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
Parameters
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
Parameters
Example Response
Response Code : 200 (OK)
Failure details
Blacklisted Words
POST /blacklistedwords
This service will create a blacklistedword which will be used in the MOSIP platform.
Resource URL
POST /blacklistedwords
Resource details
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
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
Parameters
Example Request
Example Response
Response Code : 200 (OK)
Failure details
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
Parameters
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
Parameters
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
Request Part Parameters
Response Part Parameters
Responses
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
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
Request Part Parameters
Responses
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
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
Request Part Parameters
Responses
Success Response
Response Code : 200 (OK)
Error Response
Response Code : 200 (OK)
Failure details
Last updated