Web Services in C#: Status, Parameters, Cookies

This entry is part 2 of 3 in the series .NET Web Services

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 … Read more

Web Service APIs in dotnet C# made easy with ApiController: Part 1

This entry is part 1 of 3 in the series .NET Web Services

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 … Read more

JSDoc configured

JSDoc is a way to put programmer documentation in Javascript code. It’s in the tradition of Doxygen , Javadoc, and C#’s documentation comments. And what a sorry tradition that is. Tools for extracting that kind of documentation and making, well, documents from it are just atrocious. (Set me straight in a comment if I’m wrong.)  … Read more

Hoarding? What? Really?

I went to Market Basket this morning to buy groceries. Market Basket, with their crew, is a major civil institution stabilizing life these days. Love ’em. There’s TP (“bog roll” to English and Scottish friends) available again. I guess the people who’ve laid in several decades’ worth of supplies have figured out they don’t need … Read more

Cloud adventures in CPAP

My dentist, the competent and honorable Dr. J. P. St. Clair, has been pestering me for more than a year saying, “You snore. I can tell by looking down your mouth. Do something about it!”  So I finally did. I took a “home sleep test” and the sleep clinic people said, yes you should do … Read more

Handling errors in nodejs and express

Many people surely know all this by now. Still, here are some things I’ve recently learned about notifying clients (browsers, API clients) about errors. Delivering errors from route handlers to clients This is remarkably easy, once you figure it out. Just use the http-errors package. (Beware, not the http-error package; it does something different. Call … Read more