0.2.0 • Published 8 years ago

grunt-tastypie-schema v0.2.0

Weekly downloads
1
License
-
Repository
github
Last release
8 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

8 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago