Code Monkey home page Code Monkey logo

randomizerapi's Introduction

Randomizer API

Random API response using faker and custom field.

Features

  • Generate sample user and article data
  • Random data count (max 1000) or specify data count
  • Custom data field with custom data count

Used By

This project is used by Intelligent Proxy Server for generating normal network traffic scenario.

Tech Stack

Server: NodeJS, Express, morgan, cors, slugify, @faker-js/faker

Run Locally

Clone the project

Go to the project directory

Install dependencies

  npm install

Start the server

  npm run start

or for development start nodemon

  npm run dev

API Reference

Get User with random data count (max 1000)

  GET /api/user

Get User with specify data count

  GET /api/user/${count}
Parameter Type Description
count int Required. count of data that will generated

Get Article with random data count (max 1000)

  GET /api/article

Get Article with fixed data

  GET /api/article/constant

Get Article with specify data count

  GET /api/article/${count}
Parameter Type Description
count int Required. count of data that will generated

Get Random Field with specify data count

  POST /api/random
Parameter Type Description
field string Required. separated with "," e.g. "id,name"
count int Required. count of data that will generated

Get Random Field

  GET /api/random/${field}
Parameter Type Description
field string Required. separated with "," e.g. "id,name"

Acknowledgements

randomizerapi's People

Contributors

matthewbrandon21 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.