-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test issue #64 and fix the "" response out issue
- Loading branch information
Showing
4 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
sample/ODataRoutingSample/Controllers/v1/OrganizationsController.cs
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,19 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.AspNetCore.OData.Formatter; | ||
using Microsoft.AspNetCore.OData.Routing.Attributes; | ||
|
||
namespace ODataRoutingSample.Controllers.v1 | ||
{ | ||
[ODataModel("v1")] | ||
public class OrganizationsController : Controller | ||
{ | ||
[HttpGet] | ||
public IActionResult GetPrice([FromODataUri]string organizationId, [FromODataUri] string partId) | ||
{ | ||
return Ok($"Caculated the price using {organizationId} and {partId}"); | ||
} | ||
} | ||
} |
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