© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
Ernoi

Best pratice for REST-api [Answered]

I have the usual CRUD operations. I'm curious about how to do with put. I can send a id in the request body but it does not take affect in the repository cause the database will just increment the id and create a new one. So im wondering if i should have another model that that does not have the id attribute and use that one in the api instead?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Concurrent REST requests best practices if any? [Answered]
C#CC# / help
4y ago
✅ API REST
C#CC# / help
8mo ago
✅ REST Api
C#CC# / help
3y ago
❔ Source generator for creating REST Api
C#CC# / help
3y ago