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
openapi: 3.0.2 | |
info: | |
title: OperacoesBancarias | |
version: 1.0.0 | |
description: API de Pagamento | |
paths: | |
/clientes: | |
summary: Path used to manage the list of clientes. | |
description: >- | |
The REST endpoint/path used to list and create zero or more `Clientes` entities. This path |
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="sequence-fault" trace="disable" xmlns="http://ws.apache.org/ns/synapse"> | |
<log level="full"> | |
<property name="text" value="An unexpected error occured"/> | |
<property name="message" expression="get-property('ERROR_MESSAGE')"/> | |
</log> | |
<payloadFactory media-type="xml"> | |
<format> | |
<error xmlns=""> | |
<msg>$1</msg> |
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
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:v2.2" | |
container_name: "traefik" | |
command: | |
- "--log.level=DEBUG" | |
- "--api.insecure=true" | |
- "--providers.docker=true" |
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.