Empty Space
  • Home
  • Resume
  • Posts
  • Personal
  • Code
Sign in Subscribe
code

.NET HTTPS RESTful API call

  • Robin Michael

Robin Michael

27 Mar 2019
Share

Because .NET Core 2.2 has switched over to serving from https by default on port 5001 which can be a problem when you are debugging locally use cURL and jq for API testing from the command line

Following is from the default WebAPI project

curl -X GET https://localhost:5001/api/values -H 'cache-control: no-cache' --insecure | jq '.'

Sign up for more like this.

Enter your email
Subscribe

Serializing Dataclasses

As I am working with dataclass and wanting to return the values in a simplified serialized format that AWS Lambda and other brittle response wrappers can handle. Lambda is able to handle the base class of dict[str, str] as serializable, I wrote this helper method to perform recursive serialization.
30 Aug 2026 1 min read

Environment Settings, overload helper

I am working with environment variables because the current application I am building is a 12 factor application adherent and while messing with the .env files and or actual os/user environment variables it can get a bit confusing so I wrote this helper class to load the application variables
26 Aug 2026 1 min read

Immutable Data - Python

Object oriented programming is built around the encapsulation of state transitions to occur with in the data objects. For example in the below Tracker class I want to hold a variable that describes the current version of the object. @dataclasses.dataclass class Tracker: version: int = 0 def update_version(self)
23 Aug 2026 2 min read
Empty Space © 2026
Powered by Ghost