Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

RESTFul-WebService

In this project a RESTful Web Service has been built using Spring Framework.

Modules Used

  • Spring Boot
  • Spring Web
  • Spring Security
  • Spring Data JPA

The RESTful service is used to manage two resources - courses and topics. One or more courses can belong to a particular. The client can request information regarding any speciffic course or topic by send HTTP requests to the server. The API of HTTP requests is given below

API

For topic resource

Method TypeURLDescription
GETserver/topicsGet the list of all topics taught
POSTserver/topicsAdd a new topic from the request body to the server
PUTserver/topics/topic_idUpdate an existing topic by pulling in data from the request body
DELETEserver/topics/topic_idDelete the topic identified by topic_id

For course resource

Method TypeURLDescription
GETserver/topics/topic_id/coursesGet the list of all courses taught
POSTserver/topics/topic_id/coursesAdd a new course from the request body to the server
PUTserver/topics/topic_id/courses/course_idUpdate an existing course by pulling in data from the request body
DELETEserver/topics/topic_id/courses/course_idDelete the course identified by course

Both the topics and courses requests are protected by Spring Security. Use username (sayan) and password (password) to access these resources

Database

The Database used is H2.

Installation

This is an eclipse project . You can easily compile it with maven.

Running

After building with maven, locate the jar filed created and simple run it using java -jar command. As simple as that :)

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages