Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic: Minimal hosting and actions #32378

Closed
29 tasks done
Tracked by #27883
halter73 opened this issue May 4, 2021 · 2 comments
Closed
29 tasks done
Tracked by #27883

Epic: Minimal hosting and actions #32378

halter73 opened this issue May 4, 2021 · 2 comments
Assignees
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc area-web-frameworks Epic Groups multiple user stories. Can be grouped under a theme. feature-minimal-actions Controller-like actions for endpoint routing feature-minimal-hosting Theme: cloud native
Milestone

Comments

@halter73
Copy link
Member

halter73 commented May 4, 2021

Vision

#!/usr/bin/env dotnet run

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSqlite<Todo>(builder.Configuration["connectionString"] ?? "Data Source=todos.db");

var app = builder.Build();

// ...

// Step 5: Input validation
app.MapPost("/todos", async (Validated<Todo> inputTodo, TodoDb db) =>
{
    var (todo, isValid) = inputTodo;
    if (!isValid) return Problem(inputTodo);

    db.Todos.Add(todo);
    await Todos.SaveChangesAsync();

    return CreatedAt(routes.GetTodo.Url(todo.Id), todo);
};

app.Run();

// ...

From: #30580 User learning arc for new minimal/focused ASP.NET Core API experience

Minimal Action Feature Work

Minimal Hosting Feature Work

Minimal Hosting Bugs

Project Templates

Docs

@halter73 halter73 added area-runtime Epic Groups multiple user stories. Can be grouped under a theme. labels May 4, 2021
@halter73 halter73 added this to the 6.0.0 milestone May 4, 2021
@halter73 halter73 self-assigned this May 4, 2021
@terrajobst
Copy link
Member

Seems like this should be parented under #27883?

@JunTaoLuo JunTaoLuo self-assigned this Jun 16, 2021
@DamianEdwards DamianEdwards added this to In Progress in .NET 6.0 Jun 29, 2021
@JunTaoLuo JunTaoLuo removed their assignment Jul 9, 2021
@rafikiassumani-msft rafikiassumani-msft added this to 6-0-rc1 All in Minimal APIs 6.0 Jul 19, 2021
@rafikiassumani-msft rafikiassumani-msft moved this from Need review to User experience in Minimal APIs 6.0 Jul 19, 2021
@rafikiassumani-msft
Copy link
Contributor

Closing this epic as I moved the remaining issues to .NET7 planning milestone.

.NET 6.0 automation moved this from In Progress to Completed Sep 29, 2021
Minimal APIs 6.0 automation moved this from User experience to Done Sep 29, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
@amcasey amcasey added the area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc label Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc area-web-frameworks Epic Groups multiple user stories. Can be grouped under a theme. feature-minimal-actions Controller-like actions for endpoint routing feature-minimal-hosting Theme: cloud native
Projects
.NET 6.0
  
Completed
Development

No branches or pull requests

7 participants