Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
26d2da4
implemented saas-policy changes
Prajwal17Tunerlabs Apr 23, 2025
23e6c75
envVaibales file updated
Prajwal17Tunerlabs Apr 23, 2025
2417d92
different admins login handled
Prajwal17Tunerlabs Apr 25, 2025
64b8ee0
Code enhancement & addressed PR comments
Prajwal17Tunerlabs Apr 26, 2025
42847ce
resolved conflict
Prajwal17Tunerlabs Apr 26, 2025
690d69a
new authenticator changes added
Prajwal17Tunerlabs Apr 29, 2025
0c61d8d
updated function signatures in controllers
Prajwal17Tunerlabs Apr 29, 2025
dc02579
Merge branch 'develop' into feature/saas-policy
Prajwal17Tunerlabs Apr 29, 2025
08f0e29
indexed fields in model
Prajwal17Tunerlabs Apr 29, 2025
ce23ded
functionName fixed in middleware
Prajwal17Tunerlabs Apr 29, 2025
be7aa63
middleware fixed to handle role extraction
Prajwal17Tunerlabs Apr 29, 2025
a99498f
entities model updated
Prajwal17Tunerlabs Apr 30, 2025
3d6cf44
gitignore file updated
Prajwal17Tunerlabs Apr 30, 2025
7b78cf4
Delete config.json
Prajwal17Tunerlabs Apr 30, 2025
8987c7d
savepoint
borkarsaish65 May 1, 2025
ac311be
savepoint
borkarsaish65 May 1, 2025
4c183f9
Merge pull request #117 from ELEVATE-Project/feature/saas-policy-saish
borkarsaish65 May 1, 2025
defff77
Merge pull request #108 from ELEVATE-Project/feature/saas-policy
VISHNUDAS-tunerlabs May 2, 2025
73c6f79
Merge branch 'develop' of https://github.com/ELEVATE-Project/entity-m…
borkarsaish65 May 2, 2025
325d2d2
Merge pull request #118 from ELEVATE-Project/develop
Prajwal17Tunerlabs May 3, 2025
7a2bc60
middleware changes
Prajwal17Tunerlabs May 6, 2025
537ba8a
Merge pull request #119 from ELEVATE-Project/feature/saas-policy
VISHNUDAS-tunerlabs May 6, 2025
8d797dd
scp code commented temp
VISHNUDAS-tunerlabs May 7, 2025
c50fa60
Merge branch 'develop' of https://github.com/ELEVATE-Project/entity-m…
borkarsaish65 May 7, 2025
127dbd4
savepoint
borkarsaish65 May 7, 2025
38f01a7
Merge pull request #120 from ELEVATE-Project/auth-file-change
borkarsaish65 May 7, 2025
c598c59
middleware changes for guest urls
VISHNUDAS-tunerlabs May 7, 2025
34c25b0
Merge pull request #121 from ELEVATE-Project/develop
borkarsaish65 May 7, 2025
369b9ce
Merge pull request #122 from ELEVATE-Project/guest url logic updated …
VISHNUDAS-tunerlabs May 7, 2025
fcfa446
authenticator change
VISHNUDAS-tunerlabs May 7, 2025
b74cf4b
authenticator change
VISHNUDAS-tunerlabs May 7, 2025
20f7ec2
authenticator change
VISHNUDAS-tunerlabs May 7, 2025
ad50ca6
authenticator change
VISHNUDAS-tunerlabs May 7, 2025
e7d5330
new user-token structure changs
Prajwal17Tunerlabs May 13, 2025
ce38b7d
authenticator fix
Prajwal17Tunerlabs May 13, 2025
a88362f
Merge pull request #123 from ELEVATE-Project/feature/saas-policy. (Me…
Prajwal17Tunerlabs May 13, 2025
d2080fa
config.json file path updated in middleware
Prajwal17Tunerlabs May 13, 2025
eec19f0
Merge pull request #124 from ELEVATE-Project/feature/saas-policy
aks30 May 13, 2025
1edcc5c
Merge pull request #125 from ELEVATE-Project/develop
aks30 May 13, 2025
a2760aa
"tenantid-changed-to-tenantId"
MallanagoudaB May 14, 2025
f23950a
Merge pull request #126 from ELEVATE-Project/tenantIdFix
aks30 May 14, 2025
e92453d
"added-ALL"
MallanagoudaB May 14, 2025
0935f9c
Merge pull request #128 from ELEVATE-Project/Alladded
aks30 May 14, 2025
745ba9d
Merge pull request #129 from ELEVATE-Project/develop
MallanagoudaB May 14, 2025
2d525e9
"tenantId-added-in-header"
MallanagoudaB May 14, 2025
624a8da
Merge pull request #130 from ELEVATE-Project/tenantIdAdded
aks30 May 14, 2025
b5009f1
Merge pull request #131 from ELEVATE-Project/develop
MallanagoudaB May 14, 2025
2df158e
"added-ALL-for-ORG"
MallanagoudaB May 15, 2025
4abc25e
"added-to-common"
MallanagoudaB May 15, 2025
1bedec6
Merge pull request #132 from ELEVATE-Project/addedALLForData
aks30 May 15, 2025
05ef04e
Merge pull request #133 from ELEVATE-Project/develop
MallanagoudaB May 15, 2025
a155d41
create mapping csv fix
VISHNUDAS-tunerlabs May 16, 2025
99af9ae
Merge pull request #134 from ELEVATE-Project/mapping-csv-bug
VISHNUDAS-tunerlabs May 16, 2025
0b9671a
Merge pull request #135 from ELEVATE-Project/develop
VISHNUDAS-tunerlabs May 16, 2025
446faa2
pagination handled for entities/find api
Prajwal17Tunerlabs May 20, 2025
50a011a
Merge pull request #136 from ELEVATE-Project/feature/saas-policy
aks30 May 20, 2025
d274432
pagination handled via aggregate function
Prajwal17Tunerlabs May 20, 2025
c2bc4a2
helper function added to convert mongoids to object ids
Prajwal17Tunerlabs May 20, 2025
93f9305
Merge pull request #137 from ELEVATE-Project/feature/saas-policy
aks30 May 20, 2025
d6cafe2
Merge pull request #138 from ELEVATE-Project/develop . (Merged on Aka…
Prajwal17Tunerlabs May 20, 2025
72e80dd
pagination handled using slice method
Prajwal17Tunerlabs May 20, 2025
8879d5c
Merge pull request #139 from ELEVATE-Project/feature/saas-policy
aks30 May 20, 2025
f5cce39
Merge pull request #140 from ELEVATE-Project/develop. (Merged on Akas…
Prajwal17Tunerlabs May 20, 2025
a98b2e2
savePoint
Prajwal17Tunerlabs May 21, 2025
db789d3
handled projection
Prajwal17Tunerlabs May 22, 2025
847226f
pagination handled for internal api calls
Prajwal17Tunerlabs May 22, 2025
e181a12
search filter added to endpoints
Prajwal17Tunerlabs May 23, 2025
89a6763
comments added for readability
Prajwal17Tunerlabs May 27, 2025
0b3d5e9
Merge pull request #141 from ELEVATE-Project/feature/saas-policy
aks30 May 27, 2025
38aa45c
Merge pull request #142 from ELEVATE-Project/develop
Prajwal17Tunerlabs May 27, 2025
3c65590
adding entityType Id to convertObjectId
praveenKDass May 27, 2025
f261cda
Merge pull request #143 from ELEVATE-Project/bugFixes/ConvertMongoId
aks30 May 27, 2025
533d69a
migration script added to update entities documents
Prajwal17Tunerlabs May 29, 2025
1e9c3fc
removed unused code from the script
Prajwal17Tunerlabs May 29, 2025
1141064
Merge pull request #144 from ELEVATE-Project/feature/saas-policy
aks30 May 29, 2025
108b0f2
Merge pull request #145 from ELEVATE-Project/develop
Prajwal17Tunerlabs May 29, 2025
efc110d
"added-targetedEntityTypes-field"
MallanagoudaB May 30, 2025
c95a517
system admin change + filter modification + model changes
borkarsaish65 Jun 2, 2025
521db8d
feat: review 2.0
borkarsaish65 Jun 2, 2025
240e2f0
savepoint
borkarsaish65 Jun 3, 2025
862379a
pr comment resolution
borkarsaish65 Jun 3, 2025
ba79f68
self review 2
borkarsaish65 Jun 3, 2025
ff2b2c8
review comment 3
borkarsaish65 Jun 3, 2025
88823fd
review comment 3_1
borkarsaish65 Jun 3, 2025
c7dd8a6
entities/add entities/update entities/bulkCreate entities/bulkUpdate …
Prajwal17Tunerlabs Jun 3, 2025
a7a196f
updated entities model
Prajwal17Tunerlabs Jun 3, 2025
3d32c8f
savepoint
borkarsaish65 Jun 3, 2025
f6f1fab
feat:script data fix
borkarsaish65 Jun 3, 2025
f80e077
Merge pull request #148 from ELEVATE-Project/subroledataFix
aks30 Jun 3, 2025
6145211
Merge pull request #149 from ELEVATE-Project/develop
borkarsaish65 Jun 3, 2025
0171379
code optimisation
Prajwal17Tunerlabs Jun 3, 2025
9297042
code optimisation
Prajwal17Tunerlabs Jun 3, 2025
c891b8b
code optimisations
Prajwal17Tunerlabs Jun 3, 2025
85d2957
code optimisations
Prajwal17Tunerlabs Jun 3, 2025
628f20c
Merge pull request #146 from ELEVATE-Project/targetedEntityTypes
priyanka-TL Jun 3, 2025
e922af3
Merge pull request #150 from ELEVATE-Project/develop
Prajwal17Tunerlabs Jun 3, 2025
d6737af
Merge branch 'develop' of https://github.com/ELEVATE-Project/entity-m…
borkarsaish65 Jun 3, 2025
fb91d32
removed console.log
borkarsaish65 Jun 3, 2025
71ecbe7
Merge pull request #147 from ELEVATE-Project/feature/sysAdminFlow
priyanka-TL Jun 3, 2025
0fe230f
Merge pull request #151 from ELEVATE-Project/develop
priyanka-TL Jun 3, 2025
9075d9b
readme
priyanka-TL Jun 5, 2025
b7a55c7
updated
priyanka-TL Jun 6, 2025
f92b95b
script for data deletion
priyanka-TL Jun 6, 2025
56827a3
moved
priyanka-TL Jun 6, 2025
f6bf76e
Merge pull request #152 from ELEVATE-Project/scriptForProdCleanup
priyanka-TL Jun 6, 2025
3e03a0c
Merge pull request #153 from ELEVATE-Project/develop
priyanka-TL Jun 6, 2025
c4d0a73
authenticator file changes
Prajwal17Tunerlabs Jun 18, 2025
11de999
Merge pull request #155 from ELEVATE-Project/feature/saas-policy
aks30 Jun 18, 2025
b253c46
Merge pull request #156 from ELEVATE-Project/develop
Prajwal17Tunerlabs Jun 18, 2025
8adb9fe
evn variable config updated
VISHNUDAS-tunerlabs Jun 19, 2025
a0307b3
Merge pull request #157 from ELEVATE-Project/envBugFix
VISHNUDAS-tunerlabs Jun 19, 2025
744b71e
Merge pull request #158 from ELEVATE-Project/develop
VISHNUDAS-tunerlabs Jun 19, 2025
aeb19c8
ReadMe-For-Entities-Mapping
MallanagoudaB Jun 25, 2025
0df6999
removed-cred
MallanagoudaB Jun 26, 2025
a776c7f
added-dic
MallanagoudaB Jun 26, 2025
b8f1959
error handling in entities/details api added
Prajwal17Tunerlabs Jun 27, 2025
b59ca58
Merge pull request #159 from ELEVATE-Project/ReadMeFileForEntities
VISHNUDAS-tunerlabs Jun 27, 2025
4024bcd
Merge pull request #160 from ELEVATE-Project/chore/error-handling
VISHNUDAS-tunerlabs Jun 27, 2025
5846882
Merge pull request #161 from ELEVATE-Project/develop
VISHNUDAS-tunerlabs Jun 27, 2025
3eb84ad
updated ansible
priyanka-TL Jun 28, 2025
ac8ca79
Merge pull request #162 from ELEVATE-Project/ansibleChange
priyanka-TL Jun 28, 2025
74d558c
new entities api created to handle aggregate pipeline query
Prajwal17Tunerlabs Jul 2, 2025
dfc6732
code-clean
Prajwal17Tunerlabs Jul 2, 2025
941f187
comments addressed
Prajwal17Tunerlabs Jul 2, 2025
300bcca
fix-for-Create-Mapping
MallanagoudaB Jul 2, 2025
b47cded
Merge pull request #164 from ELEVATE-Project/MapFix
VISHNUDAS-tunerlabs Jul 2, 2025
4b1856e
Merge pull request #165 from ELEVATE-Project/develop
VISHNUDAS-tunerlabs Jul 2, 2025
59023bf
healthCheck-for-entity
MallanagoudaB Jul 3, 2025
cba2539
safe-test
Prajwal17Tunerlabs Jul 4, 2025
6b97cac
removed unwanted code
Prajwal17Tunerlabs Jul 4, 2025
9827676
removed unused code
Prajwal17Tunerlabs Jul 4, 2025
27d0529
function signature added
Prajwal17Tunerlabs Jul 4, 2025
de89ed7
function signature updated
Prajwal17Tunerlabs Jul 4, 2025
85a4a38
comments addressed
Prajwal17Tunerlabs Jul 7, 2025
ac4b68e
comments addressed
Prajwal17Tunerlabs Jul 7, 2025
c0d15d2
added-validation
MallanagoudaB Jul 7, 2025
c7f393c
Merge pull request #163 from ELEVATE-Project/chore/new-entity-api
VISHNUDAS-tunerlabs Jul 7, 2025
e464934
Merge pull request #167 from ELEVATE-Project/develop
VISHNUDAS-tunerlabs Jul 7, 2025
5efc335
read-me-changes
MallanagoudaB Jul 8, 2025
77843a7
update-npm
MallanagoudaB Jul 9, 2025
1c64aba
update
MallanagoudaB Jul 9, 2025
c1606a8
change-in-name
MallanagoudaB Jul 14, 2025
81b42de
Merge pull request #166 from ELEVATE-Project/HealthCheck
priyanka-TL Jul 14, 2025
b652112
feat:license update
borkarsaish65 Jul 14, 2025
e086c80
updated ansible file
priyanka-TL Jul 14, 2025
94a16c9
Merge pull request #168 from ELEVATE-Project/feature/license
borkarsaish65 Jul 14, 2025
edb7749
Merge pull request #169 from ELEVATE-Project/develop
priyanka-TL Jul 16, 2025
60344fa
Merge branch 'main' into staging
VISHNUDAS-tunerlabs Jul 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ gcp1.json

