Last active
November 27, 2017 19:47
-
-
Save edgars/b7e30c6078ad8aee52d61d975dec6ce6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gateways; | |
import ballerina.net.http; | |
@http:configuration {basePath:"/fipe"} | |
service<http> fipe { | |
endpoint | |
<http:HttpClient> httpConnector{ | |
create http:HttpClient("https://fipe.parallelum.com.br/api/v1", {}); | |
} | |
http:HttpConnectorError err; | |
} | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment