Skip to content

Add REST API with JAX-RS/OpenAPI annotations and endpoint tests#46

Open
stalep wants to merge 1 commit intoHyperfoil:mainfrom
stalep:rest_ready
Open

Add REST API with JAX-RS/OpenAPI annotations and endpoint tests#46
stalep wants to merge 1 commit intoHyperfoil:mainfrom
stalep:rest_ready

Conversation

@stalep
Copy link
Copy Markdown
Member

@stalep stalep commented Apr 7, 2026

Make h5m ready for a React frontend by adding REST endpoints to existing service interfaces.

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@barreiro barreiro left a comment

Choose a reason for hiding this comment

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

I think the REST endpoints should be defined in their own classes. otherwise the CLI will have to pull in all the web dependencies.

My plan was to have *Resource classes in a new package where the endpoints are defined, leaving the *ServiceInterface as normal java interfaces.

@stalep stalep force-pushed the rest_ready branch 2 times, most recently from c6962fb to 43e8db3 Compare April 16, 2026 13:56
@stalep stalep requested review from barreiro and Copilot April 16, 2026 13:56
@stalep
Copy link
Copy Markdown
Member Author

stalep commented Apr 16, 2026

I agree with your suggestion @barreiro! I updated the pr, now I created the endpoints in separate classes in the rest folder. Can you have another look?

This comment was marked as outdated.

This comment was marked as outdated.

Separates JAX-RS/OpenAPI annotations from service interfaces so the CLI
does not pull in web dependencies. Each *ServiceInterface is now a plain
Java interface; REST routing lives in *Resource classes in the new rest package.
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.

3 participants