- Using DIGIT-PLAYGROUND
- User
- Master Data V1
- Master Data V2
- Create Schema
- Search Schema
- Add Data
- Seach Data
- Update data
- Access-control
- Action
- Role
- Role-Action
- Workflow-v2
- WorkFlow
- Create new workflow entry for a given application number(businessId).
- Process search of the applicaition
- Get the list of workflow applications defined in the system.
- Get the count of applications satisfying the given criteria
- Get the nearing sla count of workflow applications defined in the system.
- Get the list of status count workflow applications defined in the system.
- Escalate
- BusinessServiceV2
- BusinessService
- Filestore
- Idgen
- Location
- Enc-Service
- Crypto
- Encrypts the given input value/s OR values of the object.
- Decrypts the given input value/s OR values of the object.
- Provide signature for a given value.
- Check if the signature is correct for the provided value.
- Deactivate the keys for the given tenant and generate new keys. It will deactivate both symmetric and asymmetric keys for the provided tenant.
- cryptoRotateAllKeys
- Crypto
- PG-Service
- URL-Shortening
- Indexer
- egov-indexer service
- This endpoint is used to start legacy index job to reindex records from DB. The data is fetched from DB by calling api mentioned in request in batches. The is useful when some record is present in DB but missing on index.POST
- This endpoint is used to start indexing job to reindex records from one index to another index.POST
- This endpoint is used to index one record on a index. The information to pick correct config is provided with the data to be indexed.POST
- Index data in rowPOST
- PDF-Service
- PDF-Service endpoints
- Generate PDF and store output pdfs to filestore and return their filestoreids. The information is also saved into DB so that using _search endpoint we can retrieve already generated pdfs.
- Generates pdf without storing any information on filestore or in DB. The generated pdf would be returned as binary response
- Get filestoreids and other information about already generated pdf by searching on jobid or entityid with other optional search parameters
- PDF-Service endpoints
- Report
- eGov-OTP
- User-OTP
- Localization
- Service Request
- Audit Service
This endpoint is used to index one record on a index. The information to pick correct config is provided with the data to be indexed.
POST
/index-operations/{key}/_index
egov-indexer service
Last modified:2024-04-29 10:15:20
Request
Path Params
key
string
required
Example:
finance-adoption-topic
Header Params
Content-Type
string
optional
Example:
application/json
Body Params text/plain
Example
Example:{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"userInfo": {
"id": 1410,
"uuid": "fd894f14-254f-43ee-a4cd-cc4bbc856c5a",
"userName": "AllAcessNew1",
"name": "mustak",
"mobileNumber": "9353822214",
"emailId": "xyz@egovernments.org",
"locale": "string",
"type": "EMPLOYEE",
"roles": [
{
"name": "Super User",
"code": "SUPERUSER",
"tenantId": "pb"
},
{
"name": "PGR Last Mile Employee",
"code": "PGR_LME",
"tenantId": "pb"
},
{
"name": "Department Grievance Routing Officer",
"code": "DGRO",
"tenantId": "pb"
},
{
"name": "HRMS Admin",
"code": "HRMS_ADMIN",
"tenantId": "pb"
},
{
"name": "Citizen",
"code": "CITIZEN",
"tenantId": "pb"
},
{
"name": "FSM Employee Report Viewer",
"code": "FSM_REPORT_VIEWER",
"tenantId": "pb"
},
{
"name": "Grievance Routing Officer",
"code": "GRO",
"tenantId": "pb"
},
{
"name": "FSM Desluding Operator",
"code": "FSM_DSO",
"tenantId": "pb"
},
{
"name": "FSM Administrator",
"code": "FSM_ADMIN",
"tenantId": "pb"
},
{
"name": "System user",
"code": "SYSTEM",
"tenantId": "pb"
},
{
"name": "Employee",
"code": "EMPLOYEE",
"tenantId": "pb"
}
],
"active": true,
"tenantId": "pb",
"permanentCity": "Kaikoo"
},
"authToken": "26d8de89-1b00-4bfe-86e0-5b3fd4a270a9"
},
"service": {
"tenantId": "pb.amritsar",
"serviceCode": "OverflowingOrBlockedDrain",
"description": "overflowing drain",
"additionalDetail": {
"sdsadsadsad": "asdsadsadsadsa"
},
"source": "whatsapp",
"address": {
"doorNo": "2",
"plotNo": "10",
"landmark": "Near City Hall",
"city": "Amritsar",
"district": "Amritsar",
"region": "Amritsar",
"state": "Punjab",
"country": "India",
"pincode": "111111",
"buildingName": "Safalya",
"street": "10th main",
"locality": {
"code": "SUN01"
},
"geoLocation": {
"latitude": 21,
"longitude": 56,
"additionalDetails": {}
}
}
},
"workflow": {
"action": "APPLY",
"assignes": [],
"comments": "Drain Overflowing",
"verificationDocuments": [
{
"documentType": "PHOTO",
"fileStoreId": "b0c5a846-c75a-11ea-87d0-0242ac130003",
"documentUid": "",
"additionalDetails": {}
}
]
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://unified-dev.digit.digit.org/index-operations/finance-adoption-topic/_index' \
--header 'Content-Type: application/json' \
--data-raw '{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"userInfo": {
"id": 1410,
"uuid": "fd894f14-254f-43ee-a4cd-cc4bbc856c5a",
"userName": "AllAcessNew1",
"name": "mustak",
"mobileNumber": "9353822214",
"emailId": "xyz@egovernments.org",
"locale": "string",
"type": "EMPLOYEE",
"roles": [
{
"name": "Super User",
"code": "SUPERUSER",
"tenantId": "pb"
},
{
"name": "PGR Last Mile Employee",
"code": "PGR_LME",
"tenantId": "pb"
},
{
"name": "Department Grievance Routing Officer",
"code": "DGRO",
"tenantId": "pb"
},
{
"name": "HRMS Admin",
"code": "HRMS_ADMIN",
"tenantId": "pb"
},
{
"name": "Citizen",
"code": "CITIZEN",
"tenantId": "pb"
},
{
"name": "FSM Employee Report Viewer",
"code": "FSM_REPORT_VIEWER",
"tenantId": "pb"
},
{
"name": "Grievance Routing Officer",
"code": "GRO",
"tenantId": "pb"
},
{
"name": "FSM Desluding Operator",
"code": "FSM_DSO",
"tenantId": "pb"
},
{
"name": "FSM Administrator",
"code": "FSM_ADMIN",
"tenantId": "pb"
},
{
"name": "System user",
"code": "SYSTEM",
"tenantId": "pb"
},
{
"name": "Employee",
"code": "EMPLOYEE",
"tenantId": "pb"
}
],
"active": true,
"tenantId": "pb",
"permanentCity": "Kaikoo"
},
"authToken": "26d8de89-1b00-4bfe-86e0-5b3fd4a270a9"
},
"service": {
"tenantId": "pb.amritsar",
"serviceCode": "OverflowingOrBlockedDrain",
"description": "overflowing drain",
"additionalDetail": {
"sdsadsadsad": "asdsadsadsadsa"
},
"source": "whatsapp",
"address": {
"doorNo": "2",
"plotNo": "10",
"landmark": "Near City Hall",
"city": "Amritsar",
"district": "Amritsar",
"region": "Amritsar",
"state": "Punjab",
"country": "India",
"pincode": "111111",
"buildingName": "Safalya",
"street": "10th main",
"locality": {
"code": "SUN01"
},
"geoLocation": {
"latitude": 21,
"longitude": 56,
"additionalDetails": {}
}
}
},
"workflow": {
"action": "APPLY",
"assignes": [],
"comments": "Drain Overflowing",
"verificationDocuments": [
{
"documentType": "PHOTO",
"fileStoreId": "b0c5a846-c75a-11ea-87d0-0242ac130003",
"documentUid": "",
"additionalDetails": {}
}
]
}
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{
"service": {
"tenantId": "pb.amritsar",
"serviceCode": "NoStreetlight",
"description": "",
"additionalDetail": {},
"source": "web",
"address": {
"city": "Amritsar",
"district": "Amritsar",
"region": "Amritsar",
"state": "Panjab",
"pincode": "143001",
"locality": {
"code": "SUN04",
"name": "Ajit Nagar"
},
"geoLocation": {}
}
},
"workflow": {
"action": "APPLY"
}
}
🟠400Invalid input.
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2024-04-29 10:15:20