MuleSoft Secrets of A Great API
MuleSoft Secrets of A Great API
Summary .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
About MuleSoft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2
Secrets of a great API
3
In either case, organizations risk creating an API that does not
fit the needs of their users. And APIs that don’t fit the needs of
users have a high cost: limited adoption by developers and
ultimately, a failure to meet business objectives. Once an API is
designed and built, undoing these mistakes is difficult and
time-consuming. In most cases, a developer must start over
again, redesigning a new API, implementing it by connecting to
back-end services, then rolling it out again to the developer
community. Worst of all, you will have to transition all existing
users to the new API. This will require additional work which
your engineers may not have the time or willingness to do. At
that point, you’ll be faced with a tough choice: continue to
support the original API and its users until they eventually
(hopefully) migrate, or shut it off and potentially alienate and
lose those users.
4
your API and start using it in just a few minutes. The only way to
deliver that kind of ease of use is to design for it upfront.
5
developers’ attention, making the design and ease of use of
your API critical to its adoption and, ultimately, its success.
Unfortunately, too many API providers build their APIs before
thinking through the critical success factors, resulting in APIs
that fail to meet business objectives. Delivering a great API
isn’t hard if you follow a few proven principles. In this paper
we’ll demystify API strategy by reviewing the four
secrets of a great API.
6
Secret #1: design for great user experience
Figure 1: Anypoint Design Center’s API designer provides an editor for drafting the API’s
structure while rendering in real time.
8
Secret #2: optimize for the use case
Figure 3: Use API designer to expose fine-grained services that users can access directly,
and add coarse-grained services on top of them to support broader use cases such as this
delivery tracking app.
10
Secret #3: provide easy access
Figure 4: Your developer portal should include all of the tools developers need to learn
about and begin using your API.
11
“The API portal delivered in MuleSoft’s
Anypoint Platform™ is a good example of the
value-added features that make it easy for
application developers to engage with and
start using an API.”
12
Secret #4: build a community
Figure 5: API Notebook, a feature of the API portal, allows developers to document new
uses for, and to grow the addressable market for your API.
The application developers who consume your API are not just
your customers; they are the ecosystem that will drive the
success of your API. Treating them as valued members of your
community can drive significant mutual benefit. An obvious
benefit of a thriving developer community is a wider reach for
your API. To support the organic growth of your API, your
developer portal should include an easy way for developers to
share knowledge with each other. The API Notebook of the API
portal demonstrates this concept in action. It allows developers
to discover and document new uses for your API and grow the
addressable market for it. In addition, they can share tips and
tricks in forums and even add code samples to make it easy for
others to get started quickly with your API. Finally, a valuable
benefit of community that is sometimes overlooked is that the
greater the number of developers using your API, the faster
bugs and issues will be identified and communicated so that
you can continue to improve the value of your API.
13
“To support the organic growth of your API,
your developer portal should include an easy
way for developers to share knowledge
with each other.”
14
Summary
15
16
About MuleSoft
16