{"id":346,"date":"2025-02-09T15:05:48","date_gmt":"2025-02-09T14:05:48","guid":{"rendered":"https:\/\/pythonium.net\/?page_id=346"},"modified":"2025-02-09T12:35:56","modified_gmt":"2025-02-09T10:35:56","slug":"mockapy","status":"publish","type":"page","link":"https:\/\/pythonium.net\/mockapy","title":{"rendered":"Mock API"},"content":{"rendered":"\n\n \n <\/path>\n <\/path>\n <\/path>\n <\/svg>\n<\/a>\n

A free and open-source fake API designed for testing and prototyping, with Python for added flexibility.<\/p>\n\n\n\n

Custom API & Rule Engine<\/strong>
Instantly generate a custom API from a JSON object and customize its behavior with a Python rule engine. Define rules to handle errors, modify HTTP responses, headers, and bodies using Python scripts\u2014all for free and open source. Access the source code to set up your own local instance.<\/p>\n\n\n\n

How to Create a Custom API?<\/strong>
MockAPY, available on GitHub<\/a>, lets you create a local mock API with custom rules. Alternatively, you can generate an API online using the editors below, but without custom rules. The API will be immediately accessible but is deleted once a day. If needed, you can recreate it on this page. For frequent usage, consider setting up a local API to avoid limitations.<\/p>\n\n\n\n\n\n

\n
\n
Resources<\/div>\n \n \n
\n