Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Spring Boot projects could provide a sample REST endpoint #776

Open
gastaldi opened this issue Dec 19, 2016 · 2 comments
Open

Spring Boot projects could provide a sample REST endpoint #776

gastaldi opened this issue Dec 19, 2016 · 2 comments

Comments

@gastaldi
Copy link
Contributor

It would be nice if a REST endpoint could be provided as a sample when a new project is created using Project:New (when such feature is enabled)

@gastaldi gastaldi changed the title Spring Boot projects could provide an example REST endpoint Spring Boot projects could provide a sample REST endpoint Dec 19, 2016
@davsclaus
Copy link
Member

What do you mean?

You can add the actuator-web dependency and spring boot comes with /health for health check etc.

@jstrachan
Copy link
Contributor

if you use the spring boot wizard (or start.spring.io) to create a web mvc kinda app, there's no REST endpoint with a sample controller generated. So its kinda sucky for use in demos - after creating the project you have to add a bunch of code to the project to generate a controller.

So I tend to use our microservice quickstart instead - as that comes with a controller:
https://github.com/fabric8-quickstarts/spring-boot-webmvc/blob/master/src/main/java/io/fabric8/quickstarts/springbootmvc/HomeController.java

It might be nice to have a Forge wizard option that detects web-mvc and asks if you want a sample controller added

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants