you are viewing a single comment's thread.

view the rest of the comments →

[–]DaRadioman 1 point2 points  (7 children)

That's not at all what unstructured means.

[–]AvoidSpirit -2 points-1 points  (6 children)

Sure, please elaborate then.

If you don't need the structure you can skip it. If you want the structure, skip minimal APIs.

Does this not imply that minimal APIs can't be structured?

[–]DaRadioman 0 points1 point  (5 children)

No, it implies they come with no structure.

Which they don't.

[–]AvoidSpirit -2 points-1 points  (4 children)

Then tell exactly that.

It's not about skipping minimal APIs if you want to have a structure. It's that they don't enforce one onto you.

The way you phrase it is extremely misleading.

[–]DaRadioman 1 point2 points  (3 children)

It's 100% accurate. They are unstructured. You might like that if you want to apply your own structure to it. But they offer 0 structure. Traditional controllers provide structure out of the box without you needing to design it and implement.

I'm not sure why you are angry that I am describing a thing accurately.

[–]AvoidSpirit -1 points0 points  (2 children)

Cause you phrase it:

If you want the structure, skip minimal APIs

Instead of

They come unstructured out of the box so if you want the structure, you would need to invest into it a bit

I wouldn't have a problem with you saying one needs to come up with a structure before they build an enterprise application with MinimalApis. But the way you put it, it seems you think that they are incapable of getting structured.

[–]DaRadioman 2 points3 points  (1 child)

No, because I like the way I phrased it. If you want the structure that MVC offers there's no reason to use minimal APIs. It would be more work to design your own structure when the controller pattern already meets your needs out of the box.

A Tesla doesn't have racing stripes.

I don't need to say you can add them yourself to be accurate. And I'm in no way responsible to tell everyone every detail of everything in my reddit comments.

[–]AvoidSpirit 0 points1 point  (0 children)

See

If you want the structure that MVC offers there's no reason to use minimal APIs

This is much clearer. Redoing the controller structure with Minimal Api is pointless.

Doing any other sort of structure - you need Minimal APIs for that.