This is a ballerina service example that works with plain text instead of JSON. This has been done to clarify a question that came up from the WSO2 LATAM Community on Slack. Join Slack Community here
Ballerina installed and configured - ballerina/0.990.3
-
Open the service path on a terminal window.
-
Execute ballerina:
run logger_service.bal
- Call ballerina service:
Using CURL:
curl -X POST -d "teste" -H "Content-Type: text/plain" http://localhost:3000/api/logger
Or using Postman