Title: Best practice for registering GraphQL with SmartAPI · Issue #3 · SmartAPI/smartapi_registry · GitHub
Open Graph Title: Best practice for registering GraphQL with SmartAPI · Issue #3 · SmartAPI/smartapi_registry
X Title: Best practice for registering GraphQL with SmartAPI · Issue #3 · SmartAPI/smartapi_registry
Description: What is the best practice for registering graphql APIs? This is a different framework than OpenAPI (see any number of blog posts). There are converters, but there is a big impedance mismatch between the frameworks meaning any automated c...
Open Graph Description: What is the best practice for registering graphql APIs? This is a different framework than OpenAPI (see any number of blog posts). There are converters, but there is a big impedance mismatch betwee...
X Description: What is the best practice for registering graphql APIs? This is a different framework than OpenAPI (see any number of blog posts). There are converters, but there is a big impedance mismatch betwee...
Opengraph URL: https://github.com/SmartAPI/smartapi_registry/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Best practice for registering GraphQL with SmartAPI","articleBody":"What is the best practice for registering graphql APIs? This is a different framework than OpenAPI (see any number of blog posts). There are converters, but there is a big impedance mismatch between the frameworks meaning any automated conversion will likely be unsatisfactory.\r\n\r\nFor example, using https://github.com/yarax/swagger-to-graphql on MyChem.info\r\n\r\n```\r\n$ curl http://smart-api.info/api/metadata/8f08d1446e0bb9c2b323713ce83e2bd3 \u003e mychem.json\r\n$ swagger-to-graphql --swagger mychem.json \r\ntype get_drug_drugid {\r\n # default field\r\n empty: String\r\n}\r\n\r\ntype get_query {\r\n # default field\r\n empty: String\r\n}\r\n\r\n# DrugBank ID, InCHIKey, CHEBI ID, CHEMBL ID\r\ninput param_get_drug_drugid_drugid {\r\n # default field\r\n empty: String\r\n}\r\n\r\n# Query string. Examples \"Fludara\", \"CHEMBI:63599\", \"DB01073\".\r\ninput param_get_query_q {\r\n # default field\r\n empty: String\r\n}\r\n\r\ntype Query {\r\n viewer: viewer\r\n}\r\n\r\ntype viewer {\r\n get_query(q: param_get_query_q): get_query\r\n get_drug_drugid(drugid: param_get_drug_drugid_drugid): get_drug_drugid\r\n}\r\n```\r\n\r\nit's not clear what the best practice should be. Should we create a stub entry for the main graphql path? What is the best way of pointing to the garphql schema?","author":{"url":"https://github.com/cmungall","@type":"Person","name":"cmungall"},"datePublished":"2017-12-19T16:45:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/3/smartapi_registry/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fca1677a-6a66-e8a4-58fe-cc84e49e3add |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B31A:D24C7:235AA9A:2D5808B:699016C7 |
| html-safe-nonce | 3dfc100a52e75d886397f641b6a7e647ea057dbdaa4a4ce6bff0bf1ad6123bf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzFBOkQyNEM3OjIzNUFBOUE6MkQ1ODA4Qjo2OTkwMTZDNyIsInZpc2l0b3JfaWQiOiIzODgxOTc4NjIyODY1NTc3NjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fb8412a26a7d1eee2a1ab61283d7a0dc4520c481b8b340b2480ced710ea16b0f |
| hovercard-subject-tag | issue:283297404 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SmartAPI/smartapi_registry/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d1bcbe41f28c356c8ec37511969935ec71c60e33a83832655d543245c462bd40/SmartAPI/smartapi_registry/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d1bcbe41f28c356c8ec37511969935ec71c60e33a83832655d543245c462bd40/SmartAPI/smartapi_registry/issues/3 |
| og:image:alt | What is the best practice for registering graphql APIs? This is a different framework than OpenAPI (see any number of blog posts). There are converters, but there is a big impedance mismatch betwee... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cmungall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/SmartAPI/smartapi_registry git https://github.com/SmartAPI/smartapi_registry.git |
| octolytics-dimension-user_id | 24528940 |
| octolytics-dimension-user_login | SmartAPI |
| octolytics-dimension-repository_id | 103380911 |
| octolytics-dimension-repository_nwo | SmartAPI/smartapi_registry |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103380911 |
| octolytics-dimension-repository_network_root_nwo | SmartAPI/smartapi_registry |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width