Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
TODO/WIP: Write a gem description
Integrates swagger-ui with your "grapified" Rails application.
Add swagger compliant documentation to your grape API
An opinionated micro-framework for creating REST-like APIs in Ruby
Add this line to your application's Gemfile:
gem 'grape-swagger-ui'
And then execute:
$ bundle
Or install it yourself as:
$ gem install grape-swagger-ui
class YourAPI < Grape::API
version 'v1'
format :json
...
add_swagger_documentation :add_version => true,
:base_path => '/api'
end
See https://github.com/ruby-grape/grape-swagger#configure for more configuration settings.
If your api path is "api/v1" just go to
http://host:port/api/swagger
else
Generate the main layout for customizations
rails generate swagger:layout [TEMPLATE_ENGINE]
and change the initializer. Currently supported: ERB, HAML, SLIM.
Since this is a seperate layout and if you want to use this in your staging environment you need to precompile it.
#staging.rb
config.assets.precompile += %w(swagger_ui.js swagger_ui.css swagger_ui_print.css swagger_ui_screen.css)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)MIT License, full text of license see here
Free Software, Fuck Yeah!
FAQs
Unknown package
We found that grape-swagger-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.