dev-ops/report

config.json

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@


# entity-management
<div align="center">

# Entity Management
Expand Down Expand Up @@ -228,3 +231,4 @@ Several open source dependencies that have aided Mentoring's development:
![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)
![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=for-the-badge&logo=mongodb&logoColor=white)
![Git](https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge&logo=git&logoColor=white)

13 changes: 7 additions & 6 deletions deployment/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
#- debug: msg="{{ slurpfile['content'] | b64decode }}"
#- debug: msg="the value of foo.txt is {{ contents }}"
- name: Get vault credentials
shell: "curl --location --request GET '{{ vaultAddress }}elevate-entity-management' --header 'X-Vault-Token: {{ slurpfile['content'] | b64decode }}' | jq '.data' > '{{ project_path
}}/data2.json'"
shell: "curl --location --request GET '{{ vaultAddress }}elevate-entity-management' --header 'X-Vault-Token: {{ slurpfile['content'] | b64decode }}' | jq '.data' > '{{ project_path }}/data2.json'"
register: credentials
- debug: msg="{{ credentials }}"

- name: Get gcp credentials
shell: "curl --location --request GET '{{ vaultAddress }}gcp' --header 'X-Vault-Token: {{ slurpfile['content'] | b64decode }}' | jq '.data.data' > '{{ project_path
}}/gcp.json'"
shell: "curl --location --request GET '{{ vaultAddress }}gcp' --header 'X-Vault-Token: {{ slurpfile['content'] | b64decode }}' | jq '.data.data' > '{{ project_path }}/gcp.json'"

