forked from OData/odata.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue OData#271 Allow relative URIs in OData batch operations
- Loading branch information
Showing
10 changed files
with
409 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//--------------------------------------------------------------------- | ||
// <copyright file="ODataBatchPayloadUriOptions.cs" company="Microsoft"> | ||
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. | ||
// </copyright> | ||
//--------------------------------------------------------------------- | ||
|
||
namespace Microsoft.OData | ||
{ | ||
/// <summary> | ||
/// Indicates the format of Request-URI in each sub request in the batch operation. | ||
/// </summary> | ||
public enum BatchPayloadUriOption | ||
{ | ||
/// <summary> | ||
/// Absolute URI with schema, host, port, and absolute resource path. | ||
/// </summary> | ||
/// Example: | ||
/// GET https://host:1234/path/service/People(1) HTTP/1.1 | ||
AbsoluteUri, | ||
|
||
/// <summary> | ||
/// Absolute resource path and separate Host header. | ||
/// </summary> | ||
/// Example: | ||
/// GET /path/service/People(1) HTTP/1.1 | ||
/// Host: myserver.mydomain.org:1234 | ||
AbsoluteResourcePathAndHost, | ||
|
||
/// <summary> | ||
/// Resource path relative to the batch request URI. | ||
/// </summary> | ||
/// Example: | ||
/// GET People(1) HTTP/1.1 | ||
RelativeResourcePath | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.