Giter Site home page Giter Site logo

course-api's Introduction

Course-Api

Build Status

Course-Api is a simple REST service for Topics and Courses.

New Features!

  • Etag support for resources.
  • Precise HTTP response codes.
  • In memory DB support - Apache Derby

Installation to clone project

  • Java 1.8.0_221
  • Apache Maven 3.5.4



Two controllers are available on this project - Topic and Course. A Topic can have multiple Courses [just like in a college]

Topic


HTTP defines a set of request methods to indicate the desired action to be performed for a given resource. The following methods are supported by the Api for Topic controller -

GET

             http://localhost:8080/topics/

GET

             http://localhost:8080/topics/Java/

POST

       URL

             http://localhost:8080/topics/

       Header

             Content-Type = Application/Json

       Body

             { "id": "OS", "name": "Operating Systems and the Kernal", "description": "Operating Systems tutorial" }

PUT

       URL

             http://localhost:8080/topics/OS

       Header

             Content-Type = Application/Json

       Body

             { "id": "OS", "name": "Operating Systems", "description": "Operating Systems tutorial" }

DELETE

             http://localhost:8080/topics/OS

Courses


The following methods are supported by the Api for Courses controller -

GET

             http://localhost:8080/topics/OS/courses/

GET

             http://localhost:8080/topics/OS/courses/Scheduling

POST

       URL

             http://localhost:8080/topics/OS/courses

       Header

             Content-Type = Application/Json

       Body

             { "id": "Scheduling", "name": "Process scheduling", "description": "Process scheduling tutorial" }

PUT

       URL

             http://localhost:8080/topics/OS/courses/Scheduling

       Header

             Content-Type = Application/Json

       Body

             { "id": "Scheduling", "name": "Process scheduling and operations", "description": "Process scheduling tutorial" }

DELETE

             http://localhost:8080/topics/OS/courses/Scheduling

Links


UI DOCS

             http://localhost:8080/course-api/swagger-ui.html

JSON DOCS

             http://localhost:8080/course-api/v2/api-docs

course-api's People

Contributors

bagurp avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.