title | description | tags |
---|---|---|
Gonverter |
A simple web service to convert between different file formats |
+ json + golang + protobuf |
This simple mirco service is used to convert data formats.
- json to protobuf
- Connect to your Railway project
railway link
- Start the development server
railway run go run app/api/*.go
Send a request to the service with the following format:
curl --location 'http://YOURDOMAIN.railway.com/json2protobuf' \ # replace with your railway url
--header 'Content-Type: application/json' \
--data './tests/fixtures/person.json'
docker build -t gonverter .
docker run -d -p 8080:8080 gonverter
curl --location 'http://0.0.0.0:8080/json2protobuf' \
--header 'Content-Type: application/json' \
--data './tests/fixtures/person.json'
Content-Type: application/octet-stream
Body: test [email protected]