added ML engineer endpoints and corrected the run.sh script#2
Open
AmjedAlsadig wants to merge 1 commit intoalpha_prototypefrom
Open
added ML engineer endpoints and corrected the run.sh script#2AmjedAlsadig wants to merge 1 commit intoalpha_prototypefrom
AmjedAlsadig wants to merge 1 commit intoalpha_prototypefrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ML Engineer Endpoints & Swagger DocumentationDescription
This PR implements the core API requirements for the ML Engineer role, allowing them to query annotation projects, labels, and download images It also adds detailed Swagger documentation for these new endpoints.
Key Changes
1. New ML Engineer Endpoints:
GET /api/ML-Engineer/projects: Returns a full manifest of all projects, including their assigned label types and image lists.GET /api/ML-Engineer/label-types: Returns the dataset ontology (all available label schemas).POST /api/ML-Engineer/images/labels: Bulk retrieval of ground-truth labels.GET /api/ml/images/:id/download: Binary Download Proxy.2. Storage Layer Updates:
getEnrichedAnnotationsByImageIds: Performs SQL joins betweenannotations,labelClasses, andlabelstables.getAllProjectsWithManifest: Aggregates project metadata with image counts and label definitions.3. Documentation:
routes.tsso these endpoints appear correctly in the Swagger UI with testable example bodies (e.g., for the bulk ID list).How to Test
npm run dev.http://localhost:5006/api-docs.ml_engineerrole. when you login you receive a token which you should send for all the requests; to do so copy the token and paste it in lock icon button which will show a for to input the authorization token.Related Requirements