https://github.com/Yunnie-pin/cloudinary-cdn-api
Cloudinary-API-GO is a simple API that allows users to upload images to Cloudinary and store the image details in a PostgreSQL database. The API is built using Go and the Gin framework. The API also includes authentication.
Key | Value |
---|---|
Authorization | {{ SECRET_AUTH }} |
Method | Endpoint | Description |
---|---|---|
POST | /api/uploader |
Upload an image to Cloudinary |
Method | Endpoint | Description |
---|---|---|
GET | /api/buckets |
Get list buckets |
POST | /api/buckets |
Create a new bucket |
POST | /api/path |
Create a new path in a bucket |
GET | /api/files/{{ bucket }}/{{ path }} |
Get list files in a bucket |
DELETE | /api/files/{{ bucket }}/{{ path }} |
Delete a file in a bucket |
- Server: Golang
- Database: PostgreSQL
- ORM: GORM
- Cloudinary: Cloudinary
- Router: Gin
go mod tidy
go run main.go --migrate
go run main.go
go build
link : https://cloudinary-cdn-api-production.up.railway.app/
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project useful, please consider giving it a ⭐️ on GitHub. Your support is greatly appreciated! 😄