1.0.0 • Published 7 years ago

reaktor v1.0.0

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

Reaktor

More docs coming soon...

TODO

Create an API endpoint

Get all items

apiUtils.createApi({
    type: 'GET',
    url: 'items/all',
    rawModel, // the raw datamodel
    databaseModel, // the mongoose data model
    options: {
        queryType: apiUtils.QUERY_ALL, // the query type
        queryParams: ['email', 'height'], // it can only be filtered by the fields here
        limit: 0, // a numeric value
        sort: '', // a field to sort by, string
        authenticate: true, // set authentication for this API endpoint
    }
});

Get a single item

apiUtils.createApi({
    type: 'GET',
    url: 'items/single',
    rawModel, // the raw datamodel
    databaseModel, // the mongoose data model
    options: {
        queryType: apiUtils.QUERY_SINGLE, // the query type
        queryParams: ['email'], // it can only be filtered by the fields here
        fields: [] /// only the fields listed here will be in the response
    }
});

Delete an item

Update an item

Create an item-->

1.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago