0.2.0 • Published 10 years ago

grunt-tastypie-schema v0.2.0

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

--

Install

npm install grunt-tastypie-schema --save-dev

--

tastypie-schema task

Run this task with grunt tastypie-schema

Files and options may be specified according to the grunt configuring tasks guide.

--

Login

url

Type: String

Points to the login endpoint.
Will be called with a POST.
params

Type: Object

Parameters that will be sent to the login endpoint.

--

Options

keys

Type: Array Default: ['fields', 'filtering', 'ordering']

List of values to read from the tastypie schema.

--

Usage Example

module.exports = function (grunt) {
  grunt.initConfig({

    tastypie_schema: {
      production: {
        login: {
          url: 'https://url',
          params: {
            username: 'username',
            password: 'password'
          }
        },
        options: {
          keys: ['fields', 'filtering', 'ordering']
        },
        files: {
          'response.json': 'https://url/schema'
        }
      }
    }

  });

  grunt.loadNpmTasks('grunt-tastypie-schema');
};

--

Code Climate Code Climate Code Climate Code Climate

0.2.0

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago