Skip to content

Commit

Permalink
#247 [Backend] Library Feedback 01/04/2023 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
fdhhhdjd committed Apr 4, 2023
1 parent 2a76a02 commit 8224569
Show file tree
Hide file tree
Showing 26 changed files with 1,689 additions and 26 deletions.
2 changes: 1 addition & 1 deletion backend-manager-student/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
allow: [],
},
],
'operator-linebreak': ['error', 'before', { overrides: { '?': 'after' } }],
'operator-linebreak': ['error', 'after', { overrides: { '?': 'before', ':': 'before' } }],
'import/prefer-default-export': 'off',
'import/no-unresolved': 'off',
'linebreak-style': ['error', process.platform === 'win64' && 'win32' ? 'windows' : 'unix'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,76 @@ components:
example: Out Of Service

#!@author Nguyễn Tiến Tài
#!created_at 04/04/2023
#!description: Create borrow book
paths:
/v1/admin/private/borrow_book/create:
post:
summary: Create Borrow_book
tags: [Create Borrow_book]
operationId: createBorrowBook
parameters:
- $ref: '#/components/parameters/COOKIE-CLIENT'
- $ref: '#/components/parameters/X-DEVICE-ID'
- $ref: '#/components/parameters/X-OS-TYPE'
- $ref: '#/components/parameters/X-OS-VERSION'
- $ref: '#/components/parameters/X-APP-VERSION'
- $ref: '#/components/parameters/X-DEVICE-NAME'
- $ref: '#/components/parameters/TOKEN'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
input:
type: object
properties:
borrow_book_input:
type: object
properties:
book_id:
type: string
example: '1475825111725506562'
user_id:
type: string
example: '1475825111725506562'
required:
- book_id
- user_id
responses:
200:
description: update success
content:
application/json:
schema:
type: object
properties:
status:
type: integer
example: 200
message:
type: string
example: Success
400:
description: Invalid input
content:
application/json:
schema:
type: object
properties:
status:
type: integer
example: 400
message:
type: string
example: Bad Request
503:
$ref: '#/components/responses/ServerFail'
#!@author Nguyễn Tiến Tài
#!created_at 08/03/2023
#!description: update borrow book
paths:
/v1/admin/private/borrow_book/update:
post:
summary: Update Borrow_book
Expand Down
Loading

0 comments on commit 8224569

Please sign in to comment.