28 tools to design, build and host your API
Tags: api, rest, webdev, programming
Published: 2020-07-31 10:30:45

---
title: 28 tools to design, build and host your API
published: true
date: 2020-07-29 09:35:48 UTC
tags: API, rest, webdev, programming
canonical_url: https://linx.software/28-api-tools-to-design-build-and-host-your-next-api/
---

APIs can be as simple as 1 endpoint for use by 100s of users or as complex as the AWS APIs with 1000s of endpoints and 100s of thousands of users. Building them can mean spending a couple of hours using a low-code platform or months of work using a multitude of tools. Hosting them can be as simple as using one platform that does everything we need or as complex as setting up and managing ingress control, security, caching, failover, metrics, scaling etc.

What they all have in common are three basic steps to go from nothing to a running API.

| *Step* |  *Input* | *Output* |
| ------------- |:-------------:| -----:|
| Design | User requirements | Specification e.g. OpenAPI3 |
| Build | Design specification | Working code |
| Host | Working code | API live 24×7 |

Each of these steps has its own [set of tools](https://linx.software/6-tools-for-api-design-development-and-testing/). Here are some I’ve used and popular alternatives.


#   Design

REST is the most popular API interface and has the best tooling. Our design output for REST services always includes an [OpenAPI](https://swagger.io/specification/) specification. The specification language can be tricky to get right in JSON (how many curly brackets?) or YAML (how many spaces?) so a good editor saves a lot of time. Four popular ones are:

- [Swagger](https://swagger.io/) 
- [Postman](https://www.postman.com/) 
- [Insomnia](https://dev.to/scottw/insomnia-rest-client-578d-temp-slug-9682618) 
- [Stoplight ](https://stoplight.io/)

I’ve only used Swagger and Postman but both Insomnia and Stoplight look interesting. All of them offer additional functionality like documentation, testing and collaboration so are much more than just specification generators.


#   Build

I want to keep the time I spend building, maintaining and fiddling with infrastructure to the minimum so I make extensive use of services for database, email, queue, security or other commodity type functionality. The services I’ve used and some of their alternatives are:

- **Database**  
[AWS](https://aws.amazon.com/products/databases/)  
[Azure](https://azure.microsoft.com/en-us/product-categories/databases/)  
[MongoDB](https://www.mongodb.com/cloud/atlas)
- **Email**  
[AWS SES](https://aws.amazon.com/ses/)  
[Sendgrid](https://sendgrid.com/)
- **Queue**  
[AWS SQS](https://aws.amazon.com/sqs/)  
[Azure ](https://azure.microsoft.com/en-us/services/storage/queues/) 
- **​Security**  
[AWS Cognito](https://aws.amazon.com/cognito/)  
[Okta](https://www.okta.com/)  
[Auth0](https://auth0.com/)

Once I’ve farmed out as much functionality as I can, what’s left is typically the bespoke business logic and the glue between all the external services.

Business Logic is commonly used to enable:

- Triggering messages such as email and push notifications on developer-defined changes in the data store.
- Optimizing the data exchange with the app by joining multiple data collections.
- Validating app user actions in order to enforce business rules.
- Providing a means to host platform-agnostic code and save development time on multi-platform apps.

To build it I always go for the low-code option because of my natural laziness (and I happen to work for one so I’m dogfooding at the same time). Two low-code tools that allows me to do pretty much anything and connect to most services, on-premise or not, are:

- [Linx](https://linx.software/)
- [Outsystems](https://www.outsystems.com/)

Skilled developers can, of course, use their favourite programming language to build the bespoke bits. Most programming languages have one or more frameworks to help reduce the boilerplate. Some of the popular ones are:

- .Net: [ASP.NET](https://dotnet.microsoft.com/apps/aspnet)
- Java: [Spring](https://spring.io/)
- JavaScript: [Express](https://expressjs.com/)
- Python: [Django](https://www.djangoproject.com/)
- Ruby: [Rails](https://rubyonrails.org/)

If you haven’t recently tried a low-code tool I suggest trying one for your next small project. Pick something that you want to get out of the door quickly, even better if you expect it to be mostly boilerplate. You might be surprised at how much they can improve your [development speed.](https://dzone.com/articles/the-quickest-way-to-give-your-single-page-applicat)

Another interesting angle to try is building ‘serverless’ functions using something like [AWS Lambda](https://aws.amazon.com/lambda/) or [Azure functions](https://azure.microsoft.com/en-us/services/functions/) to implement the API. I’ve found that the architectural complexity eats a lot of time but if you’re already familiar with those platforms it might be an easy way to build a couple of endpoints.


#   Host

The simplest thing to do is to use one of the hosting platforms that supports your programming language of choice. Services like

- [Heroku](https://www.heroku.com/)
- [Netlify](https://www.netlify.com/)
- [Node Chef](https://www.nodechef.com/rest-api-hosting)
- [AWS API Gateway](https://aws.amazon.com/api-gateway/)
- [Azure App Services](https://azure.microsoft.com/en-us/services/app-service/api/)

Or in the low-code case the low-code platform does the hosting. Of course, these might not work for the next Facebook or Twitter API but then you’ll probably need some specialists and bespoke infrastructure anyway.


# Conclusion

It’s amazing how far we’ve come since we hacked around in BASIC on an IBM XT with 128 KB of RAM. If you wanted a database you needed to build it yourself. If you wanted a queue you needed to build it yourself. API? What’s that?

Now APIs are everywhere. They help us integrate third-party features, connect enterprise systems, and exchange data between apps. Learning [how to build an API](https://dev.to/linxsoftware/how-to-build-a-mvp-rest-api-in-low-code-a-step-by-step-guide-je) turns regular developers into digital superheroes. Today, you don’t need to be an experienced developer to [build complex applications](https://dev.to/linxsoftware/coding-at-a-high-level-with-low-code-2lg6) using high-performance parts with the minimum of effort and, if you use the right tools, the minimum of code.

- [Share on Twitter](#)
- [Share on LinkedIn](#)
- [Share on Email](mailto:?subject=28%20tools%20to%20design%2C%20build%20and%20host%20your%20API&body=I%27ve%20found%20an%20excellent%20article%20on%20%7Bpage_url%7D%20which%20may%20interest%20you.)

The post [28 tools to design, build and host your API](https://linx.software/28-api-tools-to-design-build-and-host-your-next-api/) appeared first on [Linx](https://linx.software).