Skip to content

Simple API with Azure Function for create, read and delete operations for blogs

Notifications You must be signed in to change notification settings

rajan-31/Azure_Functions-Blog_API

Repository files navigation

Simple API with Azure Function for create, read and delete operations for blogs

Install dependencies

npm install

Assuming you are using VS Code and all necessary extensions are installed, if not follow Azure Functions documentation here


Start (Local)

  • Rename local.settings.sample.json to local.settings.json
  • Set "CosmosDbConnectionString" value in local.settings.json (MongoDB connection string will also work)
  • Start debugging (press F5)

Test

API endpoint will be http://localhost:7071/api/blog

Test it using something like Postman/Insomnia


POST /api/blog

body

{
	"title": "Title 1",
	"content": "ABCD"
}

GET /api/blog/{blogId}

DELETE /api/blog/{blogId}

About

Simple API with Azure Function for create, read and delete operations for blogs

Topics

Resources

Stars

Watchers

Forks