DIGIT-API's
    DIGIT-API's
    • Using DIGIT-PLAYGROUND
    • User
      • Manage
        • Create User
        • Search All Users
        • Search Active Users
        • Create User Without OTP Validation
        • Update User Without OTP Validation
        • Get User
        • Update Profile
      • Authenticate
        • Logout
        • Reset Password
        • Login
    • Master Data V1
      • List
        POST
      • Search
        POST
    • Master Data V2
      • Create Schema
        • Create Schema
      • Search Schema
        • Seach Schema
      • Add Data
        • Create
      • Seach Data
        • Seach Data
      • Update data
        • Updata
    • Access-control
      • Action
        • Authorize User
        • Get the list of actions based on either roles or features.
        • Create a new action.
        • Update existing action(s).
        • getAllMDMSActions
        • Validate a particular action for a given tenant and roles of the tenant
      • Role
        • Get the list of roles based on role codes.
        • Create a new role.
        • Update existing role(s).
      • Role-Action
        • Create mapping for role and action(s).
    • 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
        • Get the list of escalate workflow applications defined in the system.
        • Get the list of workflow applications defined in the system.
      • BusinessServiceV2
        • Create new v2 BuinessService.
        • Updates a existing v2 BuinessService.
        • Get the list of v2 BusinessServices defined in the system.
      • BusinessService
        • Create new BuinessService.
        • Updates a existing BuinessService.
        • Get the list of BusinessServices defined in the system.
    • Filestore
      • Upload File
        • Uploads different kinds of files to server.
      • Search
        • Search file url based on tenantid and filestoreid.
        • Search file url based on tenantid and tag name.
        • Get metadata of file based on tenantId and filestoreId.
        • Search file url based on tenantid and filestoreid.
    • Idgen
      • IdGeneration Controller
      • Create new id.
        POST
    • Location
      • Boundary
        • Search Location
        • It Will provide the List of boundaries based on search criteria Like "Srikakulam Municipality","Zone-1","Zone-2" etc.
      • Geography
        • Handles all requests related to Geographical boundaries by providing appropriate GeoJson and other associated data
      • Tenant
        • Resolves a given latitude / longitude to the corresponding tenant Id
    • 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
    • PG-Service
      • transactions-api-controller
        • transactionsV1AvailableGatewaysPost
        • transactionsV1CreatePost
        • transactionsV1SearchPost
        • transactionsV1UpdatePost
    • URL-Shortening
      • egov-url-shortening service endpoints
        • shorten given url
        • redirects user to orignal url identified by id
    • 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.
        • This endpoint is used to start indexing job to reindex records from one index to another index.
        • 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.
        • Index data in row
    • 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
    • Report
      • Report Meta
        • createv1
        • getReportDatav1
        • Metadata API for report definition
      • Report
        • Search API for report data
    • eGov-OTP
      • OTPConfig
        • create OTP Configuration entry
        • validate OTP Configuration entry
        • search OTP Configuration entry using uuid
    • User-OTP
      • user otp send
    • Localization
      • Create Message
        • create massage
      • Fetch Message
        • fetch message
      • Update message
        • update message
      • Delete message
        • delete mesage
      • Upsert message
        • upsert message
    • Service Request
      • Service Defination Create
        • Create service defination
      • Service Defination search
        • Search service defination
      • Service create
        • service create
      • Service Search
        • Service search
    • Audit Service

    Using DIGIT-PLAYGROUND

    DIGIT-Playground is an ideal place for anyone who is interested in exploring DIGIT functionalities without any manual setup.
    It is one stop destination where you can interact and playaround with DIGIT through various endpoints made available.

    Steps to interact with the API's#

    1. Generate Access Token :#

    DIGIT expects a valid auth token to be passed as part of each request body for auth purposes.
    a) To obtain access token head to this link and just click on send button.
    b) It should look like this:
    image.png

    2. Passing auth token in request body of API you wish to access#

    a) Pass the generated token in authToken field of requestInfo.
    b) See the highlighted field in the below image
    image.png
    3.
    CLICK send! : You now just need to click the send button to start interacting the endpoints.
    image.png

    How to use DIGIT Update endpoints#

    In DIGIT any update request requires users to pass updated request body built upon the search response for that record to ensure consistency.
    We suggest follow one of the two flows either based upon whether you are creating the record for the first time or using an already existing one.
    1.
    Create a record -> Search that record -> Update the record (using the response data from record search)
    2.
    Search the record -> Update the record (Using the response data from record search)
    Example of Workflow service
    1.
    Creating a new BusinessService : Go to https://digit-api.apidog.io/api-6829054 and update authToken and businessService to create a new business service. Reffer to below image to see how it should looks.
    image.png
    2.
    Searching the created workflow : Search the recently created record to get the latest businessService detail.
    image.png
    3.
    Updating the created workflow: Copy BusinessServices from the response data and update the same in the update workflow request and make any changes in this request body as per your wish to get your record updated.
    image.png
    NOTE: Although the API's have already been configured as per a valid request body. We encourage you to try and play around with them , try changing request body , params etc. As with most things in engineering you will start get a better idea of using them as you start breaking them!
    If you are further intrested in indepth of services you can alway read more about them here https://core.digit.org/platform/core-services
    Modified at 2024-05-23 08:58:11
    Next
    Manage
    Built with