Created
April 21, 2019 00:21
-
-
Save ggondim/5cdd31d3d211dd2ba132fd551e207a02 to your computer and use it in GitHub Desktop.
Azure Function proxy para o site de vagas da NOALVO
This file contains hidden or 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
{ | |
"$schema": "http://json.schemastore.org/proxies", | |
"proxies": { | |
"listar vagas": { | |
"matchCondition": { | |
"route": "/listarvagas" | |
}, | |
"backendUri": "https://api.airtable.com/v0/IDDASUABASEAQUI/Vagas?fields%5B%5D=T%C3%ADtulo&fields%5B%5D=Imagem&fields%5B%5D=slug&filterByFormula=%7BStatus%7D%3D%22Aberta%22", | |
"requestOverrides": { | |
"backend.request.headers.Authorization": "Bearer SUACHAVEAQUI" | |
}, | |
"responseOverrides": { | |
"response.headers.Cache-Control": "max-age=10800;", | |
"response.headers.Access-Control-Allow-Origin": "*" | |
} | |
}, | |
"obter vaga": { | |
"matchCondition": { | |
"route": "/obtervaga/{vaga}" | |
}, | |
"backendUri": "https://api.airtable.com/v0/IDDASUABASEAQUI/Vagas?fields%5B%5D=T%C3%ADtulo&fields%5B%5D=slug&fields%5B%5D=Requisitos+obrigat%C3%B3rios&fields%5B%5D=Link%CTA&fields%5B%5D=Imagem&filterByFormula=AND(%7BStatus%7D%3D%22Aberta%22%2C+%7Bslug%7D%3D%22{vaga}%22)&maxRecords=1", | |
"requestOverrides": { | |
"backend.request.headers.Authorization": "Bearer SUACHAVEAQUI" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment