10 Essential Steps and Tools For API Design-First
10 Essential Steps and Tools For API Design-First
Strategize: Define the goals you want to achieve with your APIs. Miro
Specify which markets you need to address, which resources you
Notion
have at your disposal, and the time frame you have to achieve your
goals. Productboard
Tip: Always plan for your API to be external even if it’s internal to start off with Good Ol’ Whiteboard
- Sequence Diagram
Tip : Keep implementation details out of the sketch phase as much as possible
2 Search Reusable Designs in Catalogue
SUGGESTED TOOLS
Explore Existing APIs: Duplicate services lead to inconsistencies
Stoplight
and wasted time.
Postman
Look for existing APIs in your catalogue that solve for a similar use In-house Solution
case. Reuse the parts you can, and only build what’s unique and
required.
Tip: DRY (Don’t Repeat Yourself) anywhere. Stick to this across the lifecycle
VS Code
- Explain the purpose of the API well
APIBldr
- Think about what you will search if you were looking for a similar
API
Create Models and Endpoints: Reuse models and endpoints that you
discovered in Step 2. Follow similar naming conventions and
guidelines for new models.
Tip: Consistency is key
Stoplight
Design Repo: A seperate repo for design and documentation GitHub
artifacts.
Monorepo: One project, with a directory for each API which contains
the source code and API description.
Multirepo: One project for each API which contains the source code
and API description.
Tip: Git will become your source of truth and integrate into your dev workflow
6 Generate Docs
SUGGESTED TOOLS
Generate API Reference: Show developers how to move from
Redoc
documentation to code. All your endpoints and models are
documented here.
Stoplight
Swagger-UI
Write quick start guides and tutorials: Guides on popular use cases
to help developers get started quickly.
Note: We have a documentation checklist coming soon. Stay tuned!
7 Generate a Mock API
SUGGESTED TOOLS
Mockoon
- Speeds up development
SUGGESTED TOOLS
GitHub
Preferably have the generated docs and mock server in a single url
Stoplight
- End Users
- Product Managers
- API Gatekeepers
- Architectural Committee
9 Iterate till you have Consensus
RECYCLE
10 Handoff to Developers
SUGGESTED TOOLS
Share with Developers: Share generated docs and mock server in a
GitHub
single url to share with developers. This includes producers and
consumers.
Stoplight