Skip to content

Commit

Permalink
4.8.18 dev (sunbird-cb#124)
Browse files Browse the repository at this point in the history
* user event batch enroll api

* UserEventEnrollmentList API added (sunbird-cb#116)

Co-authored-by: SaipradeepR <[email protected]>

* KB-7057 | Q6 | Nation Learning Week | API for event state update

1. Whitelisted api .

* user event read

* KB-7057 | Q6 | Nation Learning Week | API for event state update (sunbird-cb#120)

1. Event api kong updated.

* user event state read api (sunbird-cb#122)

* event progress api changes (sunbird-cb#123)

---------

Co-authored-by: shankaragoudab <[email protected]>
Co-authored-by: sureshece16 <[email protected]>
Co-authored-by: Arpitha <[email protected]>
Co-authored-by: SaipradeepR <[email protected]>
Co-authored-by: tarentomaheshvakkund <[email protected]>
  • Loading branch information
6 people authored Oct 16, 2024
1 parent c9b0307 commit b97b08f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/proxies_v8/proxies_v8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,3 +1100,7 @@ proxiesV8.use('/national/learning/week/insights',
// tslint:disable-next-line: max-line-length
proxyCreatorSunbirdSearch(express.Router(), `${CONSTANTS.KONG_API_BASE}/national/learning/week/insights`)
)

proxiesV8.use('/eventprogress/*',
proxyCreatorSunbird(express.Router(), `${CONSTANTS.KONG_API_BASE}`)
)
41 changes: 41 additions & 0 deletions src/utils/whitelistApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4679,6 +4679,42 @@ export const API_LIST = {
ROLE.CBP_ADMIN,
],
},
'/proxies/v8/user/events/list/:uid': {
checksNeeded: [CHECK.ROLE],
// tslint:disable-next-line: object-literal-sort-keys
ROLE_CHECK: [
ROLE.PUBLIC,
],

},
'/proxies/v8/event/batch/enroll': {
checksNeeded: [CHECK.ROLE],
// tslint:disable-next-line: object-literal-sort-keys
ROLE_CHECK: [
ROLE.PUBLIC,
],
},
'/proxies/v8/eventprogress/v1/event/state/update': {
checksNeeded: [CHECK.ROLE],
// tslint:disable-next-line: object-literal-sort-keys
ROLE_CHECK: [
ROLE.PUBLIC,
],
},
'/proxies/v8/user/event/read/:id': {
checksNeeded: [CHECK.ROLE],
// tslint:disable-next-line: object-literal-sort-keys
ROLE_CHECK: [
ROLE.PUBLIC,
],
},
'/proxies/v8/user/event/state/read': {
checksNeeded: [CHECK.ROLE],
// tslint:disable-next-line: object-literal-sort-keys
ROLE_CHECK: [
ROLE.PUBLIC,
],
},
},
URL_PATTERN:
[
Expand Down Expand Up @@ -5282,5 +5318,10 @@ export const API_LIST = {
'/proxies/v8/operationalreports/v2/download/:rootOrgId',
'/proxies/v8/storage/v1/uploadCiosLogsFile',
'/proxies/v8/storage/v1/downloadCiosLogs/:fileName',
'/proxies/v8/user/events/list/:uid',
'/proxies/v8/event/batch/enroll',
'/proxies/v8/eventprogress/v1/event/state/update',
'/proxies/v8/user/event/read/:id',
'/proxies/v8/user/event/state/read',
],
}

0 comments on commit b97b08f

Please sign in to comment.