OpenAPI.NET.OData/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Contract.OData.xml
Irvine Sunday b1fed423ab
Describes path operations descriptions from vocabulary annotations (#104)
* Add support for operation descriptions and update tests

* Update tests for Entityset paths operations descriptions

* Code cleanup

* Update test OpenAPI output files.

Co-authored-by: Irvine Sunday <irochand@microsoft.com>
2021-05-04 17:36:03 -07:00

49 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:DataServices>
<Schema Namespace="Microsoft.OData.Service.Sample.Contract" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EntityType Name="BaseEntityApiModel" Abstract="true">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Edm.Int64" Nullable="false" />
<Property Name="name" Type="Edm.String" />
<Property Name="description" Type="Edm.String" />
</EntityType>
<ComplexType Name="AttachmentApiModel" BaseType="System.Object">
<Property Name="id" Type="Edm.Int64" />
<Property Name="name" Type="Edm.String" />
<Property Name="objId" Type="Edm.Int64" />
<Property Name="mime" Type="Edm.String" />
<Property Name="extension" Type="Edm.String" />
<Property Name="size" Type="Edm.Int64" />
<Property Name="type" Type="Edm.String" />
<Property Name="date" Type="Edm.DateTimeOffset" />
<Property Name="comment" Type="Edm.String" />
</ComplexType>
<EntityType Name="AccountApiModel" BaseType="Microsoft.OData.Service.Sample.Contract.BaseEntityApiModel">
<Property Name="priority" Type="Edm.Int32" />
<Property Name="numberFilial" Type="Edm.String" />
<Property Name="numberCustomer" Type="Edm.String" />
<Property Name="calculateVar" Type="Edm.Boolean" />
<Property Name="lastCloseDate" Type="Edm.DateTimeOffset" />
</EntityType>
</Schema>
<Schema Namespace="Default" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<Function Name="Attachments" IsBound="true">
<Annotation Term="Org.OData.Core.V1.Description" String="Collection of contract attachments." />
<Parameter Name="bindingParameter" Type="Microsoft.OData.Service.Sample.Contract.BaseEntityApiModel" />
<ReturnType Type="Collection(Microsoft.OData.Service.Sample.Contract.AttachmentApiModel)" />
</Function>
<Action Name="AttachmentsAdd" IsBound="true">
<Parameter Name="bindingParameter" Type="Microsoft.OData.Service.Sample.Contract.BaseEntityApiModel"/>
<Parameter Name="comment" Type="Edm.String"/>
<Parameter Name="file" Type="Edm.String"/>
</Action>
<EntityContainer Name="Container">
<EntitySet Name="Accounts" EntityType="Microsoft.OData.Service.Sample.Contract.AccountApiModel">
</EntitySet>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>