News for hackers. Stuff that matters.
Re:Minimal APIs at a glance in .NET 6 by flohofwoe on Monday September 13, 2021 @06:18AM (#28509615)
Translation for non-web-people: how to write a minimal web service in dotNET. I probably missed when the acronym "API" was hijacked by the web people to describe a custom web service protocol.
Re:Minimal APIs at a glance in .NET 6 by ptx on Monday September 13, 2021 @06:33AM (#28509724)
I think the point is that the .NET API for writing a minimal web service is now more minimal, thanks to being designed around lambdas instead of heavy use of OOP. The web server API is just an example of this style of .NET API.
Re:Minimal APIs at a glance in .NET 6 by lghh on Monday September 13, 2021 @10:20AM (#28511841)
Considering these are http wrappers around program A (the web service) that allows program B (a client) to interact with program A, I'd say API is the correct term for what this is.
Re:Minimal APIs at a glance in .NET 6 by nodejs_rulez_1 on Monday September 13, 2021 @08:42AM (#28510755)
Yeah, it's like 'front-end' by default means a bunch of js and html mashed together, rather than native UI.
Re:Minimal APIs at a glance in .NET 6 by inshadows on Monday September 13, 2021 @07:11AM (#28509995)
Also the word "public" is missing. Cute examples, but I guess you're supposed to set up firewall for auth.
Re:Minimal APIs at a glance in .NET 6 by oaiey on Monday September 13, 2021 @12:31PM (#28513489)
You can just add auth middleware in there. This is still full fledged ASP.NET Core. They just wire it up using a different style. There is a chapter in the referenced gist about adding middleware.

But I guess you more meant the example than the actual tech.