Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fixercom/SpringRestService

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API

Авторы книг

POST /authors - добавление автора

Request body example:

{
    "name": "William Shakespeare"
}

GET /authors - получение авторов
GET /authors/{id} - получение автора по его id
PUT /authors/{id} - изменение автора

Request body example:

{
    "name": "Leo Tolstoy"
}

DELETE /authors/{id} - удаление автора

Издательские дома

POST /publishing_houses - добавление издательтва

Request body example:

{
    "name": "Academic press"
}

GET /publishing_houses - получение издательств
GET /publishing_houses/{id} - получение издательства по его id
PUT /publishing_houses/{id} - изменение издательства

Request body example:

{
    "name": "Springer"
}

DELETE /publishing_houses/{id} - удаление издательства

Книги

POST /books - добавление книги

Request body example:

{
  "name": "Romeo and Juliet",
  "publishingHouse": 1,
  "authors":[1,2]
}

GET /books - получение книг
GET /books/{id} - получение книги по ее id
PUT /books/{id} - изменение книги

Request body example:

{
  "name": "Updated book name",
  "publishingHouse": 7,
  "authors":[4]
}

DELETE /books/{id} - удаление книги

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.