Git Product home page Git Product logo

odata-docs's Introduction

odata-docs's People

Contributors

asanyaga avatar bubbablaster avatar chuanboz avatar corranrogue9 avatar dhurataj avatar elizabethokerio avatar g2mula avatar gathogojr avatar groovyfeng avatar habbes avatar herohua avatar kanishmanuja-ms avatar kenitoinc avatar khairunj avatar learn-build-service-prod[bot] avatar madansr7 avatar mairaw avatar meeradi avatar mumbi-o avatar norcino avatar odero avatar ofthelit avatar paulodero avatar rick-anderson avatar roudabeh1348 avatar sreejithpin avatar v-kents avatar v-sidlama avatar wingtofree avatar xuzhg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odata-docs's Issues

Filtering data with dates does not work in OData 8.0.12

I am querying an endpoint this way

 https://apiEnpoint?$filter=Time ge 2023-01-22T23:00:00.0000000Z and Time le 2023-01-29T03:44:47.4260000Z

It works fine on 8.0.0-preview3 but not on 8.0.12.

  1. What am I doing wrong?
  2. Can you guys please provide a better getting-started documentation for querying with dates?

Thank you.

Startup configuration invalid on the page Sample: Build web APIs with OData support using ASP.NET Core

On the page https://docs.microsoft.com/en-us/odata/webapi/first-odata-api (md file: https://github.com/MicrosoftDocs/OData-docs/blob/main/Odata-docs/webapi/first-odata-api.md), The section titled Register OData has these lines of code:

    // requires using Microsoft.AspNet.OData.Extensions;
    services.AddOData();

The using statement looks like it should be Microsoft.AspNetCore.OData.Extensions instead, and there is no extension method for IServiceCollection called AddOData().

I'm running a newly-created .NET 6 web API following the Todo example linked in the doc page, and I installed Microsoft.AspNetCore.OData version 8.0.11.

leverage IODataClientFactory to Use HttpClient in OData Client

in Use HttpClient in OData Client, it talked about how to use HttpClient in OData Client, and includes lots of sample code to make that work. With the addtion to ODataClient extensions (https://github.com/OData/Extensions/), there is new way to use HttpClient in ODataClient, very similar to IHttpClientFactory experience and would work out of box.

The issues is to add public document for that out of box usage and link this to that page.
@xuzhg FYI.

Using OData client without auto-generated proxy classes.

All code samples in the OData Client docs appear to use auto-generated proxy classes for the TripPin service. I was wondering why there are no examples showing how to use the barebones OData client library directly to interact with an existing OData service without using a tool or extension to pre-generate code. Is this not a valid or intended use case?

Attribute Routing with parent item and child item keys

In 4.3.6 of the URL Conventions for OData it seems to say we should be able to do something like https://host/service/Orders/1/Items/2 to GET/PUT/POST/DELETE the item with ID 2 tied to Orders with ID 1.

https://docs.oasis-open.org/odata/odata/v4.01/os/part2-url-conventions/odata-v4.01-os-part2-url-conventions.html#sec_KeyasSegmentConvention

It seems this was possible in prior OData versions but I don't see it in the OData 8 docs. Is this something possible to do?

Getting Started session for OData Client Docs

The problem

The OData Client docs are not self-contained: the first page someone sees is the "Basic CRUD operations" section, which begins with a code snippet that makes a query to the trip pin service using a generated proxy class. If this is a new user who wants to learn how to use the OData client, at this point they would be confused: What is DefaultContainer and where does it come from? Which namespaces do I import? What is context.People? How do you even install the library? How were the proxy clients generated? How would I adapt the code for my own service? etc.

The docs seem to assume that the user has prior experience with the Odata client library, code generation tools and TripPin service. Or it's assumed that the reader can find this information elsewhere, but in that case, there are no links provided either.

Proposed solution

I propose adding a "Getting started" section that introduces the OData client library and takes the user through installing the library and/or the connected service code generator and how to use it, and a basic overview of the classes generated and how to use them. This section should contain enough background information for the user to follow the remainder of the docs.

Migrate Sample: Build web APIs with OData support using ASP.NET Core

Please review Sample: Build web APIs with OData support using ASP.NET Core and let me know if you'd like me to migrate that tutorial to this repo.

Outline of proposed work

  • Create AspnetCore folder in OData-docs/Odata-docs/webapi/
  • Move the sample/tutorial to the AspnetCore folder.
  • Add ASP.NET Core 3.0 version.
  • Add tutorial to the TOC

Does your repo support importing snippets? If not, would you like me to enable that?
Does your repo support versions? If not, would you like me to enable that.

::: moniker range=">= aspnetcore-3.0"
//  3.0 version here
::: moniker-end

::: moniker range="< aspnetcore-3.0"
// 2.2 version here
::: moniker-end

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.