- name: Set some variable
set_fact:
Expand All @@ -44,7 +42,10 @@
update: yes
version: "{{ gitBranch }}"
- name: Update npm
shell: cd {{release_path}}/src && npm i && npm i redoc-cli
shell: cd {{release_path}}/src && npm i && npm i redoc-cli

- name: Get config.json
shell: "curl --location --request GET '{{ vaultAddress }}projectSurveyEntityConfig' --header 'X-Vault-Token: {{ slurpfile['content'] | b64decode }}' | jq '.data.data' > '{{ release_path }}/config.json'"

- name: Delete Old Folder
shell: rm -rf {{ current_path }} && cd {{ project_path }} && mkdir entity-management
Expand Down Expand Up @@ -84,4 +85,4 @@

- name: debug info
debug:
msg: "Pm2 log {{pm2Info}}"
msg: "Pm2 log {{pm2Info}}"
7 changes: 6 additions & 1 deletion src/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ API_DOC_URL = "/entity-management/api-doc"
IS_AUTH_TOKEN_BEARER=false

AUTH_METHOD = native #or keycloak_public_key
KEYCLOAK_PUBLIC_KEY_PATH = path to the pem/secret file
KEYCLOAK_PUBLIC_KEY_PATH = path to the pem/secret file
ADMIN_TOKEN_HEADER_NAME = admin-access-token // admin access token header name
ADMIN_ACCESS_TOKEN = ivopeiovcie-----------lvkkdvkdm // admin access token

