Getting started Community Training Tutorials Documentation APIs, AI & Tools
Build an API from Start to Finish with Anypoint Code Builder
Take an end-to-end, API-led journey in MuleSoft: design a REST API specification, implement it as an integration, debug and test your application, deploy it, and then manage and monitor it in production. This tutorial walks you through that full lifecycle using a single-resource API, the American Flights API, that returns flight information from a MySQL database.
After you complete the tutorial with this single-resource API, use the same model to plan your own connectivity projects.
This tutorial series contains the following parts:
-
Design and Publish the American Flights API Specification
Design the American Flights API specification, test it with the built-in mocking service, and publish it to Anypoint Exchange. -
Implement the American Flights API
Scaffold the specification into an integration project and connect to a MySQL database. -
Validate Input Parameters and Transform Flight Data
Add business logic validation and transform database records to meet the API contract. -
Debug the American Flights API
Run the application locally and use the debugger to trace request execution and error routing. -
Test the American Flights API with MUnit
Create and run MUnit tests to verify your API behaves correctly. -
Deploy the American Flights API to CloudHub 2.0
Deploy the application to CloudHub 2.0. -
Manage, Secure, and Monitor the American Flights API
Register the API with API Manager, secure it with a policy, and monitor it with Runtime Manager.
Before You Begin
Before you begin your API journey, verify that you have the required tools and access:
-
Set up your MuleSoft environment.
See Getting Started with Anypoint Code Builder for more information.
-
Create an account on Anypoint Platform.
Use your username and password for your Anypoint Platform organization. If you don’t have an Anypoint Platform account yet, create a trial organization.
-
Download a REST client, such as Advanced REST Client or another similar client, to test REST requests. This tutorial uses Advanced REST Client.
-
Have some familiarity with business groups. API specs must belong to a business group to be published to Exchange.
| Configure a long timeout in your REST client settings to avoid timeout issues during debugging. |



