Skip to content

Feat/data api (#522)#530

Closed
elsonlim-gt wants to merge 4 commits into
String-dxd:mainfrom
elsonlim-gt:feat/data-api
Closed

Feat/data api (#522)#530
elsonlim-gt wants to merge 4 commits into
String-dxd:mainfrom
elsonlim-gt:feat/data-api

Conversation

@elsonlim-gt

Copy link
Copy Markdown

🚀 Summary

This PR introduces the new Data API, resolving issue #522. It sets up the foundational endpoints to allow nlds to securely access training data.

✏️ Changes

  • whitelist ip and api-key to protect the apis
  • Add extract API handlers for users, collections, learning journeys, learning units, learning unit collections, and learning unit sentiments

@ivanfoong + Nic PTAL

Elson Lim added 4 commits March 27, 2026 14:36
…ange filter

- add GET /api/extract/users endpoint
- support page and pageSize query params
- support lastUpdatedStart and lastUpdatedEnd date filters
- apply internal API key and IP whitelist middleware
- add route tests for pagination, date filtering, and invalid date input
add extract API handlers and tests for users, collections, learning journeys, learning units, learning unit collections, and learning unit sentiments
centralize pagination/date/filter parsing logic into shared extract helpers
rename internal API env vars to extract API naming in config and middleware (EXTRACT_API_KEY, EXTRACT_API_ALLOWED_IPS)
remove deprecated extract hello endpoint and its tests
@nicholasjjlim

Copy link
Copy Markdown
Collaborator

closing this as this is no longer relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants