Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kreipikc/golang-book-api
API for receiving, editing, and deleting data about books on PostgreSQL
https://github.com/kreipikc/golang-book-api
api gin golang gorm postgresql viper
Last synced: 14 days ago
JSON representation
API for receiving, editing, and deleting data about books on PostgreSQL
- Host: GitHub
- URL: https://github.com/kreipikc/golang-book-api
- Owner: kreipikc
- Created: 2024-10-30T21:25:20.000Z (16 days ago)
- Default Branch: master
- Last Pushed: 2024-10-31T06:24:14.000Z (15 days ago)
- Last Synced: 2024-10-31T07:21:01.861Z (15 days ago)
- Topics: api, gin, golang, gorm, postgresql, viper
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What kind of project is this?
This is a scalable API in which you can get data about books, get information about a specific book by id, record a new book, edit an existing book, delete existing books## What technologies have I used?
- Golang
- Gin (library)
- Viper (library)
- Gomn (library)
- PosgreSQL## Why did I even start creating this project?
I created this project to study the Gin library, but also during the creation I learned new things for myself, such as: _PostgreSQL_, _.env_, _viper_, _gin_, _gomn_. This is a simple project that helped me learn a lot.## How usage?
You can send requests:
- **GET** `/books/` - all info;
- **POST** `/books/` - if you send it with JSON information, then write a new book;
- **GET** `/books/id[0-9]` - info about a specific book;
- **PUT** `/books/id[0-9]` - update info about a specific book;
- **DELETE** `/books/id[0-9]` - delete info about a specific book.