Description
Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML.
The Request Hash will include also the pattern (regular expressions) of the fields, parameters, default values...
The output of this gem will be following the specification of Request Hashes: https://github.com/MarioRuiz/Request-Hash
The Request Hashes generated will be able to be used with any Ruby Http Client and it is adapted even better with nice_http gem: https://github.com/MarioRuiz/nice_http
A beautiful way to access and use the generated files is by using pry: https://github.com/pry/pry
To be able to generate random requests take a look at the documentation for nice_hash gem: https://github.com/MarioRuiz/nice_hash
This is an example of a generated request hash:
OpenApiImport alternatives and similar gems
Based on the "Mock" category.
Alternatively, view open_api_import alternatives based on common mentions on social networks and blogs.
-
WebMock
Library for stubbing and setting expectations on HTTP requests in Ruby. -
DuckRails
Development tool to mock API endpoints quickly and easily (docker image available) -
ActiveMocker
Generate mocks from ActiveRecord models for unit tests that run fast because they don’t need to load Rails or a database. -
Impersonator
Ruby library to record and replay object interactions -
Ruby DnsMock
DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server. -
Request Interceptor
Sinatra based foreign API simulation for your testsuite
Clean code begins in your IDE with SonarLint
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of OpenApiImport or a related project?