Skip to content

tljbwdwor/student-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages