Git Product home page Git Product logo

item-ipsum's Introduction

Item Ipsum makes it easy to stand up a REST API that can pre-generate data for you. If you're building a web or mobile application, and you need to stand up a simple CRUD backend, this is the tool for you. Write a template that describes the attsributes and types of your model, and let Item Ipsum do the rest!

Requirements

  • Docker and docker-compose are installed and working

Setup and Usage

  1. Bring up Item Ipsum: docker-compose up --build
  2. Write a template per model(s) you want to work with. Have a look at the examples directory for samples.
  3. Make a POST to the /_admin/templates/ endpoint to create your first template

Example: Creating a todos

> curl -X POST http://localhost:8000/_admin/templates/ -H 'Content-Type: application/json' -d @./examples/todos.json -i

HTTP/1.1 201 Created
date: Sat, 03 Apr 2021 22:56:14 GMT
server: uvicorn
content-length: 4
content-type: application/json
location: /_admin/templates/2b7cbfa50bd14bc7975b5aac3073ccbc
  1. You can now access a list of todos: curl http://localhost:8000/todos
  2. GET/PUT/DELETE endpoints are also available to operate on a single todo

item-ipsum's People

Contributors

crolfe avatar

Watchers

James Cloos avatar  avatar  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.