Skip to content

Instantly share code, notes, and snippets.

@estiller
Last active July 9, 2020 20:11
Embed
What would you like to do?
Building a Custom URL Shortener Using Azure Functions and Cosmos DB - Authoring the URL Registration Endpoint
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["post"],
"route": "register"
},
{
"type": "http",
"direction": "out",
"name": "res"
},
{
"type": "cosmosDB",
"direction": "out",
"name": "registration",
"databaseName": "registrations",
"collectionName": "registrations",
"createIfNotExists": "true",
"connectionStringSetting": "RegistrationsDB",
"partitionKey": "/id",
"collectionThroughput": "400"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment