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.
WebMock8.9 0.0 L4 OpenApiImport VS WebMockLibrary for stubbing and setting expectations on HTTP requests in Ruby.
DuckRails7.1 0.0 L4 OpenApiImport VS DuckRailsDevelopment tool to mock API endpoints quickly and easily (docker image available)
ActiveMocker4.3 0.0 L4 OpenApiImport VS ActiveMockerGenerate mocks from ActiveRecord models for unit tests that run fast because they don’t need to load Rails or a database.
Impersonator2.1 0.0 OpenApiImport VS ImpersonatorRuby library to record and replay object interactions
Ruby DnsMock1.5 1.7 OpenApiImport VS Ruby DnsMockDNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server.
TestXml1.4 0.0 L5 OpenApiImport VS TestXmlSmall library to test your xml with Test::Unit or RSpec
Request InterceptorSinatra 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?