https://github.com/webmasterdevlin/typescript-az-function-reverse-proxy
A reverse proxy Azure Function to JSON Placeholder API
https://github.com/webmasterdevlin/typescript-az-function-reverse-proxy
azure-functions json-placeholder-api node
Last synced: 5 months ago
JSON representation
A reverse proxy Azure Function to JSON Placeholder API
- Host: GitHub
- URL: https://github.com/webmasterdevlin/typescript-az-function-reverse-proxy
- Owner: webmasterdevlin
- License: mit
- Created: 2021-08-05T17:07:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T21:08:12.000Z (over 4 years ago)
- Last Synced: 2025-01-26T13:30:14.258Z (11 months ago)
- Topics: azure-functions, json-placeholder-api, node
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Reverse Proxy for jsonplaceholder.typicode.com
### Requirements
- proxies.json with routes
```json
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"resource": {
"matchCondition": {
"methods": ["GET", "POST"],
"route": "{resource}"
},
"backendUri": "https://jsonplaceholder.typicode.com/{resource}",
"responseOverrides": {
"response.headers.Content-Type": "application/json",
"response.headers.x-api-key": "%SECRET%"
}
}
}
}
```
### With
- fake api key setup by editing local.settings.json
- edit local.settings.json
```json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node",
"SECRET": "my_secret"
}
}
```