Last active
January 27, 2024 22:35
-
-
Save Miron-Anosov/d655fd049d250d46f3f5fd09d268ecee to your computer and use it in GitHub Desktop.
YAML format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is an endpoint for patch info about book by ID | |
--- | |
tags: | |
- Books | |
parameters: | |
- in: path | |
name: id | |
schema: | |
type: integer | |
required: true | |
description: ID books | |
- in: body | |
name: dataBook | |
description: data for a book | |
required: true | |
schema: | |
type: object | |
properties: | |
first_name: | |
type: string | |
last_name: | |
type: string | |
middle_name: | |
type: string | |
description: middle_name may be an empty string | |
title: | |
type: string | |
responses: | |
200: | |
description: Book is updated. | |
schema: | |
type: array | |
items: | |
$ref: '#/definitions/Book' | |
400: | |
description: Validator Error | |
description: You can update a book in database. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment