24 May 2024
Flotiq is simplifying API documentation and API exploration with Scalar
Flotiq now generates API documentation using Scalar to make the docs more attractive and easier to explore.
![Flotiq is simplifying API documentation and API exploration with Scalar](/static/8c68704f8e69482231892a9f83339262/d4762/_media-df5e0676-a639-4a63-9ca4-5c724a407b2e.png)
Introduction
At Flotiq, we are dedicated to simplifying the lives of developers by removing barriers to the effective use of our APIs. Unlike typical headless CMS solutions, we automatically publish personalized APIs based on the content type definitions created within our system. Additionally, we offer code generation and API documentation portals, which are automatically generated for every Flotiq account, to further reduce the complexity of maintaining APIs and integrating them.
Until recently, we used ReDocly and Swagger UI to provide users with personalized API documentation, code samples, and a browser-based client that enabled interactions with the API. However, we realized that this combination did not provide the optimal developer experience. We have now fully transitioned to Scalar, a comprehensive solution that integrates both API documentation and the API client interface.
Benefits using Flotiq APIs
A quick reminder: Flotiq's core values focus on reducing the complexity of building and maintaining content APIs and increasing their adoption potential. We achieve this through several key features:
- Personalized APIs
- OpenAPI compatibility
- Automated API documentation
- SDKs integrated with your account.
Personalized APIs
Flotiq allows each organization to have its own API, published based on the specific content models defined in their account. This approach not only differentiates Flotiq from conventional headless CMS platforms but also enables customers to accelerate development and streamline system maintenance by utilizing APIs that are tailored to their specific projects. For example, if you’re building an event scheduling API - this is how you might see it in Flotiq, compared to Contentful:
![Comparing Flotiq API and Contentful - your personalized content API in Flotiq is descriptive and familiar, while Contenful is using a generic approach.](https://api.flotiq.com/image/0x0/_media-1cfc1e87-8b82-4860-aabc-a3ede6f71b37.png)
Comparing Flotiq API and Contentful - your personalized content API in Flotiq is descriptive and familiar, while Contenful is using a generic approach.
OpenAPI compatibility
Our APIs are fully compliant with OpenAPI 3.0 standards, which is a significant advantage for teams. This compliance allows them to seamlessly publish their APIs using gateway solutions, integrate with numerous compatible systems, and reduce the time needed to complete their projects.
Automated API documentation
We strongly believe that some of the fundamental pieces that enable API adoption are standardization and good documentation. Our APIs are designed to adhere to the OpenAPI standards from the outset, facilitating the creation and sharing of clear, comprehensive API documentation. Initially, this documentation was powered by ReDocly and included code snippets in several popular programming languages, helping developers to quickly understand and implement the APIs.
![](https://api.flotiq.com/image/0x0/_media-a5aa7698-de4c-43a5-89fe-2fae9e78043f.png)
We’ve heard numerous comments from our customers that the API documentation is an amazing feature that helps them onboard developers and share APIs across the organization in an easier way, but they were disappointed with the way the web client (Swagger UI) was integrated. The lack of seamless interaction with the API directly from the documentation hindered our ability to provide the stellar developer experience we strive for. After exploring various options, including developing our own solution, we opted for Scalar, which brought significant improvements:
- API client embedded in the documentation
![Embedded API client lets you work with your personalized Flotiq API immediately from the browser.](https://api.flotiq.com/image/0x0/_media-dd50f4b7-6c5f-4dd8-acc2-1961c6ef2bca.png)
Embedded API client lets you work with your personalized Flotiq API immediately from the browser.
- Authorization support
![Integrated authorization makes it even simpler to start working.](https://api.flotiq.com/image/0x0/_media-6c541164-7f6b-438f-a8c1-4f91c5e7324b.png)
Integrated authorization makes it even simpler to start working.
- Improved search in the API docs
![Working with large APIs is now easier thanks to the improved search.](https://api.flotiq.com/image/0x0/_media-734a6513-3bda-4eff-883b-3bb4fb7f4a73.png)
Working with large APIs is now easier thanks to the improved search.
- Amazing user interface (dark mode!)
![Working with the API docs feels a lot better now, thanks to the dark mode.](https://api.flotiq.com/image/0x0/_media-df5e0676-a639-4a63-9ca4-5c724a407b2e.png)
Working with the API docs feels a lot better now, thanks to the dark mode.
Our upgrade to Scalar was mostly a drop-in replacement for the previous stack and also simplified our documentation generation pipeline (nice!).
Summary
In our ongoing effort to focus on developer experience and assist teams in building robust, future-proof systems, we have upgraded the API documentation section of Flotiq. Transitioning to Scalar not only improved the functionality and user experience but also opened up new possibilities for future enhancements, follow our posts and updates to be the first to learn when they land!
...