Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created December 5, 2021 01:33
Show Gist options
  • Save icebeam7/8199e45f4356f83c82daac30b7138c65 to your computer and use it in GitHub Desktop.
Save icebeam7/8199e45f4356f83c82daac30b7138c65 to your computer and use it in GitHub Desktop.
{
"bindings": [
{
"authLevel": "anonymous",
"name": "req",
"type": "httpTrigger",
"direction": "in",
"route": "update-student/{id}/{faculty}",
"methods": [
"get",
"post"
]
},
{
"name": "$return",
"type": "http",
"direction": "out"
},
{
"name": "outputDocument",
"direction": "out",
"type": "cosmosDB",
"databaseName": "studentsdb",
"collectionName": "students",
"connectionStringSetting": "universitylb7_DOCUMENTDB",
"partitionKey": "/faculty"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment