Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock REST API

This project aims to build a barebones REST API, easily confugurable with a JSON schema. It is not intended to be used in production, rather is to be used to quicly bootstrap a REST API for initial development/testing.

Dependencies

Model Schema

The purpose of schema.json is to

  1. Configure the model for which the REST API will be created
  2. Configure the api routes and available methods.
  3. Seed the model with initial data.

A default schema.json is provided for reference and will be used if no schema is provided explicityly. To provide an external schema, pass the --schema /path/to/schema.json parameter. Will add the ability to upload and edit schema via GUI in the future.

schema.json config

  • Model name
  • Base URL for REST API
  • Methods: Allowed methods out of CRUD
  • Model fields format:
    • _id(optional)
    • type: {"string", "number", }
    • default value(optional)
  • Seed data

TODO

  • GUI to configure schema
  • Ability to view and interact with all of db data on GUI
  • Save and load DB data for persistence between launches
  • Error Handling
  • Automatic Tests
  • Authentication configuration (Token login, Include Auth token in header)
  • Better Documentation

About

This project aims to build a barebones REST API, easily confugurable with a JSON schema.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages