Skip to content

Sudarshan-Gowda/Spring-Mvc-Restfull-WebServices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Restful Sample Application

Running Spring rest locally

You can then access Restfull here: http://localhost:8080/

In case you find a bug/suggested improvement for Spring Restfull Webservices

Our issue tracker is available here: https://github.com/Sudarshan-Gowda/Spring-Mvc-Restfull-WebServices/issues

Working with Rest in Eclipse

prerequisites

The following items should be installed in your system:

  • Eclipse - Mars/Oxygen
  • Server - Wildfly 8/10
  • Postman

Steps:

  1. Download this Project and do maven import.
git clone https://github.com/Sudarshan-Gowda/Spring-Mvc-Restfull-WebServices
  1. To Import the Praject Using Eclipse or STS
File -> Import -> Maven -> Existing Maven project

Looking for something in particular?

Spring Boot Configuration Class or Java property files
The Main Class SpringRestfullWebServiceController
Properties Files application.properties

Steps to test the application:

  1. Once the application is installed properly, Run the application
  2. Hit the request from postman. In this project mainly two methods where covered (GET/POST). a) For GET method no need to send any data(Json) as a postman request b) For POST method need to send the data in Json format. The sample json data is mentioned in the below file.|Sample JSON format data |sample-json| (https://github.com/Sudarshan-Gowda/Spring-Mvc-Restfull-WebServices/tree/master/sample-json.txt)

User reference or guide.

  1. Application Landing Page:

  1. Json Format Data

  1. Postman Get Data

  1. Postman Post data

Contributing

The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.