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.
- Host: GitHub
- URL: https://github.com/garethj-msft/odataexamplegen
- Owner: garethj-msft
- Created: 2020-10-30T06:03:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T08:57:42.000Z (almost 5 years ago)
- Last Synced: 2025-02-12T22:49:43.269Z (12 months ago)
- Topics: example, json, odata
- Language: C#
- Homepage:
- Size: 567 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
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"
}
```