Git Product home page Git Product logo

Comments (5)

Korbeil avatar Korbeil commented on June 19, 2024 1

This issue has been fixed since #412 has been merged. (I actually don't understand why github didn't closed this issue since it was linked 🤔)

from janephp.

chadyred avatar chadyred commented on June 19, 2024

Does this tool act with interceptor more Mocking concept like nock : you define your own response ?

It will intercept an HTTPS GET request to /repos/atom/atom/license, reply with a status 200, and the body will contain a (partial) response in JSON we given.

https://github.com/nock/nock#read-this---about-interceptors

I think about the network layer, if your fake API go down. In other word, fake API live on a Network layer, with real response but depends this Network layer.

I read more here about the realistic side between local vs networking fake API :https://stoplight.io/mock-api-guide/basics/

from janephp.

Korbeil avatar Korbeil commented on June 19, 2024

Actually https://github.com/typicode/json-server does run a "real" API, my idea here was to make a "big" API for each component that regroup everything we should test. It is not mandatory to test everything, but some stuff like Authentication should be tested for example ~

from janephp.

Korbeil avatar Korbeil commented on June 19, 2024

Another solution would be https://github.com/stoplightio/prism (thanks @damienalexandre for sharing !), it looks really awesome !

from janephp.

Jaesin avatar Jaesin commented on June 19, 2024

I think this is a great idea. I usually add a middleware that returns mock responses that are generated using the serializer. An example: https://github.com/apigee/apigee-mock-client-php

from janephp.

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.