8000 GitHub - mindfulchefuk/vandal_ui: Ruby gem for installing Vandal
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mindfulchefuk/vandal_ui

 
 

Repository files navigation

Vandal UI

This is a Rails engine for Graphiti APIs. It has two main functions:

  • rake vandal:install will copy static files to public/<api_namespace>.
  • Mounting the engine adds an endpoint for a dynamically-generated schema file:
# config/routes.rb

scope path: ApplicationResource.endpoint_namespace, defaults: { format: :jsonapi } do
  # ... routes ...

  mount <
533D
span class="pl-v">VandalUi::Engine, at: '/vandal'
end

If ApplicationRecord.endpoint_namespace is /api/v1, you'd get a /api/v1/vandal/schema.json that would be referenced when loading the UI.

About

Ruby gem for installing Vandal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 78.4%
  • HTML 19.4%
  • Shell 2.2%
0