Anthony Corletti cloud computing. startups. music. etc.
Posts with the tag api:

Build REST APIs with Go and Gin

I’ve been building backend software applications primarily with Ruby and Python for the past five to six years, and have wanted to learn and build more with go because of it’s growing developer ecosystem, presence in cloud-native software, and general performance.

In this post, I’m going to review a simple backend api I built with gin.

Some of the topics and technologies this post will cover include, gin, gorm, and environment configs with viper.

Let’s dive in 🌊

Read more ...

Clean Rest API Error Messages with Python

A great practice in software development is clear error message communication.

Something like "An error occurred. Please try again later.", simply will not do because it’s simply easier to be explicit.

Our goal here would be to ensure that a consistent interface is communicated to our client applications regardless of request.

Tools and frameworks like Ruby-on-Rails make this really easy with it’s ActiveRecord implementation (Active record is literally a design pattern btw).

You’ll find that in most “fully featured” frameworks with ORMs like Rails, Django, Sails, etc, there is some sort of implementation that enables a clean interface for transmitting error messages, but often we don’t want to carry the bloat of these frameworks along.

Enter: types.

Read more ...