Skip to content
← Back to Community
REST API with Spring Boot
Profile icon
h
has Hacker Plan
ChrisTrevarthen

I wanted to create a template for simple REST APIs using Java and Spring Boot so that I could collaborate without having to use screen sharing on a desktop IDE.

This template starts with simple GET and POST calls that you can extend to build and test out your own API. Once running, you can access the API using the preview URL in the repl.

The template uses Maven for dependency management, so you can add more third party libraries as needed.

See the README to get started running your own API.

For more info on how to build APIs with Spring Boot, check out these tutorials.

Voters
Profile icon
Miguel-Angel552
Profile icon
gnujavasergio
Profile icon
Tamimhakimi
Profile icon
index1
Profile icon
Shadowgarden
Profile icon
ChrisTrevarthen
Profile icon
trentsmith1
Profile icon
iamdejan
Profile icon
shervinafshar
Profile icon
Belhmidi
Comments
hotnewtop
Profile icon
ronaldcornet

This is really helpful. Thanks a lot!

Profile icon
trentsmith1

great now we need to implement it with hibernate to get a full backend :D

Profile icon
ChrisTrevarthen

@trentsmith1 Now that repl has DBs, I can definitely look into it!

Profile icon
trentsmith1

awesome!!! let me know if I can help with anything it would be nice to have some sort of online idle with sql/backend support
@ChrisTrevarthen

Profile icon
ChrisTrevarthen

@trentsmith1 the SpringBootApplicationStarter repl now supports a HSQL database! Check out the README for how to set it up and please feel free to ask any questions.

Profile icon
trentsmith1

Thank you chris!!! @ChrisTrevarthen

Profile icon
ShubhanshuRao

It is showing not able to run "Main.java" file is missing

Profile icon
ChrisTrevarthen

@ShubhanshuRao Hi, thanks for pointing that out. I just configured it to run when you press the Run button - could you please try again?