bitScry

  • Home
  • About
  • Blog
  • Contact

API

About this site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Mocking Hangfire BackgroundClient Jobs
  • Running Shinobi CCTV on a Raspberry Pi
  • Visual Studio CoreCLR Error
  • Adding Healthchecks to a .NET Core 6 API
  • Getting Location From IP Address
Tag Cloud

.NET .NET Core AAD API appsettings.json ASP.NET Core Authentication Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Cloud Storage Console Application CSS CSV DataTable Dependency Injection Dictionary Enum Extension Google GZip HTML Image JavaScript jQuery JSON List MVC MVC 6 Newtonsoft RestSharp Serilog SFTP SQL Stored Procedure Stream Table Table Storage Web App Web Application WordPress

Programming

Adding Healthchecks to a .NET Core 6 API

Adding healthchecks to your APIs is generally a good idea as it can provide some useful information about the status of your services. There’s a lot of good guides about how to do this including the offical Microsoft documentation but there’s fewer guides on how to set up your own Read more…

By Shinigami, 4 months ago
Programming

Getting Location From IP Address

There’s a few APIs available which allow you to provide an IP address and to retrieve details back about it including it’s aproximate location. I was previously using ipstack for this but their free tier is pretty poor as it only provides 100 calls a month so I moved over Read more…

By Shinigami, 5 months ago
Programming

Deploying a .NET Core Windows Site to Docker

I’ve started to learning about Docker and as part of that process I’ve initially been trying to just deploy a simple test API to a locally running Docker container. In order to get a basic proof-of-concept site up and running I first created a new ASP .NET Core Web API Read more…

By Shinigami, 5 months15 March 2022 ago
Programming

Using OData with Entity Framework

OData is an open protocol for enabling interaction with a datasource in a standardised way via a RESTful API. Theoretically using OData in combination with Entity Framweork should provide a simple way of providing access to SQL (or other) data via API, this is indeed the case but setting things Read more…

By Shinigami, 2 years7 April 2020 ago
Programming

Using OData with Bootstrap Table

Bootstrap Table is the best way I’ve found of adding additional functionality to HTML tables. One of the nice features about it is that it will load data from a URL if it’s provided in the correct JSON format which allows the data provision to be decoupled from the page Read more…

By Shinigami, 2 years3 April 2020 ago
Programming

Streaming API Data into SQL

As part of a recent project I’ve had to download a gzipped file of product details from a client endpoint and to load these products into a local SQL database. Although this is easy enough to do in discrete synchronous steps as below what I really wanted to do was Read more…

By Shinigami, 3 years19 December 2019 ago
Programming

Creating a Client for Accessing an API in .NET Core

While there seems to be plenty of resources and guides out there to help users create an API there seems to be much less guidance on how to create a client for accessing an API. I’m fine with calling an API using HttpClient or through a library such as RestSharp Read more…

By Shinigami, 3 years14 November 2019 ago
Azure

Disabling Signup in the Azure API Management Developer Portal

I’ve recently started getting to grips with the API Management service in Azure which seems to be a good way of managing access to resources and to document their usage. Part of this is the Developer Portal which acts as a centralized store of knowledge for using your APIs which Read more…

By Shinigami, 3 years7 November 2019 ago
Azure

Getting Azure Web App Details from the Management API

There’s a pretty comprehensive set of APIs available for interacting with Azure resources but unfortunately these seem to be so new that there’s not really much documentation around on how to use them. For an example of the information that can be returned by these APIs you can use the Read more…

By Shinigami, 3 years2 May 2019 ago
Programming

Using IdentityServer4 for API Authentication

IdentityServer4 is an OpenID Connect and OAuth 2.0 framework for ASP.NET Core 2 which can be used to manage authentication for web applications. In my case I wanted to set up OAuth 2.0 authentication using a SQL backend for an API, this isn’t too tricky when you know what you’re Read more…

By Shinigami, 4 years13 December 2018 ago

Posts navigation

1 2 Next
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle