Sign inSign up

eclark450/java-rest-basic-skeleton

By eclark450

•Updated over 7 years ago

simple java skeleton with swagger

Image
0

953

eclark450/java-rest-basic-skeleton repository overview

⁠Get Started with DSS's Spring Boot Java Basic REST Template

⁠Purpose

This project kick-starts development of a Basic CRUD REST API (supporting simple example HTTP GET, POST, PUT, and DELETE endpoints). The endpoints manage a simple static list of employee data. Requests may be made to fetch a JSON description of all employees or an ID specified employee. Requests may also be made to delete a specified employee, add a new employee, or update employee information.

⁠Prerequisites

⁠Setup

The first thing to do is to clone this project via the appropriate git command.

For Eclipse Developers:

  • Install SpringBoot Tools plugin: "Help / Eclipse Marketplace ..." and search for "Spring Tool"
  • Import project into Eclipse workspace: "File / Import ...", "Existing Maven Project".
  • You may also need to clean project and/or run Maven update if the project shows any errors.

For Intellij Developers:

  • Import project into Intellij workspace
  • Choose "Edit configurations..." from the dropdown next to the play button.
  • Press the green "+" sign in the upper left-hand corner.
  • Choose to create a maven configuration.
  • Name it.
  • Add "spring-boot:run" to the "Command line" entry.
  • Click on the green "+" sign again
  • Click "spring boot"
  • Select main class: edu.mayo.odn.rest.Application

⁠Running the project

In Eclipse, right-mouse menu on the project - click on "Run As / SpringBoot Application". You may also run the project on a Tomcat server managed by Eclipse - "Run As / Run on Server".

In Intellij, run "Application" class.

⁠Swagger UI

The project has built-in Swagger UI to view and try out the REST services. Use the following to open the Swagger UI: Swagger UI⁠

⁠Additional Info

You may notice the two maven files in the project: "mvnw" and "mvnw.cmd". These are for anyone who wants to use Maven CLI without having it available globally.

⁠Support Contact

DL RST Tusken Raiders

⁠Last Updated

4/12/2019

Tag summary

Content type

Image

Digest

Size

245.8 MB

Last updated

over 7 years ago

docker pull eclark450/java-rest-basic-skeleton