Submit templates for repl.it/templates here.

← Back to all posts
REST API with Spring Boot
h
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
Shadowgarden
ChrisTrevarthen
BabuBabuB
trentsmith1
iamdejan
shervinafshar
Belhmidi
nervers1
Comments
hotnewtop
ronaldcornet

This is really helpful. Thanks a lot!

trentsmith1

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

ChrisTrevarthen

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

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

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.

trentsmith1

Thank you chris!!! @ChrisTrevarthen

ShubhanshuRao

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

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?