apipie / apipie-demo Goto Github PK
View Code? Open in Web Editor NEWA sample application showing the power of the Apipie gem
A sample application showing the power of the Apipie gem
I think I followed pretty much what you have in your demo, but when I go to
I get the following page:
No documentation found
We have not found any documentation for your API.
Follow further instructions on how to describe your controllers.
There must be some step I am neglecting. I know this isn't much to go on but if you would be willing to explore this with me, I would really appreciate it,.
Using the apipie-demo I put the following (wrong) url:
http://localhost:3000/apipie/1/twets
and I got "can't convert Symbol into Integer" instead of a 404 not found, is that an apipie bug?
Makes documentation generation failing
Caused by:
I18n::MissingTranslationData: translation missing: en.apipie.returns
/Users/me/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/i18n-1.12.0/lib/i18n.rb:394:in `handle_exception'
/Users/me/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/i18n-1.12.0/lib/i18n.rb:367:in `translate_key'
/Users/me/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/i18n-1.12.0/lib/i18n.rb:222:in `translate'
/Users/me/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/activesupport-7.0.4/lib/active_support/html_safe_translation.rb:13:in `translate'
/Users/me/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/actionview-7.0.4/lib/action_view/helpers/translation_helper.rb:91:in `translate'
/Users/me/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/apipie-rails-0.8.2/app/views/apipie/apipies/_method_detail.erb:40:in
My config:
Apipie.configure do |config|
config.app_name = "MyApp"
config.doc_base_url = "/apipie"
config.api_controllers_matcher = "#{Rails.root}/app/controllers/**/*.rb"
config.validate = false
end
But at http://localhost:3000/apipie it still shows the urls with "/api" prefix.
Is that intended? Because how will Apipie know V1::TweetsController belongs to api version 1 defined in the base controller? Will it Apipi automatically know because they reside in the same namespace (i.e module V1)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.