DEV Community

Igor Kasyanchuk
Igor Kasyanchuk

Posted on

3 3

The fastest way to prototype API in Rails application

Hello, Ruby community,

https://github.com/igorkasyanchuk/fake_api

I've for a review one gem which could help you to build prototype (or production-ready) API in your Rails application.

Demo

Very often if you are just backend developer you need to implement some skeleton of API for Frontend Team. Most of the time you need to quickly change response, change format, rename something and have data that looks real.

When we are writing unit tests we often using Faker gem and FactoryBot to get nice sets of data and close to "real" user names, emails, etc.

So the idea of this gem is to use Faker to help you to build API prototype quickly and use syntax similar to Rails routing and FactoryBot to define API routes and responses.

Just check the demo and give a chance to this gem.

PS: You are also welcome to contribute :)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more