INTERFACE_SERVICE_URL = http://localhost:5000/interface-management // interface service url
USER_SERVICE_BASE_URL = user // user service base url
201 changes: 155 additions & 46 deletions src/api-doc/api-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,25 @@ paths:
items:
type: object
properties:
metaInformation:
type: object
properties:
targetedEntityTypes:
type: array
items:
type: object
properties:
entityType:
type: string
entityTypeId:
type: string
required:
- entityType
- entityTypeId
externalId:
type: string
name:
type: string
childHierarchyPath:
type: array
items:
Expand All @@ -898,6 +917,10 @@ paths:
type: string
updatedBy:
type: string
orgIds:
type: array
items:
type: string
_id:
type: string
deleted:
Expand All @@ -913,11 +936,10 @@ paths:
type: string
code:
type: string
metaInformation:
type: object
properties:
externalId:
type: string
userId:
type: string
tenantId:
type: string
updatedAt:
type: string
createdAt:
Expand All @@ -930,25 +952,34 @@ paths:
message: ENTITY_ADDED
status: 200
result:
- childHierarchyPath:
- metaInformation:
targetedEntityTypes:
- entityType: state
entityTypeId: 683953548f365ab56c8022e9
- entityType: block
entityTypeId: 6839535b8f365ab56c8022ed
externalId: KA28
name: Karnataka
childHierarchyPath:
- district
- beat
- block
- cluster
- school
- block
createdBy: SYSTEM
updatedBy: SYSTEM
_id: 6634b0767411a605fdbaca71
createdBy: '208'
updatedBy: '208'
orgIds:
- ALL
_id: 683996e732316a1ac4f6f150
deleted: false
entityTypeId: 5f32d8228e0dc83124040567
entityType: school
entityTypeId: 683953808f365ab56c8022f5
entityType: professional_role
registryDetails:
locationId: entity123
code: entity123
metaInformation:
externalId: entity123
updatedAt: '2024-05-03T09:37:58.425Z'
createdAt: '2024-05-03T09:37:58.425Z'
locationId: KA28
code: KA28
userId: '208'
tenantId: '24'
updatedAt: '2025-05-30T11:30:47.909Z'
createdAt: '2025-05-30T11:30:47.909Z'
__v: 0
'400':
description: Bad Request.
Expand Down Expand Up @@ -979,22 +1010,26 @@ paths:
type: string
name:
type: string
entityType:
type: string
childHierarchyPath:
type: array
items:
type: string
targetedEntityTypes:
type: array
items:
type: string
examples:
sampleBodyData:
value:
externalId: entity123
name: entityName
externalId: KA28
name: Karnataka
childHierarchyPath:
- district
- beat
- block
- cluster
- school
targetedEntityTypes:
- state
- block
/v1/entities/details/{_id}?&language={code}:
get:
Expand Down Expand Up @@ -1148,8 +1183,29 @@ paths:
metaInformation:
type: object
properties:
targetedEntityTypes:
type: array
items:
type: object
properties:
entityType:
type: string
entityTypeId:
type: string
required:
- entityType
- entityTypeId
externalId:
type: string
name:
type: string
registryDetails:
type: object
properties:
locationId:
type: string
code:
type: string
childHierarchyPath:
type: array
items:
Expand All @@ -1158,6 +1214,10 @@ paths:
type: string
updatedBy:
type: string
orgIds:
type: array
items:
type: string
deleted:
type: boolean
_id:
Expand All @@ -1166,6 +1226,10 @@ paths:
type: string
entityType:
type: string
userId:
type: string
tenantId:
type: string
updatedAt:
type: string
createdAt:
Expand All @@ -1175,24 +1239,33 @@ paths:
examples:
SuccessResponse:
value:
message: ENTITY_UPDATATED
message: ENTITY_UPDATED
status: 200
result:
metaInformation:
externalId: SCH
name: school
targetedEntityTypes:
- entityType: state
entityTypeId: 683953548f365ab56c8022e9
- entityType: block
entityTypeId: 6839535b8f365ab56c8022ed
externalId: KA28
name: Karnataka
registryDetails:
locationId: rajAPSTATEDummy4
code: rajAPSTATEDummy4
locationId: KA28
code: KA28
childHierarchyPath: []
createdBy: user123
updatedBy: user123
createdBy: '208'
updatedBy: '208'
orgIds:
- ALL
deleted: false
_id: 66ea64fa68cd063346a10365
entityTypeId: 6672ce0fc05aa58f89ba12f1
entityType: state
updatedAt: '2024-09-18T10:07:39.407Z'
createdAt: '2024-09-18T05:28:26.148Z'
_id: 68395a55e5af17c215ce3408
entityTypeId: 683953808f365ab56c8022f5
entityType: professional_role
userId: '208'
tenantId: '24'
updatedAt: '2025-05-30T11:32:35.296Z'
createdAt: '2025-05-30T07:12:21.457Z'
__v: 0
'400':
description: Bad Request.
Expand All @@ -1216,26 +1289,34 @@ paths:
schema:
type: object
properties:
metaInformation.externalId:
type: string
metaInformation.targetedEntityTypes:
type: array
items:
type: object
properties:
entityType:
type: string
entityTypeId:
type: string
required:
- entityType
- entityTypeId
metaInformation.name:
type: string
childHierarchyPath:
type: array
items:
type: string
createdBy:
type: string
updatedBy:
type: string
examples:
sampleBodyData:
value:
metaInformation.externalId: SCH
metaInformation.name: school
metaInformation.targetedEntityTypes:
- entityType: state
entityTypeId: 683953548f365ab56c8022e9
- entityType: block
entityTypeId: 6839535b8f365ab56c8022ed
metaInformation.name: 'Karnataka '
childHierarchyPath: []
createdBy: user123
updatedBy: user123
/v1/entities/mappingUpload:
post:
summary: This endpoint will map its childEntity to its parentEntity
Expand Down Expand Up @@ -1628,6 +1709,34 @@ paths:
- location: body
param: query
msg: required query
parameters:
- in: query
name: page
description: Page number for pagination
schema: &ref_4
type: number
- in: query
name: limit
description: Number of documents to return per page
schema: *ref_4
- in: query
name: search
description: Optional search string for text-based filtering
schema: &ref_5
type: string
- in: query
name: aggregateValue
description: Field path to be used for aggregation
schema: *ref_5
- in: query
name: aggregateStaging
description: Whether to apply aggregation stages in the pipeline
schema: &ref_6
type: boolean
- in: query
name: aggregateSort
description: Whether to apply sorting within the aggregation pipeline
schema: *ref_6
/v1/entities/list/_id?page={page_no}&limit={page_limit}&type={entity_type}:
get:
summary: List entities based on entity id
Expand Down
Loading