src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathsGenerator.cs
/// <summary>
/// Create a <see cref="OpenApiPaths"/>
/// The value of paths is a Paths Object.
/// It is the main source of information on how to use the described API.
/// It consists of name/value pairs whose name is a path template relative to the service root URL,
/// and whose value is a Path Item Object.
/// </summary>
/// <param name="context">The OData context.</param>
/// <returns>The created <see cref="OpenApiPaths"/> object.</returns>
Create a
The value of paths is a Paths Object.
It is the main source of information on how to use the described API.
It consists of name/value pairs whose name is a path template relative to the service root URL,
and whose value is a Path Item Object.
Create a The value of paths is a Paths Object . It is the main source of information on how to use the described API . It consists of name / value pairs whose name is a path template relative to the service root URL and whose value is a Path Item Object .
public static OpenApiPaths CreatePaths(this ODataContext context)
        {
            Utils.CheckArgumentNull(context, nameof(context));
            OpenApiPaths paths = new OpenApiPaths();
            foreach (var item in context.CreatePathItems())
            {
                paths.Add(item.Key, item.Value);
            }
            return paths;
        }
public static OpenApiPaths CreatePaths ( this ODataContext context ) { Utils . CheckArgumentNull ( context , nameof ( context ) ) ; OpenApiPaths paths = new OpenApiPaths ( ) ; foreach ( var item in context . CreatePathItems ( ) ) { paths . Add ( item . Key , item . Value ) ; } return paths ; }
Create a
The value of paths is a Paths Object.
Create a The value of paths is a Paths Object .
// Due to the power and flexibility of OData a full representation of all service capabilities // in the Paths Object is typically not feasible, so this mapping only describes the minimum // information desired in the Paths Object.
The created  object.
The created object .
ODataContext
this
context
The OData context.
The OData context .