Previously we’ve been talking about DTO, mostly in WebAPI controllers, but it can be used everywhere. Today last of basic topics that every developer should know about, input validation. I’m not going to try to convince you that validation is important in places where external client will put his data. It should be obvious. What’s…
Read MoreServer-side loading – AutoSFaP
Previously we’ve talked about client-side and server-side loading. As I promised before, today we’ll look at examples of server-side loading using AutoSFaP. AutoSFaP AutoSFaP or Auto Sort, Filter and Paging is nuget package I implemented when I was learning ASP.Net core WebAPI. It is very easy to use and may help you create endpoints with…
Read MoreServer-client side part 1
When your API will become public and someone will consume it, you’ll face dilemma. Should you introduce client-side filtering or server-side filtering. Client-side and Server-side are concepts well known in Web Applications. It’s choice, where should you do the work, in client browser or your server. In general it’s better to send to the client…
Read MoreSpike WebAPI
ASP.Net makes creating Web APIs as painless as possible. In this article I’ll walk you thru basics of ASP.Net Web API. You’ll learn how to setup EF Core with Web API and Swagger. Additionally I’ll go thru Student Controller which contains CRUD methods. Finally I’ll show you new features that were provided in .Net Core…
Read MoreREST API – Uniform Interface
Previously We were talking about REST API and the most important trait of REST, Statelessness. You can read it here, if you didn’t have opportunity for it. Today’s topic is uniform interface, it’s mostly about look and feel of our endpoints. Some people may say that it’s not important, these people didn’t work with poorly…
Read MoreHTTP Verbs
HTTP defines a set of request methods, I like to call them verbs, and both terms are valid. Each of HTTP Verb has its task and is different from others. Information transport HTTP Verbs are used to transport information, each of them may have three options to transport data. REST adds restriction, I’ll cover it…
Read MoreREST API – Statelessness
REST API When I was conducting a recruitment interview, I often met people who worked with Web APIs, but didn’t really know anything about it. Of course you can work with some technology, knowing only minimum that you have to know, but then you wouldn’t be here, right? Next couple posts will be about…
Read More