Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

feat(model-ad): add Java-Spring API server #2716

Closed tschaffter closed 1 week ago

tschaffter commented 1 week ago

[!IMPORTANT]
Do not merge this until #2705 is merged.

Description

Add a project for MODEL-AD REST API developed with Java-Spring and generated with the OpenAPI Generator.

The new project model-ad-api has been created by adapting the project openchallenges-challenge-service.

Features:

Changelog

Preview

Start the REST API development server

nx serve model-ad-api

Open your browser and navigate to localhost:8080 to access the Swagger UI of the API.

image

Fetch a page of genes from Swagger UI:

image

Build the image of the REST API

nx build-image model-ad-api

Start the REST API server (Docker container)

nx serve-detach model-ad-api

Open your browser and navigate to localhost:8080 to access the Swagger UI of the API.

tschaffter commented 1 week ago

@hallieswan Let's use the Java-Spring implementation for the sake of the tutorial series.