{"id":16820361,"url":"https://github.com/techniq/react-odata","last_synced_at":"2025-03-22T03:31:37.103Z","repository":{"id":57342003,"uuid":"81018543","full_name":"techniq/react-odata","owner":"techniq","description":"React component to declaratively fetch from OData v4 endpoints","archived":false,"fork":false,"pushed_at":"2020-05-13T09:35:38.000Z","size":259,"stargazers_count":32,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-13T00:56:07.828Z","etag":null,"topics":["odata","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techniq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-05T20:06:41.000Z","updated_at":"2025-01-02T09:41:03.000Z","dependencies_parsed_at":"2022-09-16T02:50:40.599Z","dependency_job_id":null,"html_url":"https://github.com/techniq/react-odata","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techniq%2Freact-odata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techniq%2Freact-odata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techniq%2Freact-odata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techniq%2Freact-odata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techniq","download_url":"https://codeload.github.com/techniq/react-odata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902929,"owners_count":20529114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["odata","react"],"created_at":"2024-10-13T10:56:24.130Z","updated_at":"2025-03-22T03:31:36.673Z","avatar_url":"https://github.com/techniq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-odata\n\nReact component to declaratively fetch from OData v4 endpoints\n\n## Install\n```\nyarn add react-odata\n```\nor\n```\nnpm install --save react-odata\n```\n\n## Usage\n### Import\n```js\nimport OData from 'react-odata';\n```\n\n### Basic\n```js\nconst baseUrl = 'http://services.odata.org/V4/TripPinService/People';\nconst query = { filter: { FirstName: 'Russell' } };\n\n\u003cOData baseUrl={baseUrl} query={query}\u003e\n  { ({ loading, error, data }) =\u003e (\n    \u003cdiv\u003e\n      { loading \u0026\u0026 {/* handle loading here */} }\n      { error \u0026\u0026 {/* handle error here */} }\n      { data \u0026\u0026 {/* handle data here */}}\n    \u003c/div\u003e\n  )}\n\u003c/OData\u003e\n``` \n- See [odata-query](https://github.com/techniq/odata-query) for supported `query` syntax\n\n### Passes remaining props to underlying `\u003cFetch /\u003e` component\n```js\n\u003cOData baseUrl=\"http://services.odata.org/V4/TripPinService/People\" options={{ credentials: 'include' }} /\u003e\n```\n- See [react-fetch-component](https://github.com/techniq/react-fetch-component) for additional props\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechniq%2Freact-odata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechniq%2Freact-odata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechniq%2Freact-odata/lists"}