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
swagger serve api.json |
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
brew tap go-swagger/go-swagger | |
brew install go-swagger |
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
friend1 = 'Sofia' | |
friend2 = 'Stefanny' | |
friend3 = 'Dada' | |
print friend3 + ' ' + friend1 | |
print friend2 + ' ' + friend1 |
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
>>> print amigas | |
('sofia', 'stefanny', 'dada', 'didi') | |
>>> print amigas[2]+ ' ' + amigas[1] | |
KeyboardInterrupt | |
>>> amigas = ('','sofia', 'stefanny', 'dada', 'didi') | |
>>> print amigas | |
('', 'sofia', 'stefanny', 'dada', 'didi') | |
>>> print amigas[2]+ ' ' + amigas[1] | |
stefanny sofia | |
>>> print amigas[4]+ ' ' + amigas[3] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<sequence name="simple-token-gen" trace="disable" xmlns="http://ws.apache.org/ns/synapse"> | |
<property description="access_token" expression="get-property('registry', 'gov:/pizzaOrderingAPI/access_Token')" name="access_token" scope="default" type="STRING"/> | |
<property description="generated_time" expression="get-property('registry','gov:/pizzaOrderingAPI/generated_Time')" name="generated-time" scope="default" type="LONG"/> | |
<property description="client_credentials" name="app-client-auth" scope="default" type="STRING" value="eDU1YVdaWV9iVUJtTXY4U3IzOXJMbWdTSmZBYTpOcGNKdUdFM1JQcldlY3NQQ0wwQ2htd2xucmNh"/> | |
<property expression="json-eval($)" name="message-body" scope="default" type="STRING"/> | |
<property expression="get-property('axis2','REST_URL_POSTFIX')" name="resource" scope="default" type="STRING"/> | |
<filter description="" xpath="get-property('SYSTEM_TIME') - get-property('generated-time') > 3600000 or get-property('access_token') = ''"> | |
<then> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<api context="/hello" name="hello" xmlns="http://ws.apache.org/ns/synapse"> | |
<resource methods="GET" uri-template="/"> | |
<inSequence> | |
<payloadFactory media-type="xml"> | |
<format> | |
<resultado xmlns=""> | |
<msg>Processamento feito com sucesso </msg> | |
</resultado> | |
</format> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@App:name('ETLStreamApp') | |
@App:description('ETL from CSV ') | |
@source(type = 'file', mode = 'line', tailing = 'false', dir.uri = 'file:/Users/edgar/Desktop/trash/poc-orizon/arquivos/IN', action.after.process = 'delete', | |
@map(type = 'csv', header = 'true', | |
@attributes(distrito = '2', endereco = '1', latitude = '7', crime = '5', dataHora = '0', codigocrime = '6', longitude = '8'))) | |
define stream CargaInicialCrimesStream (dataHora string, endereco string, | |
distrito string, crime string, codigocrime string, latitude string, longitude string); |
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
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_resource_mismatch_handler_"> | |
<payloadFactory> | |
<format> | |
<tp:fault xmlns:tp="http://test.com"> | |
<tp:code>404</tp:code> | |
<tp:type>Status report</tp:type> | |
<tp:message>Not Found</tp:message> | |
<tp:description>The requested resource (/$1) is not available.</tp:description> | |
</tp:fault> | |
</format> |
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
https://localhost:9445/bpmn/repository/process-definitions |