Comments (5)
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.
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.
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.
Another solution would be https://github.com/stoplightio/prism (thanks @damienalexandre for sharing !), it looks really awesome !
from janephp.
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)
- Empty String for Date
- Warning: Undefined array key "" produces an Uncaught TypeError
- Content-Type `application/json;charset=UTF-8` is not serialized/deserialized as JSON
- Error in BodyParameterGenerator::convertParameterType when generating HOT 1
- PHP Warning: Undefined array key "object" in /home/xxx/projects/camunda-api-client/vendor/jane-php/open-api-3/Generator/Parameter/NonBodyParameterGenerator.php on line 197
- Bump symfony/serializer to 7.0 in jane-php/open-api-runtime HOT 1
- Consider allowing int for `number` type
- Direct dependency php-http/message-factory is abandoned HOT 2
- Bump nikic/php-parser to latest version HOT 1
- Jane 7.6.0 relies on Symfony 7.0? HOT 1
- Wrong type for array
- Endpoints uri's are not relative to the server>url
- OpenAPI 3.0 binary string format not supported properly HOT 2
- Nullable required properties during denormalization
- Config file .jane does not exist HOT 1
- Generated code is not compatible with `symfony/serializer` 7 HOT 3
- Endpoints with scalar return values have invalid return types
- JsonSchema DenormalizerGenerator does not unset data in else branch
- Uncaught Error: Call to undefined method `Jane\Component\JsonSchemaRuntime\Reference::getDefault()` in `NonBodyParameterGenerator.php:164`
- Deprecations for GenerateCommand::configure()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from janephp.