Giter VIP home page Giter VIP logo

mortimer's People

Contributors

joscha avatar topliceanu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mortimer's Issues

Allow middleware for oob endpoints

Is there a possibility to prevent certain reads/writes to certain endpoints based on the request?
E.g. how would one intercept a call to
mortimer.router(Book).bind(app);
?

prepare for next version

todo

  • port to coffee
  • new architecture of middleware
  • bundle a lot of usefull middleware: auth, rate-limiting, acl, etc.
  • generated documentation (docco)
  • tests (mocha)

version 2.x

  • remove the meta object in reponse. The reponsability to publish metadata on the endpoint should fall to the the clients of the library.
  • rename patchDoc() into updateDoc() and updateDoc() into replaceDoc(). This way it better represents the function of the particular middleware. This leave no bias to the client when choosing how to bind these methods.
  • improve error response messages and custom logging

implement missing endpoints

Missing endpoints:

  • PUT /<resource>/:<resource>Id - replaces the resource completely
  • PATCH /<resource> - patches all resources that match the query filters
  • DELETE /<resource> - removes multiple resources matching the query filters

This will bump the version to v1.1.0

competitor features

  • implement advanced filters, similar to node-restful and express-restify-mongoose
  • allow atomic updates as optional behaviour node-restful
  • populate nested models node-restful and mers
  • add middleware for access control, keep with without dependencies express-restify-mongoose
  • similar in structure to mortimer is preston
  • custom results printing options ie.projections preston and restify-mongoose
  • better interface for hooking up to various stages of handling a request. Currently this is done by extending the base class and overriding the implementation of a specific function. Hooks could be the alternative as mongo-rest
  • implement the rest of the methods: PUT /<resource>/:id, PUT /<resource>, PATCH /<resource>,
    DELETE /<resource>

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.