DEV Community

Cover image for FooAPI Updates: Your All-in-One Fake API
carban
carban

Posted on β€’ Edited on

4 2

FooAPI Updates: Your All-in-One Fake API

Hello there! πŸ‘‹

This is my second post on dev.to regarding my API, I want to continue posting updates about FooApi here. You can read my first post to know more about the project and their features Introducing FooApi. FooApi is a personal project that aims to provide test data and different ways to manipulate it, all in one place, quickly and easily. That is why here you can find generic data, geographic data, images and methods like REST and GraphQL.

The platform provides realistic dummy data across several categories:

New Collection

Countries (GeoJSON geometries) πŸ—ΊοΈ

Now you can retrieve country geometries through the /api/countries endpoints. All of them follow the GeoJSON format convention. In the documentation, you’ll find the list of available endpoints and examples at /docs/countries

Image description

Also I've include POST, PUT, PATCH and DELETE endpoints for the Cities data collection. Remember You are free to explore and use these endpoints to mock your Geo Apps.

Custom Mock πŸ‘½

You can now create a custom mock endpoint! fooapi.com/docs/mock Here’s how it works:

You define the request method, status code, and response body, and FooApi will create an endpoint and a customID like fooapi.com/custom/abcd1234, then you can make your request and test your custom response.

  • This endpoint expires after 1 hour, so you’ll need to create a new one afterward.
  • In the meantime, you can edit the last one by simply updating the values in the UI and clicking Update Endpoint.

This is an initial approach, so feel free to share suggestions in the comments to make it even better!

Example:

Image description

Testing in browser:

Image description

Buy me a coffee!

I've created an account in buymeacoffee.com, if you want to support this project you can do it here: buymeacoffee.com/carban donations will be used to maintain and improve the project.

Recognition

I just want to hightlight that FooApi was featured in the weeklyfoo.com newsletter #66 by @urbanisierung . You can find there great tools like mine, along with articles, news, tutorials, and video recommendations.

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry πŸ•’

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

πŸ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay