https://github.com/bulletdev/bullet-cloud-api
RESTful Go API for inventory management
https://github.com/bulletdev/bullet-cloud-api
api-rest go golang
Last synced: 9 months ago
JSON representation
RESTful Go API for inventory management
- Host: GitHub
- URL: https://github.com/bulletdev/bullet-cloud-api
- Owner: Bulletdev
- Created: 2024-11-22T17:40:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-15T00:18:09.000Z (9 months ago)
- Last Synced: 2025-04-15T02:53:29.672Z (9 months ago)
- Topics: api-rest, go, golang
- Language: Go
- Homepage:
- Size: 792 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
[](https://github.com/Bulletdev/bullet-cloud-api/actions/workflows/codeql.yml)
[](https://github.com/Bulletdev/bullet-cloud-api/actions/workflows/go.yml)
[](https://sonarcloud.io/summary/new_code?id=Bulletdev_Arremate-certo)
[](https://sonarcloud.io/summary/new_code?id=Bulletdev_Arremate-certo)
# API RESTful em Go para gerenciamento de produtos
# ✨ Recursos
CRUD completo de produtos
Armazenamento in-memory
Tratamento seguro de concorrência
Endpoints RESTful
Health check
Testes Unitários
## 🚀 Exemplo de uso
Windows:
```bash
Invoke-WebRequest -Uri http://localhost:4444/products -Method POST -Headers @{"Content-Type"="application/json"} -Body '{"name":"Notebook Gamer","description":"Notebook para jogos","price":5999.99,"category":"Eletronicos"}'
```
No linux:
```bash
curl -X POST http://localhost:4444/products \
-H "Content-Type: application/json" \
-d '{"name":"Notebook Gamer","description":"Notebook para jogos","price":5999.99,"category":"Eletronicos"}'
```
## Documentação da API
Para acessar a documentação completa da API, clique no link abaixo:
[Documentação da API no Swagger](https://app.swaggerhub.com/apis-docs/bulletcloud/Estoque/1.1)
## demonstração:

## 🛠 Tecnologias
Golang
Gorilla Mux
Sync primitives
## 📦 Instalação
Pré-requisitos
Go 1.21+
Git
Passos
```bash
git clone https://github.com/bulletdev/bullet-cloud-api.git
```
# Entrar no diretório
cd bullet-cloud-api
# Baixar dependências
go mod tidy
# Rodar aplicação
go run cmd/main.go
## 🔍 Endpoints
GET /products: Listar todos produtos
POST /products: Criar produto
GET /products/{id}: Buscar produto específico
PUT /products/{id}: Atualizar produto
DELETE /products/{id}: Deletar produto
GET /health: Verificar status da aplicação
## 🧪 Test

```bash
go test ./...
```
📄 Licença
BulletDEv all rights reserveds