Skip to content

Instantly share code, notes, and snippets.

@estiller

estiller/function.json

Last active Jul 9, 2020
Embed
What would you like to do?
Building a Custom URL Shortener Using Azure Functions and Cosmos DB - Adding the URL Redirect Endpoint
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["get"],
"route": "{vanity}"
},
{
"type": "cosmosDB",
"direction": "in",
"name": "registration",
"databaseName": "registrations",
"collectionName": "registrations",
"createIfNotExists": "true",
"connectionStringSetting": "RegistrationsDB",
"collectionThroughput": "400",
"partitionKey": "{vanity}",
"id": "{vanity}"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.