Download OpenAPI specification:Download
Core Criteria for Java API JPA 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"
}