package
Version:
v0.0.0-...-e2ac41f
Opens a new window with list of versions in this module.
Published: Jan 15, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
POST /books
Create new book
DELETE /books/:id
Delete a book
GET /books
Find all books
GET /books/:id
Find a book
PUT /books/:id
Update a book
type CreateBookInput struct {
Title string `json:"title" binding:"required"`
Author string `json:"author" binding:"required"`
Year string `json:"year" binding:"required"`
}
type LoginRequest struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
}
type UpdateBookInput struct {
Title string `json:"title"`
Author string `json:"author"`
Year string `json:"year"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.