<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd" -->

---
title: How to Create Your First Minimal API with .NET 8 | daily.dev
description: Learn how to create your first Minimal API using .NET 8, perfect for newcomers or those looking to explore new features. This guide covers setting up your...
canonical: https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Create Your First Minimal API with .NET 8 | daily.dev
og:description: Learn how to create your first Minimal API using .NET 8, perfect for newcomers or those looking to explore new features. This guide covers setting up your...
og:url: https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd
og:image: https://api.daily.dev/og/posts/CA9UvBHTD.png
og:image:alt: How to Create Your First Minimal API with .NET 8
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create Your First Minimal API with .NET 8

**[Community Picks](https://daily.dev/sources/community)** · 3 min read · 52 upvotes · 1 comments

## Summary

Learn how to create your first Minimal API using .NET 8, perfect for newcomers or those looking to explore new features. This guide covers setting up your environment, creating a new project, and adding endpoints step-by-step. Minimal APIs are ideal for lightweight applications and microservices.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/leandroveiga/how-to-create-your-first-minimal-api-with-net-8-2cep>

## Community discussion

Top comments from developers on daily.dev.

**@vdinesh23** · 0 upvotes

> Nice, quickest way of creating a web API like preparing Maggi in two min.

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#.net](https://daily.dev/tags/.net), [#.net-core](https://daily.dev/tags/.net-core)

[View this post on daily.dev](https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Create Your First Minimal API with .NET 8","url":"https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd"},"datePublished":"2024-09-02T18:59:15.287Z","dateModified":"2024-11-11T07:55:56.577Z","description":"Learn how to create your first Minimal API using .NET 8, perfect for newcomers or those looking to explore new features. This guide covers setting up your...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7cdd568cbfbb9aaeaaae1321a908ac85?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7cdd568cbfbb9aaeaaae1321a908ac85?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":52},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,.net,.net-core","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"How to Create Your First Minimal API with .NET 8"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-your-first-minimal-api-with-net-8-ca9uvbhtd","comment":[{"@type":"Comment","text":"Nice, quickest way of creating a web API like preparing Maggi in two min.","datePublished":"2024-11-22T10:24:31.554Z","url":"https://daily.dev/posts/CA9UvBHTD#c-QcVUgiU5w","author":{"@type":"Person","name":"Dineshkumar","url":"https://daily.dev/vdinesh23","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"}}]}
```

