DEV Community

Hiram
Hiram

Posted on

api v2 or something alike

Hallo Leute! Today's post is about how I migrated from /api/v1/ to platform v2 🤓

This is the continuation of the Reverse engineering a platform post.

The next scenario for my brand-new compatible platform was to be in charge of the live app consuming the first backend (v1). Given I already understood how it worked, it was time to update the app in order to consume the new API. But unlike the new apps consuming the v2 platform this one was rooted to the initial database/storage process.

In order to be able to do a hot swap when updating, I had to:

  • migrate the database and make sure the new laravel's
  • migrations fit as expected
  • migrate all the files to the new server (I could patch the links but eventually that server was going to be dropped)
  • add business logic for old and new files and data

It sounds easy but I spent some time figuring out several scenarios in order to pick the simplest solution. Once the roadmap was defined it was basically sew n' sing 😗.

After some polishing it was finally done. I saved some time so the users could make the update, and as usual, you know everything is fine because no one is complaining!

It's beautiful

The cherry of the cake was the unlocking of some features I couldn't have it working in v1. This is how the software works essentially, iterate over and over until you have the desired outcome.

Stay tune for more 😎

This post was originally published on https://blog.eichgi.com/apiv2-or-something-alike

Sentry mobile image

App store rankings love fast apps - mobile vitals can help you get there

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read full post →

Top comments (0)

Sentry growth stunted Image

If you are wasting time trying to track down the cause of a crash, it’s time for a better solution. Get your crash rates to zero (or close to zero as possible) with less time and effort.

Try Sentry for more visibility into crashes, better workflow tools, and customizable alerts and reporting.

Switch Tools

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay