Giter Club home page Giter Club logo

student-management-system's Introduction

To test the app:

  1. Run in Payara or a suitable alternative.
  2. Use Insomnia or Postman to make calls to the following URL's. Please observe the requirements for each url ie QueryParams or required objects.

Note that the system will boot with no data in the database, so you must add entries to test.

Entries must be JSON formatted objects. All fields are mandatory except phoneNumber. Objects should take the following form:

{ "firstName": "String, > 2 char", "lastName": "String, > 2 char", "email": "String", "phoneNumber": "String, > 9 && < 13 char" }

URL endpoints

Base url: http://localhost:8080/student-management-system/api/v1/student

POST METHOD

Create Student: base url + /create

GET METHODS

Get All Students: base url + /getall

Get Student By ID: base url + /getbyid/{id}

Get Student(s) By Last Name: base url + /getbylastname requires QueryParam lastname

PUT METHOD

Replace Record: base url + /replace (Send a JSON object with the request. Will update record with matching id or create new if no current record with that id.)

PATCH METHODS

Update First Name: base url + /update/firstname/{id} requires QueryParam firstname

Update Last Name: base url + /update/lastname/{id} requires QueryParam lastname

Update Email: base url + /update/email/{id} requires QueryParam email

Update Phone: base url + /update/phonenumber/{id} requires QueryParam phonenumber

DELETE METHOD

Delete record: base url + /delete/{id}

student-management-system's People

Contributors

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