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 pro…


This content originally appeared on DEV Community and was authored by carban

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.


This content originally appeared on DEV Community and was authored by carban


Print Share Comment Cite Upload Translate Updates
APA

carban | Sciencx (2025-01-29T01:42:12+00:00) FooApi Updates: Your All-in-One Fake API. Retrieved from https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/

MLA
" » FooApi Updates: Your All-in-One Fake API." carban | Sciencx - Wednesday January 29, 2025, https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/
HARVARD
carban | Sciencx Wednesday January 29, 2025 » FooApi Updates: Your All-in-One Fake API., viewed ,<https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/>
VANCOUVER
carban | Sciencx - » FooApi Updates: Your All-in-One Fake API. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/
CHICAGO
" » FooApi Updates: Your All-in-One Fake API." carban | Sciencx - Accessed . https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/
IEEE
" » FooApi Updates: Your All-in-One Fake API." carban | Sciencx [Online]. Available: https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/. [Accessed: ]
rf:citation
» FooApi Updates: Your All-in-One Fake API | carban | Sciencx | https://www.scien.cx/2025/01/29/fooapi-updates-your-all-in-one-fake-api/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.