Skip to content

Include schemas endpoints#105

Merged
jeroenrinzema merged 1 commit intomainfrom
feat/datapaths
Dec 18, 2025
Merged

Include schemas endpoints#105
jeroenrinzema merged 1 commit intomainfrom
feat/datapaths

Conversation

@jeroenrinzema
Copy link
Copy Markdown
Contributor

Include new endpoints for the users and events schemas.

@jeroenrinzema jeroenrinzema requested review from JelgerDijkgraaf and Copilot and removed request for JelgerDijkgraaf December 18, 2025 14:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces new endpoints for retrieving schema information for users and events in the Lunogram platform. It adds two new GET endpoints that return structured schema data, enabling the frontend to understand the available data fields and their types for both user profiles and event tracking.

Key changes:

  • Added ListUserSchemas endpoint to retrieve all user data schema paths
  • Added ListEvents endpoint to retrieve events with their associated schema paths
  • Implemented store layer methods to fetch schema data from the database

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
services/nexus/internal/store/users.go Added UserSchema struct and ListUserSchemas method to query user schema paths
services/nexus/internal/store/events.go Added Event struct and ListEvents method to query events with aggregated schema paths
services/nexus/internal/http/controllers/v1/management/users.go Implemented ListUserSchemas controller handler with authentication and response mapping
services/nexus/internal/http/controllers/v1/management/events.go Created new EventsController with ListEvents handler for events schema retrieval
services/nexus/internal/http/controllers/v1/management/users_test.go Added comprehensive tests for ListUserSchemas endpoint covering success, empty, and unauthorized cases
services/nexus/internal/http/controllers/v1/management/events_test.go Added comprehensive tests for ListEvents endpoint covering success, empty, and unauthorized cases
services/nexus/internal/http/controllers/v1/management/controller.go Integrated EventsController into main controller struct
services/nexus/internal/http/controllers/v1/management/oapi/resources.yml Defined OpenAPI specifications for both new endpoints with schemas
services/nexus/internal/http/controllers/v1/management/oapi/resources_gen.go Generated Go code from OpenAPI spec including types, client methods, and server interfaces

@jeroenrinzema jeroenrinzema merged commit 2c36cdd into main Dec 18, 2025
4 checks passed
@jeroenrinzema jeroenrinzema deleted the feat/datapaths branch December 18, 2025 15:08
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