{"id":16884552,"url":"https://github.com/timwis/koop-odata","last_synced_at":"2025-04-11T23:13:39.219Z","repository":{"id":140605980,"uuid":"39193847","full_name":"timwis/koop-odata","owner":"timwis","description":"OData API functionality for esri/koop","archived":false,"fork":false,"pushed_at":"2015-08-06T00:02:40.000Z","size":136,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T23:13:34.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timwis.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":"2015-07-16T11:45:13.000Z","updated_at":"2024-10-04T12:00:28.000Z","dependencies_parsed_at":"2023-03-13T03:39:11.950Z","dependency_job_id":null,"html_url":"https://github.com/timwis/koop-odata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fkoop-odata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fkoop-odata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fkoop-odata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fkoop-odata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timwis","download_url":"https://codeload.github.com/timwis/koop-odata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492877,"owners_count":21113163,"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":[],"created_at":"2024-10-13T16:29:12.730Z","updated_at":"2025-04-11T23:13:39.186Z","avatar_url":"https://github.com/timwis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OData Interface for [Koop](https://github.com/koopjs/koop)\nThis plugin makes it possible to interact with Koop's [many providers](https://github.com/koopjs/koopjs.github.io/blob/master/docs/providers.md)\nusing an [OData-compliant API](http://www.odata.org/).\n\n**Note:** This plugin only works when used with these versions of [koop](https://github.com/timwis/koop) and [koop-ckan](https://github.com/timwis/koop-ckan). They've been submitted as pull requests, so this plugin is more of a proof of concept until they're merged.\n\n# Installation\n```bash\nnpm install koop-odata\n```\n\n# Registering the plugin\nTo use this plugin in your koop instance, register it the same way you'd register providers as demonstrated in\n[koop's documentation](https://github.com/koopjs/koop#registering-providers)\n\n```javascript\nkoop.register(odata);\n```\n\n# Usage\nAppend `/odata` to your normal query to interact with the resource with an OData API, for instance:\n\n`http://localhost:1337/ckan/phl/heart-healthy-screening-sites/odata?\u0026$filter=ZIP_CODE%20eq%2019146`\n\nwill produce an OData XML object like:\n\n```xml\n\u003cd\u003e\n\t\u003cproperties\u003e\n\t\t\u003c_id\u003e4\u003c/_id\u003e\n\t\t\u003c﻿X\u003e-75.17548258333102\u003c/﻿X\u003e\n\t\t\u003cY\u003e39.94122652163324\u003c/Y\u003e\n\t\t\u003cOBJECTID\u003e4\u003c/OBJECTID\u003e\n\t\t\u003cDATE_\u003e2015-04-06T00:00:00\u003c/DATE_\u003e\n\t\t\u003cTIME\u003e10:30 AM - 12 PM\u003c/TIME\u003e\n\t\t\u003cADDRESS\u003e1941 Christian Street\u003c/ADDRESS\u003e\n\t\t\u003cLOCATION /\u003e\n\t\t\u003cCITY\u003ePhiladelphia\u003c/CITY\u003e\n\t\t\u003cSTATE\u003ePA\u003c/STATE\u003e\n\t\t\u003cZIP_CODE\u003e19146\u003c/ZIP_CODE\u003e\n\t\t\u003cSCREENING_TYPE\u003eBlood Pressure Only\u003c/SCREENING_TYPE\u003e\n\t\t\u003cCONTACT_INFORMATION\u003eContact Jefferson University Hospital - Blood Pressure Plus\u003c/CONTACT_INFORMATION\u003e\n\t\t\u003cPHONE_NUMBER\u003e215-955-3817\u003c/PHONE_NUMBER\u003e\n\t\u003c/properties\u003e\n\u003c/d\u003e\n```\n\n# Supported\n* `$filter=` with eq, ne, lt, le, gt, ge, and, or\n\n# Unsupported\n* `$select=` (requires more significant changes to koop codebase)\n* `$top=` (requires more significant changes to koop codebase)\n* `$skip=` (requires more significant changes to koop codebase)\n* Individual resources, ie `People('johndoe')`\n* Probably other methods that just haven't been coded yet","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwis%2Fkoop-odata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimwis%2Fkoop-odata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwis%2Fkoop-odata/lists"}