Setting up your web service Dotnet’s stuff for developing web applications includes an inheritable class called ApiController. This makes it easy to develop REST-style web services, either for standalone API servers or in the context of larger servers. To start using ApiController, however, requires navigating lots of Microsoft documentation; as of early 2020 that documentation is pretty much all machine-generated… Read more →
Series: .NET Web Services
Web Services in C#: Status, Parameters, Cookies
Status Codes Real Web services have to be able to pass back a status code. Maybe it’s a plain 200 success code, or a 404 not found code. Whatever. We have to be able to control it. Here’s how. We’ll use the NegotiatedContentResult template class in the signature for the Get method. We have to cope with the pickiness of… Read more →
Web Services in C#: Payloads: PUT, POST, PATCH
We send data to a web service via POST, PUT, or PATCH. All these web requests carry a payload: one or more items of data. How do we code these web services to accept data? Read more →