DEV Community

Discussion on: The best way to make a web API

Collapse
 
nathanenglert profile image
Nathan Englert
  • C#
  • .NET Core WebAPI
  • REST
  • Postman for documentation and testing
Collapse
 
dbanty profile image
Dylan Anthony

I keep wanting to try out C#, but that requires me to spend time on Windows which I barely use 🙃.

Does .NET have a good way of exporting stuff to Postman or do you have to write your docs / tests independently of your code?

Collapse
 
dschumann profile image
dschumann

Cool thing is .Net Core doesn't run only on Windows.

Thread Thread
 
nathanenglert profile image
Nathan Englert

This! 👆👆

I do all of my C#.NET development on a Mac.

As for exporting from .NET to Postman though, I actually work the other way around. I try to define the APIs first with their request data, possible responses, etc. You can then generate server / client code from there. However, I do typically write the two separately still.

Thread Thread
 
dbanty profile image
Dylan Anthony

Right on, I’ll definitely try out C# then from the confort of my home OS :). Do you have a recommended starting point? Meaning a favorite tutorial or book or website?