-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
40 lines (38 loc) · 1 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
openapi: 3.0.0
"info":
title: LIBRARY MANAGER APIs
description: Create a book manager app which stores Books and Users data in the DB and create apis to perform crud operation on both of them.
version: 0.1.9
paths:
/book/create:
post:
tags:
- Book
summary: Create Book in DataBase.
operationId: createBook
parameters:
- name: name
type: string
in: body
required: true
description: Book name
- name: page
type: number
in: body
required: true
description: number of pages in Book
- name: price
type: number
in: body
required: true
description: Price of book
- name: authorId
type: string
in: body
required: true
description: Author of Book
responses:
"200": # status code
description: Book created Successfully
"400":
description: missing parameters