The Wayback Machine - https://web.archive.org/web/20200716105548/https://github.com/topics/mock-server
Skip to content
#

mock-server

Here are 357 public repositories matching this topic...

prism
lehphyro
lehphyro commented Apr 10, 2020

User story.
As a developer, I can change a referenced example file, so that I can see the changes after a request to prism.

Is your feature request related to a problem?
Prism only watches the spec file for changes and even if it changes, it doesn't reload referenced examples. This is useful because spec files can get extremely big so $ref usage is a must to keep it manageable.

shavo007
shavo007 commented Apr 19, 2016

Creating a new issue just to keep tabs.
#120

Related to the above pull request.

Need an option in drakov.run to watch the md files and reload.

Similar to:

grunt.registerTask('mock-api', 'Start drakov server', function() {
var done = this.async();

var drakovOptions = {
  sourceFiles: './doc/*.md',
  serverPort: 3000,
  autoOptions: true,
  delay: 1000,
  watch: true
};

drakov.run(drakovOp
luckylooke
luckylooke commented Aug 26, 2019

Hello

First of all, thank you open-sourcing your code, I understand it is not easy to maintain in wild public. I am deciding which mock server generator from OpenAPI v3 specification to use and "motivation" section in readme would really help people like me to choose.
I am expecting form such docs section to get insight why you created new library instead of using already existing solutions

madhurabhogate
madhurabhogate commented Jul 30, 2019

I have a spec file in which the example is provided in the definition.
Just because there is no examples it doesn't send a response.

Here's an example:

---
swagger: "2.0"
info:
  version: "1.0.0"
  title: "Swagger Petstore"
consumes:
- "application/json"
produces:
- "application/json"
paths:
  /pets:
    get:
      description: "Returns all pets from the system"
    

Improve this page

Add a description, image, and links to the mock-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mock-server topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.