0.1.11 • Published 8 years ago

jaysvcutil v0.1.11

Weekly downloads
13
License
(MIT OR GPL-2.0)
Repository
github
Last release
8 years ago

JaySvcUtil is a command line tool that downloads an OData service definition ($metadata) and creates a full featured JayData / JavaScript client environment by generating the necessary boilerplate code for you. All you need to do is to include the generated context file and you can start using the OData service with the high level, JavaScript optimized JayData API that supports JavaScript Language Query (JSLQ) and crud operations.

If you are a data API developer you can distribute the generated context and let your users handle data with a manner.

As an example we will use the Northwind database made available online for testing purposes by Microsoft.

Install JaySvcUtil

$ npm install -g jaysvcutil

Using JaySvcUtil

$ jaysvcutil –-metadataUri http://services.odata.org/V4/Northwind/Northwind.svc --out northwind.js

JaySvcUtil command line parameters

Usage: jaysvcutil --metadataUri <OData server url>

Options:
  -m, --metadataUri          The URI of the OData $metadata definition. Can be
                             an online resource or a local file as well.
  -o, --out                  The name of the generated output file. Default is
                             JayDataContext.js.
  -t, --dts                  The name of the generated TypeScript definition
                             file. Default is JayDataContext.d.ts.
  -n, --namespace            The namespace of the generated JayData
                             EntityContext class. Default is taken from the
                             metadata.
  -c, --contextBaseClass     The name of the base class for the generated
                             entity context. Default is $data.EntityContext.
  -e, --entityBaseClass      The name of the base class for the generated
                             entity types. Default is $data.Entity.
  -s, --entitySetBaseClass   The name of the base class for the generated
                             entity sets. Default is $data.EntitySet.
  -a, --collectionBaseClass  The name of the base class for the generated
                             entity sets. Default is Array.
  -b, --autoCreateContext    Create an instance of the context with default
                             parameters. Default is false.
  -x, --contextInstanceName  The name of the automatically generated context
                             instance under the context namespace. Default is
                             "context".
  -u, --userName             The network username for an authenticated OData
                             service.
  -p, --password             The network password for an authenticated OData
                             service.
  -h, --help                 Dispaly this help screen.

More info

Visit JayData.org.
You can download JayData from npm with npm install jaydata.

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 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

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago