New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

restle

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restle

JSON API engine.


Version published
Weekly downloads
46
Maintainers
1
Weekly downloads
 
Created

restle

Restle is a lightweight (and unstable) JSON API compatible with Ember Data. This is alpha software and not recommended for use in production code.

Not all features in the JSON API specification are implemented yet: fields, voluntary inclusion, and some other small things.

Getting started

$ npm install restle --save
// API: http://localhost:1337/api/
const restle = new Restle({
  port: 1337,
  database: 'mongodb://...',
  namespace: '/api',
});

const userSchema: {
  name: { attr: 'string' },
  articles: { hasMany: 'article' },
  company: { belongsTo: 'company' },
};

restle.register('user', userSchema);

restle.on('ready', () => {
  console.log('Restle is ready!');
});

FAQs

Package last updated on 24 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts