Git Product home page Git Product logo

s4-java's Introduction

s4-java

Compile and Run

You can compile with Maven

mvn package
java -jar target/s4-java-0.1.0.jar

And then call the API, for example

curl localhost:8080/student/list

API available

For Students

  1. Get List of students
  • Path: /students method GET
  • Optional: search parameters
    • firstName : String
    • lastName : String
    • classId : Integer
  • Example: /students?lastName=Gabriel&classId=1 That will return all students of classId "1" with lastName "Gabriel".
  1. Create a student
  • Path: /students method POST
  • Register the fields on the body request (firstName, lastName).
  1. Edit a student
  • Path: /students/{studentId} method PUT
  • Register the fields on the body request (firstName, lastName).
  1. Delete a student
  • Path: /students/{studentId} method DELETE

For Classes

  1. Get list of classes
  • Path /classes method GET
  • Optional: search parameters
    • code: String
    • title: String
    • description: String
    • studentId: Integer
  • Example: /classes?studentId=2 That will return al the classes that the student "2" has.
  1. Create a class
  • Path /classes method POST
  • Register the fields in the body request (code, title, description)
  1. Edit a class
  • Path: /classes/{classId} method PUT
  • Register the fields in the body request (code, title, description)
  1. Delete a class
  • Path /classes/{classId} method DELETE
  1. Register a student into a class
  • Path: /register/{classId}/{studentId} method POST

s4-java's People

Contributors

carliros 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.