This section details about the service APIs for the BlacklistedWords
This service will create a blacklisted word which will be used in the MOSIP platform.
POST /blacklistedwords
Response format
JSON
Requires Authentication
Yes
description
optional
blacklisted word description
isActive
Yes
is active or not
langCode
Yes
language code
word
Yes
blacklisted word name
Response code: 200 Ok
This service will update the blacklisted word which is used in the MOSIP platform.
PUT /blacklistedwords
Response format
JSON
Requires Authentication
Yes
description
optional
blacklisted word description
isActive
Yes
is active or not
langCode
Yes
language code
oldWord
Yes
old blacklisted word
word
Yes
blacklisted word
Response code: 200 Ok
This service will provides the service for the List of blacklisted words based on the passed language code.
GET /blacklistedwords/{langcode}
Response format
JSON
Requires Authentication
Yes
langcode
Yes
language code
Response code: 200 Ok
This service will provides the service to delete the blacklisted word.
DELETE /blacklistedwords/{word}
Response format
JSON
Requires Authentication
Yes
word
Yes
blacklisted word to be deleted
Response code: 200 Ok
This service will provides the service for the List of blacklistedwords.
GET /blacklistedwords/all
Response format
JSON
Requires Authentication
Yes
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
Response code: 200 Ok
This service will update the blacklisted word details except the word itself.
PUT /blacklistedwords/details
Response format
JSON
Requires Authentication
Yes
description
optional
blacklisted word description
isActive
Yes
is active or not
langCode
Yes
language code
word
Yes
blacklisted word name
Response code: 200 Ok
This service will return "Invalid" when the word is a blacklisted word and retrun "valid" when the word is not a blacklist word.
POST /blacklistedwords/words
Response format
JSON
Requires Authentication
Yes
blacklisted words
Yes
blacklisted words to be validated
Response code: 200 Ok
KER-MSD-007
Error occurred while fetching Blacklisted words
Fetch Issue
KER-MSD-008
Blacklisted word not found
Data Not Found
KER-MSD-070
Error occurred while inserting Blacklisted words
Insertion Issue
KER-MSD-105
Error occurred while updating Blacklisted Word
Update Issue
KER-MSD-106
Error occurred while deleting Blacklisted Word
Deletion Issue
This service returns the filter values which are required in the dropdown entries of the filter screen.
POST /blacklistedwords/filtervalues
Response format
JSON
Requires Authentication
Yes
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
Response code: 200 Ok
This service is for the blacklisted words search functionality. All the filter parameters are passed and the blacklisted words are searched and the matching results are returned.
POST /blacklistedwords/search
Response format
JSON
Requires Authentication
Yes
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
10
pageFetch
This is the amount of records to be fetched
10
10
Response code: 200 Ok