An open API service indexing awesome lists of open source software.

https://github.com/garethj-msft/odataexamplegen

Generate example JSON packets for OData APIs.
https://github.com/garethj-msft/odataexamplegen

example json odata

Last synced: 8 days ago
JSON representation

Generate example JSON packets for OData APIs.

Awesome Lists containing this project

README

          

# ODataExampleGen
Generate example JSON packets for requests or responses for OData APIs.

Usage:

`dotnet ODataExampleGen -c[--csdl] someModel.csdl -u[--uri] -p[--propertyType] : : -e[--enumValue] : : -r[--primitiveValue] : : -b[--baseUri] https://graph.microsoft.com/beta` -d childNavProp

Example output:

```
{
"id": "id1",
"displayName": "A sample displayName",
"recurrence": "hourly",
"startDateTime": "2020-10-30T08:25:00.4673388Z",
"endDateTime": "2020-10-30T08:25:00.4675242Z",
"type": "grades",
"apiFilter": {
"@odata.type": "#myNamespace.powerSchoolApiFilter",
"schoolIds": [
"A sample of schoolIds",
"Another sample of schoolIds"
],
"schoolYears": [
"A sample of schoolYears",
"Another sample of schoolYears"
]
},
"runs@odata.bind": [
"https://graph.microsoft.com/beta/external/dataFlowHub/runs/id2",
"https://graph.microsoft.com/beta/external/dataFlowHub/runs/id3"
],
"source@odata.bind": "https://graph.microsoft.com/beta/external/dataFlowHub/sources/id4"
}
```