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

rr-api-explorer

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rr-api-explorer

Angular project showcasing a public api explorer for the Retsrabbit API

  • 1.2.27
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Rets-Rabbit-Api-Explorer

This is an angular module which acts as a drop in directive for an API explorer for Retsrabbit

##Installation You can either clone/download this repo or install the package via bower.

$ bower install rr-api-explorer

##Usage Make sure to import the module

app.module('app', ['rr.api.v2.explorer']);

or

app.module('app', [require('rr.api.v2.explorer')];

This directive can either be used as an element or an attribute

<api-explorer></api-explorer>
<div api-explorer></div>

You may also pass in a search parameter which the directive will use to bind values to the search parameters. The parameter must match the following format where the key values follow the RESO spec. See the Rets Rabbit docs for help.

The directive will watch for changes on the query variable and update the explorer inputs if it detects a change.

$scope.query = {
	select: 'ListingId, ListPrice, ListingContractDate',
    filter: [
        {value: 'year(ListingContractDate) eq 2016', join: 'and'},
        {value: 'month(ListingContractDate) eq 6', join: ''}
    ],
    orderby: [{value: 'ListPrice', direction: 'asc'}],
    top: '10',
    skip: '11'
};
<api-explorer search="query"></api-explorer>

When a search is being performed, the directive will display a loading image/gif where the results are if you supply the loader parameter with a valid path.

<api-explorer search="query" loader="'public/img/loader.gif'"></api-explorer>

###Customization Currently there are no customization options. The directive is built with Bootstrap classes, so it will work best when that framework is present. In the future we hope to provide

  1. Framework specific templating
  2. Customization attributes

FAQs

Package last updated on 02 May 2017

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