1.2.27 • Published 7 years ago

rr-api-explorer v1.2.27

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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
1.2.27

7 years ago

1.2.26

7 years ago

1.2.25

7 years ago

1.2.24

7 years ago

1.2.23

8 years ago

1.2.22

8 years ago

1.2.21

8 years ago

1.2.20

8 years ago

1.2.19

8 years ago

1.2.18

8 years ago

1.2.17

8 years ago

1.2.16

8 years ago

1.2.15

8 years ago

1.2.14

8 years ago

1.2.13

8 years ago

1.2.12

8 years ago

1.2.11

8 years ago

1.2.10

8 years ago

1.2.9

8 years ago

1.2.8

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.0

8 years ago

1.1.4

8 years ago

1.0.1

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago