Skip to content

helenahalldiniths/JavaEnterprise_Laboration1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LAB 1 - Java Enterprise Course

ABOUT:

This is a school project (lab 1) made in the course Java Enterprise. It is a simple JAX-RS application that has one entity (student). Students can be added, deleted, updated and read.

STUDENT :

A student has 5 attributes.

  1. id
  2. firstName
  3. lastName
  4. phoneNumber
  5. email

SET-UP:

  1. Clone or Fork this projekt
  2. Download Payara to your local machine
  3. Add run-configuration:
    1. Select payara server - local
    2. Choose application server (path to payara)
    3. Add deployment (student-manager-system:war)
  4. Run your Configuration

Now you can use insomnia to send requests to the application.

ENDPOINTS:

The URL for all endpoints starts with: http://localhost:8080/student-management-system/api/v1

  1. Create a student:
{
  "firstName": "Helena",
  "lastName": "Halldin",
  "email": "example@example.com",
  "phoneNumber": "123456789"
}
  1. Find all students:
  2. Find a student by id:
  3. Find all students with a specific last name:
  4. Update a student:
{
  "firstName": "Helena",
  "lastName": "Eklund",
  "email": "example@example.com"
}
  1. Delete a student:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%