Skip to content

Simply fake your API response before you code it. It's my weekend project ;)

Notifications You must be signed in to change notification settings

souravkayal/FakeIt

Repository files navigation

FakeIt_logo

FakeIt

A simple application to host your fake API simulate HTTP response. The application is build to keep the usecase simple but efficient.

Teach Stack :

ASP.NET Core 8 to run the backend service.

CosmosDB is to store the API setup.

Setup guideline :

  1. Host the application whereever you want ;) . Preferably in azure ! best choice is App Service. Sinple.

  2. Configure CosmosDB NoSQL container.

    I. Create CosmosDB NoSQL Instance

    II. Create database "fakeit-store"

    III. Create container "api-master"

       => Set partition key as "/project_name".
       => Set unique key by combining "/url" and "/http_methode".

Here is an example from my setup !

FakeIt-easy_Cosmos

  1. Set the Cosmos connection string in appsettings. Keep the DatabaseId as it is.

    "CosmosDb": {
     "ConnectionString": "",
     "DatabaseId": "fakeit-store"
    }
    
  2. Browser www.yourhost.com/swagger and have fun !

FakeIteasy_swagar

About

Simply fake your API response before you code it. It's my weekend project ;)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published