Git Product home page Git Product logo

apivore's People

Contributors

adamcohen avatar ashoda avatar chrisrbnelson avatar ekalinichev avatar gingermusketeer avatar gwagener avatar gwshaw avatar hornc avatar jszwedko avatar leondewey avatar mastfish avatar mastfissh avatar matt-wratt avatar nblumoe avatar sotayamashita avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

apivore's Issues

Enable to use it with OpenAPI 3.0

TODO (Order of priority)

  • Understand how it works.
  • Commit OpenAPI3.0 specification.
  • Enable to load file from local.
  • Enable to use the format with Yaml and JSON.
  • Update rspec
  • Setup TravisCI, dependabot and Codecov
  • Add an appropriate license.
  • Add a comment to the westfieldlabs#113
  • Add ## Installation section to README.md.
  • Add ## Usage section for [:get, :post, :put, :patch, :delete] to README.md.
  • Add ## RoR support version section to README.md
    • [ ok ] Rails 5.2
  • Merge westfieldlabs#117 into feature/openapi-v3
    • Keep effort commit info
  • Add a post which describe how to add an appropriate license for Apache2.0.

Memo

gem "rspec-rails"
+ gem 'apivore',  github: "sotayamashita/apivore"

Troubleshooting

ActionController::UnknownFormat:

โ†“

# in one controller
class API::ApplicationController
    before_action :set_default_response_format
    def set_default_response_format
        request.format = :json
    end

or

# in rspec
it { expect(subject).to validate(:get, "~/", 200, {"_header": "Content-Type: application/json"}) }

References

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.