Skip to content

figgleforth/schematico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schematico

Create placeholder API routes that return dummy data based on your own specifications.

How to use

First make a POST request with the desired URL like http://bolygon.co:4999/myawesomeroute and a body like:

{
  "name" : "String",
  "age" : "Integer",
  "location" : {
    "longitude" : "Number",
    "latitude" : "Number"
  }
}

Then whenever you need this model, just GET http://bolygon.co:4999/myawesomeroute and you'll get back an object like:

{
  "name" : "Deserunt sunt minim reprehenderit enim ut Lorem.",
  "age" : "26",
  "location" : {
    "longitude" : "342.123516143",
    "latitude" : "123.345634563"
  }
}

The model can contain as many nested objects as you want. To get multiple objects back, just append /<number> to the API.

Available Types

  • Number
  • -Number (Negative)
  • ?Number (Positive or Negative)
  • Integer
  • -Integer (Negative)
  • ?Integer (Positive or Negative)
  • Boolean
  • Character
  • Name
  • FirstName
  • LastName
  • Gender
  • Birthday
  • Age
  • Address
  • Zip
  • City
  • Street
  • State
  • LongState
  • Coordinates
  • Latitude
  • Longitude
  • AreaCode
  • Phone
  • Company
  • HexColor
  • RGBColor
  • Hash
  • GUID
  • Dollar
  • CreditCardNumber
  • CreditCardType
  • CreditCardExpiration
  • CreditCardExpirationMonth
  • CreditCardExpirationYear
  • Email
  • Username
  • Domain
  • TLD
  • IP
  • IPv6
  • Avatar
  • FacebookID
  • TwitterHandle
  • Hashtag
  • -Date (Past)
  • Date (Present)
  • +Date (Future)
  • ?Date (Past or Future)
  • Day
  • Month
  • Year
  • Word
  • Words
  • Sentence
  • Sentences
  • Paragraph
  • Paragraphs

About

Placeholder API and schema, with advanced data generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published