Coder Social home page Coder Social logo

odata-v4-server's Introduction

OData(V4) Server

npm (scoped) npm (scoped) npm (scoped) npm (scoped)

Unit Test Status MySQL Integration Status PostgreSQL Integration Status SAP HANA Integration Status Codecov

Security Rating Reliability Rating Technical Debt

NodeJS OData(V4) Server Implementation.

This project is under heavy development.

Just check the demo project for features preview.

Features

  • OASIS Standard OData Version 4.0 server
  • usable as a standalone server, or as an Express router
  • expose service document and service metadata - $metadata
  • setup metadata using decorators or @odata/metadata
  • supported data types are Edm primitives, complex types, navigation properties
  • support create, read, update, and delete the EntitySets,
  • support action imports, function imports, bounded actions and bounded functions on EntitySets
  • support for full OData query language using @odata/parser
    • filtering entities - $filter
    • sorting - $orderby
    • paging - $skip and $top
    • projection of entities - $select
    • expanding entities - $expand
    • count records - $count
  • support async controller functions using Promise, async/await
  • support OData V4.01 JSON format $batch operation
  • support dependency inject
  • support deep insert

Concepts

Domain Model

Define domain model class, it will be transformed to database schema.

Action & Function

Define Action/Function on the Domain Models.

Using the actions implement the partially focused business logics, and use the functions implement complex queries.

Hook

Hook is general business logic for specify Domain Model, like beforeCreate/beforeUpdate, and it's mapped from OData/HTTP Method.

Define Hooks to implement the general business logics for entity.

Service

Using services in hook/action/function, keep the business consistence for single domain model.

Each model will have its own standard CRUD service which enhanced with hooks logic.

Transaction

Each TransactionContext will use single database transaction (connection).

odata-v4-server's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar holocron avatar lazarv avatar nodren avatar slajher avatar soontao avatar tisos avatar tlvarga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.