modulepackage
1.0.4
Repository: https://github.com/lgdev07/gocorreios_server.git
Documentation: pkg.go.dev
# README
GoCorreios Server
Api to serve correios services in a easy way 📖
Made with Golang 🚀
Installation and execution | Available Routes | How to contribute
🚀 Installation and execution
- Clone this repository and go to the directory;
- Rename sample .env;
🔧 Development
- Run
docker-compose up
; - Make the Requests;
🧪 Tests
- Run
docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit
;
🛣️ Available Routes
POST - Create Fare:
- /fares
Expected Json Body Request:
{
"service": "SEDEX",
"cep_destination": "09981380",
"cep_origin": "09981380",
"height": "15",
"lenght": "15",
"weight": "1",
"width": "15",
}
Expected Json Response:
{
"service": "SEDEX",
"price": "22,50",
"days_for_delivery": "3",
"deliver_home": "N",
"deliver_saturday": "S",
"obs": "O CEP de destino está temporariamente sem entrega domiciliar. A entrega será efetuada na agência indicada no Aviso de Chegada que será entregue no endereço do destinatário."
}
🤔 How to contribute
- Fork this repository;
- Create a branch with your feature:
git checkout -b my-feature
; - Commit your changes:
git commit -m 'feat: My new feature'
; - Push to your branch:
git push origin my-feature
.
After the merge of your pull request is done, you can delete your branch.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author