Skip to content
forked from OData/WebApi

OData Web API: A server library built upon ODataLib and WebApi

License

Notifications You must be signed in to change notification settings

davidhjones/WebApi

 
 

Repository files navigation

OData Web API

Build Status
Rolling
Nightly

Introduction

OData Web API (i.e., ASP.NET Web API OData) is a server library built upon ODataLib and Web API.

Project structure

The project currently has the following branches:

master branch

This is the active development branch for OData WebApi and it is currently most actively iterated. The package name is Microsoft.AspNet.OData. The is the OData WebApi for ODL v7.x releases which contain breaking changes against ODL v6.

release branch

This is the release branch for OData WebApi, contains code base up to most recently stable WebApi release.

gh-pages branch

The gh-pages branch contains documentation source for OData WebApi - tutorials, guides, etc. The documention source is in Markdown format. It is hosted at ODataLib Pages.

maintenance-6.x branch

This is the maintenance branch for OData WebApi 6.x based on ODL 7.x, which implements the ODataV4 protocol. The package name is Microsoft.AspNet.OData.

maintenance-aspnetcore

This is the maintenance branch for OData WebApi with ASP.NET Core support. The package name is Microsoft.AspNetCore.OData.

maintenance-V4 branch

This is the maintenance branch for OData WebApi 5.8 and up based on ODL 6.x, which implements the ODataV4 protocol. The package name is Microsoft.AspNet.OData.

maintenance-V3 branch

This is the maintenance branch for OData WebApi 5.7 and below based on ODL 5.x, which implements the ODataV3 protocol. The package name is Microsoft.AspNet.WebApi.OData.

maintenance-dnx branch

This is maintenance branch for an early prototype version of OData WebApi based on original ASP.NET Core, aka DNX. Package name is Microsoft.AspNet.OData. This is for project archive purpose only, is not active and doesn't accept contributions. It has only one release with information available here.

odata-v5.3-rtm v2.0-rtm v3-rtm v3.1-rtm v3.2-rtm branches

These are maintenance branches for previous RTMs. Project archives only, contributions not accepted.

Building

build.cmd

Testing

Each solution contains some test projects. Test projects use xUnit runner nuget package.

Tests will not run correctly unless SkipStrongNames is Enabled. Please run

build.cmd EnableSkipStrongNames

Run tests in cmd

To run end-to-end tests, you need to open an elevated - Run as administrator - command prompt

  • build.cmd build projects, run unit tests, and OData end-to-end tests.

  • build.cmd quick build project, and run unit tests

To disable the SkipStrongNames:

build.cmd DisableSkipStrongNames

Run tests in Visual Studio

Open the project, build it, and then test cases should appear in test explorer. If not, this is because the assemblies are delay signed and you're missing the private key so xunit will not load them in Visual Studio. To fix, please run build.cmd EnableSkipStrongNames. Run all the tests in the test explorer. For running end-to-end tests you must open the solution as Administrator. More detail at this.

Nightly builds

The nightly build process will upload a NuGet packages for WebApi to the MyGet.org webapinightly feed.

To connect to webapinightly feed, use this feed URL: webapinightly MyGet feed URL.

You can query the latest nightly NuGet packages using this query: MAGIC WebApi query

Contribution

Please refer to the CONTRIBUTION.md.

Documentation

Please visit the OData Web API pages.

Samples

Please refer to the ODataSamples WebApi.

Debug

Please refer to the How to debug.

About

OData Web API: A server library built upon ODataLib and WebApi

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.1%
  • 1C Enterprise 1.9%