Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

restle

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restle

JSON API engine.

  • 0.2.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
1
Weekly downloads
 
Created
Source

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!');
});

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc