Socket
Book a DemoInstallSign in
Socket

@furystack/odata

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/odata

ODATA Rest Endpoint implementation for FuryStack

latest
Source
npmnpm
Version
2.1.23
Version published
Weekly downloads
1
-99.92%
Maintainers
1
Weekly downloads
 
Created
Source

@furystack/odata

odata v4 implementation for FuryStack. This package is in an early and experimental state. More info coming soon...

Usage example

You can use OData in a similar way:

class MyEntityType {
  public id!: number
  public value!: string
}

const myInjector = new Injector()

myInjector
  .useLogging()
  .useHttpApi()
  .useOdata('odata.svc', model =>
    model.addNameSpace('default', namespace =>
      namespace
        .setupEntities(e =>
          e.addEntityType({
            model: MyEntityType,
            primaryKey: 'id',
            properties: [{ property: 'id', type: EdmType.Int16 }, { property: 'value', type: EdmType.String }],
          }),
        )
        .setupCollections(collections => collections.addCollection({ model: MyEntityType, name: 'MyEntities' })),
    ),
  )
  .listenHttp()

Keywords

FuryStack

FAQs

Package last updated on 05 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts