Download OpenAPI specification:Download
Extension Criteria for Java, MVC, JPA and Hibernate Workshop
Create a new teacher and add them to the list
name required | string |
location required | string |
subject required | string |
email required | string |
{- "name": "Dave Ames",
- "location": "Lancashire",
- "subject": "Java",
- "email": "dave@dave.com"
}
{- "id": 1,
- "name": "Dave Ames",
- "location": "Lancashire",
- "subject": "Java",
- "email": "dave@dave.com"
}
Update the teacher with the given id in the list
id required | integer The ID of the teacher to update |
name required | string |
location required | string |
subject required | string |
email required | string |
{- "name": "Dave Ames",
- "location": "Lancashire",
- "subject": "Java",
- "email": "dave@dave.com"
}
{- "id": 1,
- "name": "Dave Ames",
- "location": "Lancashire",
- "subject": "Java",
- "email": "dave@dave.com"
}
Delete the teacher with the given id from the list and return their details
id required | integer The ID of the teacher to delete |
{- "id": 1,
- "name": "Dave Ames",
- "location": "Lancashire",
- "subject": "Java",
- "email": "dave@dave.com"
}
Create a new subject and add it to the list
id | integer |
title required | string |
level required | string |
{- "id": 1,
- "title": "Mathematics",
- "level": "Level 3"
}
{- "id": 1,
- "title": "Mathematics",
- "level": "Level 3"
}
Update the subject with the given id in the list
id required | integer The ID of the subject to update |
id | integer |
title required | string |
level required | string |
{- "id": 1,
- "title": "Mathematics",
- "level": "Level 3"
}
{- "id": 1,
- "title": "Mathematics",
- "level": "Level 3"
}