question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example support for requests

See original GitHub issue

Is your feature request related to a problem? Please describe. I want to add examples for requests (just like they have in postman) to showcase the expected responses, when sharing with a team. This gives a place to share, modify and improve the responses a lot. This is usually the case when APIs are being discussed and designed, before the actual development.

This will also help generate expected openapi response definitions (using oneOf) from the pool of examples I have for a request.

Describe the solution you’d like Request can have an additional tab, called “examples” where I can input:

  • expected response HTTP status code (eg. 200)
  • expected response content type
  • expected response body (using the code editor) as raw text

It should allow me to add as many examples as I can add. For each status codes, I can have multiple examples (which is highly unusual when json schema differs, but why not).

Describe alternatives you’ve considered I’ve been relying on json schema to convert responses to their json schema, adding them to openapi as schemas and referencing them to responses manually.

Additional context I’ve prepared a pull request, which allows me to do so. Although, the UI is not appealing, yet it showcases a basic working prototype. Since I’ve add examples as a attribute to the request object, it happens to get synced automatically, without breaking anything.

List of examples image

Adding example image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
codeasashucommented, Sep 16, 2020

@develohpanda I’ve added a draft PR for review. Will add tests if everything looks good

1reaction
develohpandacommented, Sep 11, 2020

That sounds good. From an interface standpoint, it would be nice to define the tabs via a requestTabs array exported from the plugin, similar to how the documentActions and workspaceActions one works.

Feel free to reach out to me on Slack if you need any assistance, and/or create draft PRs for early reviews, so you don’t end up working too deep on an approach and have to then rework. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples of Support Requests - Envato Market Help Center
Now the item support policy is established the following are some examples of support requests that are and are not included in the...
Read more >
Support Requests Metric - KPI Examples - Klipfolio
The Support Requests metric helps you monitor the total number of incoming requests for your support team to handle. This metric will give...
Read more >
How to write good support requests - HPC Wiki
1 Never send support requests to staff members directly · 2 Do not manhandle us as simple “Let me Google that for you”...
Read more >
10 Common IT Support Requests and How to Reduce Ticket ...
10 Common IT Support Requests and How to Reduce Ticket Volume · 1. Problems Logging Into a Device or an Account · 2....
Read more >
How to write a support request - BrettTerpstra.com
How to write a support request · Be pleasant–maybe even kind–and set a level-headed tone · Be descriptive in the subject line ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found