Introduction

API stands for application programming interface which basically means that we have an exposed interface that can be adressed programatically. As the internet becomes available in more and more locations around the world, the types of interfaces will become ever more prevalent. Securing an API can easily cost as much as the feature development itself and it can even cost more which is why are decided to write this article in the hopes of guiding you throughout this wild landscape and even though we are well aware that REST API's are not the only kind, they serve a specific purpose and we want to make sure the security risks are understood when implementing such a REST API.

What is a REST API

REST stands for Representational state transfer which means that it defines a programming architecture which uses the HTTP Methods. (GET/POST/DELETE/PATCH/...). Using these HTTP-method allows us to create our APIs independant of what host OS it will run on. The following poperties have to be fulfilled before we can speak of a RESTful API:

Eight security principals of secure REST APIs

Securing these REST API endpoints is no easy feat and it will often require some custom solutions but we can define a general list of API design principles which will help keep your code more secure.