Skip to content

Create operations to access $value for media type entities & stream typed properties and functions #71

@darrelmiller

Description

@darrelmiller

The following CSDL

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="microsoft.graph" >

    <EntityContainer Name="TodoService">
        <EntitySet Name="Todos" EntityType="microsoft.graph.Todo">
        </EntitySet>
    </EntityContainer>
    
    <EntityType Name="Todo" HasStream="true">
            <Key>
                <PropertyRef Name="Id"/>
            </Key>
        <Property Name="Id" Type="Edm.String"/>
        <Property Name="Logo" Type="Edm.Stream"/>
        <Property Name="Description" Type="Edm.String"/>
    </EntityType>

</Schema>
</edmx:DataServices>
</edmx:Edmx>

should create the following operations,

/Todos
/Todos/{Todo-Id}
/Todos/{Todo-Id}/$value   (operationId = Todos_GetTodoContent)
/Todos/{Todo-Id}/Logo    (operationId = Todos_GetTodoLogo)

Entities with HasStream=true should create a URL to the $value of the entity. Properties that are of type Stream should have an operation that allows directly accessing the property.

AB5155

Metadata

Metadata

Assignees

Labels

fixedtype:enhancementEnhancement request targeting an existing experience.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions