Giter VIP home page Giter VIP logo

Comments (13)

jozsefsallai avatar jozsefsallai commented on May 30, 2024 6

<!-- RESPONSE --> and <!-- ENDRESPONSE --> is the old format which doesn't work anymore. Please use the new format.

```response:200
{
  "hello": "world"
}
```

from insomnia-documenter.

jozsefsallai avatar jozsefsallai commented on May 30, 2024 1

That is... very odd (especially since I'm using the npx method for one of my projects and it works just fine), but I'll look into this!

from insomnia-documenter.

jozsefsallai avatar jozsefsallai commented on May 30, 2024

Hello.

Try response:200 instead of response.

from insomnia-documenter.

lepepe avatar lepepe commented on May 30, 2024

I clone your repo to see if I'm doing something wrong but still not getting the response on the right side panel:
2021-07-28_14-20

from insomnia-documenter.

jozsefsallai avatar jozsefsallai commented on May 30, 2024

Just to confirm, does it work here? https://jozsefsallai.github.io/insomnia-documenter/#req_2a5bde603a3240b485d1b4877d53e6f3

Also can you tell me your browser (name + version) and the operating system you're using?

from insomnia-documenter.

lepepe avatar lepepe commented on May 30, 2024

Yes I can see the documenter example without any issue. I'm using Brave 1.18.75 and Arch Linux. I did installed the package instead of using npx and now I get the response example on the right panel. Could be related with npx?

from insomnia-documenter.

johan44co avatar johan44co commented on May 30, 2024

I have the same issue, I did compare your file insomnia.json in docs folser and apparently <!-- RESPONSE --> is not being replace with (```response) and this is could be the origin of the problem

from insomnia-documenter.

amirfaramarzi avatar amirfaramarzi commented on May 30, 2024

Hi, I have exactly the same problem, what should I do?

My operating system is Arch Linux and I use Chrome browser

Screenshot_20210930_093421
image

from insomnia-documenter.

johan44co avatar johan44co commented on May 30, 2024

@amirfaramarzi in your .json file you manually need to change <!-- RESPONSE --> for ```response

so your description block in the JSON should look something like this
"description": "```response\n{\n \"item\": {\n \"id\": 77,\n \"productName\": \"Original Frankfurter grüne Soße\",\n \"quantityPerUnit\": \"12 boxes\",\n \"unitPrice\": 130000,\n \"unitsInStock\": 32,\n \"unitsOnOrder\": 0,\n \"reorderLevel\": 15,\n \"discontinued\": 0,\n \"category\": {\n \"id\": 9,\n \"categoryName\": \"Demo\",\n \"description\": 0,\n \"picture\": 0\n },\n \"supplier\": {\n \"companyName\": \"Plutzer Lebensmittelgroßmärkte AG\",\n \"contactName\": \"Martin Bein\",\n \"contactTitle\": \"International Marketing Mgr.\",\n \"id\": 12,\n \"address\": {\n \"city\": \"Frankfurt\",\n \"country\": \"Germany\",\n \"phone\": \"(069) 992755\",\n \"postalCode\": 60439,\n \"region\": 0,\n \"street\": \"Bogenallee 51\"\n }\n }\n }\n}\n```"

from insomnia-documenter.

amirfaramarzi avatar amirfaramarzi commented on May 30, 2024

hi @johan44co

Is there no need to install the plugin ??

from insomnia-documenter.

johan44co avatar johan44co commented on May 30, 2024

amir just the insomnia documenter but for some reason the function that replaces <!-- RESPONSE --> and <!-- ENDRESPONSE --> does not work in some cases, it should work but also there is no error output when it fails, so if you to make it work in your documentation, just after you generate the .json file the next step with be replaced manually for (```response) and (```) respectly without the parenthesis as you see in the example above

from insomnia-documenter.

rajendrakumaryadav avatar rajendrakumaryadav commented on May 30, 2024

<!-- RESPONSE --> and <!-- ENDRESPONSE --> is the old format which doesn't work anymore. Please use the new format.

```response:200
{
  "hello": "world"
}

Really helpful, was looking for quite a long time... Search in number of blogs and videos. But none was having the proper information..

Thanks @jozsefsallai 🙏

from insomnia-documenter.

EsteveSegura avatar EsteveSegura commented on May 30, 2024

Why this is not on the documentation?

from insomnia-documenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.