Skip to content
/ faux Public

Generate realistic fake data for your API testing and development needs.

License

Notifications You must be signed in to change notification settings

KuroXI/faux

Repository files navigation

Faux API

Generate realistic mock data for your API testing and development needs.

TO-DO

  • Dynamic fields to simulate JSON
  • Dynamic fields with nested objects
  • Support array object using multiple
  • Demonstration Template

Usage

Example Request

await fetch("http://localhost:3000/api/mock", {
  method: "POST",
  body: JSON.stringify({
    count: 1,
    data: {
      firstName: "person.firstName",
      lastName: "person.lastName",
    },
  }),
});

Example Response

count = 1

{
  "firstName": "John",
  "lastName": "Doe"
}

count > 1

[
  {
    "firstName": "John",
    "lastName": "Doe"
  },
  {
    "firstName": "Eleazar",
    "lastName": "Shields"
  }
]

Acknowledgments

About

Generate realistic fake data for your API testing and development needs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published