Download OpenAPI specification:Download
Core Criteria for Java API, JPA and Hibernate Part 2
Create a new Publisher
name required | string |
location required | string |
{- "name": "Penguin",
- "location": "London"
}
{- "id": 1,
- "name": "Penguin",
- "location": "London"
}
Update the specified publisher
id required | integer The ID of the publisher to update |
name required | string |
location required | string |
{- "name": "Penguin",
- "location": "London"
}
{- "id": 1,
- "name": "Penguin",
- "location": "London"
}
Create a new Book
title required | string |
genre required | string |
author_id required | integer |
publisher_id required | integer |
{- "title": "2001: A Space Odyssey",
- "genre": "Science Fiction",
- "author_id": 1,
- "publisher_id": 1
}
{- "id": 1,
- "title": "2001: A Space Odyssey",
- "genre": "Science Fiction",
- "author_id": 1,
- "publisher_id": 1
}
Update the specified book
id required | integer The ID of the book to update |
title required | string |
genre required | string |
author_id required | integer |
publisher_id required | integer |
{- "title": "2001: A Space Odyssey",
- "genre": "Science Fiction",
- "author_id": 1,
- "publisher_id": 1
}
{- "id": 1,
- "title": "2001: A Space Odyssey",
- "genre": "Science Fiction",
- "author_id": 1,
- "publisher_id": 1
}