Title: [ISSSUE] Standardize Response Format for Both POST and GET Calls · Issue #4 · Zipstack/unstract-python-client · GitHub
Open Graph Title: [ISSSUE] Standardize Response Format for Both POST and GET Calls · Issue #4 · Zipstack/unstract-python-client
X Title: [ISSSUE] Standardize Response Format for Both POST and GET Calls · Issue #4 · Zipstack/unstract-python-client
Description: The current response format varies between POST and GET calls. In one response, the data is returned under the message key, while in another, it is under the execution_result key. { "pending": false, "execution_status": "COMPLETED", "sta...
Open Graph Description: The current response format varies between POST and GET calls. In one response, the data is returned under the message key, while in another, it is under the execution_result key. { "pending": fals...
X Description: The current response format varies between POST and GET calls. In one response, the data is returned under the message key, while in another, it is under the execution_result key. { "pending&q...
Opengraph URL: https://github.com/Zipstack/unstract-python-client/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ISSSUE] Standardize Response Format for Both POST and GET Calls","articleBody":"The current response format varies between POST and GET calls. In one response, the data is returned under the message key, while in another, it is under the execution_result key.\r\n\r\n```json\r\n{\r\n \"pending\": false,\r\n \"execution_status\": \"COMPLETED\",\r\n \"status_code\": 200,\r\n \"message\": [\r\n {\r\n \"file\": \"Qualys_Quotation_Renewal_04-30-2024.pdf\",\r\n \"status\": \"Success\",\r\n \"result\": {},\r\n \"metadata\": {}\r\n }\r\n ]\r\n}\r\n```\r\n\r\n```Json\r\n{\r\n \"pending\": false,\r\n \"execution_status\": \"COMPLETED\",\r\n \"error\": null,\r\n \"extraction_result\": [\r\n {\r\n \"file\": \"Dup_Qualys_Quotation_Renewal_04-30-2024.pdf\",\r\n \"status\": \"Success\",\r\n \"result\": {},\r\n \"metadata\": {}\r\n }\r\n ],\r\n \"status_code\": 200\r\n}\r\n```\r\n**Requirements**\r\n- Standardize the response structure for both `POST` and `GET` calls to ensure consistent key names.\r\n- Decide on a single key (e.g., `execution_result`) for returning data and ensure both response types follow this format.\r\n- Update the `check_execution_status` function to return the standardized response structure.","author":{"url":"https://github.com/muhammad-ali-e","@type":"Person","name":"muhammad-ali-e"},"datePublished":"2024-10-30T04:38:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/unstract-python-client/issues/4"}
| 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:36f1d58a-c1f8-978b-b9df-c498edf7e29b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A09A:B9877:4A1F07:670B4C:696E584E |
| html-safe-nonce | 8088cc1d2a3f4451ab08459a9e83b749743c8016e3e9294f999a3f9de487d717 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDlBOkI5ODc3OjRBMUYwNzo2NzBCNEM6Njk2RTU4NEUiLCJ2aXNpdG9yX2lkIjoiMTU4MTk3NDM1MTEwNTY0NDYyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e5ce700c30734d44a1af6a7f8cd3e1bada5ce9963d12243775711a003bd5d237 |
| hovercard-subject-tag | issue:2622877248 |
| 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/Zipstack/unstract-python-client/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf5ee83faefdc64352047521ec8e2dde62f632ca8157d73c677c9a2660554c96/Zipstack/unstract-python-client/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf5ee83faefdc64352047521ec8e2dde62f632ca8157d73c677c9a2660554c96/Zipstack/unstract-python-client/issues/4 |
| og:image:alt | The current response format varies between POST and GET calls. In one response, the data is returned under the message key, while in another, it is under the execution_result key. { "pending": fals... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | muhammad-ali-e |
| hostname | github.com |
| expected-hostname | github.com |
| None | f68b42d371252b0f236260d6234f4304a806fe5ac43d59faa21fb59d80df103b |
| turbo-cache-control | no-preview |
| go-import | github.com/Zipstack/unstract-python-client git https://github.com/Zipstack/unstract-python-client.git |
| octolytics-dimension-user_id | 89070934 |
| octolytics-dimension-user_login | Zipstack |
| octolytics-dimension-repository_id | 818240010 |
| octolytics-dimension-repository_nwo | Zipstack/unstract-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 818240010 |
| octolytics-dimension-repository_network_root_nwo | Zipstack/unstract-python-client |
| 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 | 6b74bc8dbcd10b5d69fd9ee9d2cfdc8b35e18a4c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width