-
Notifications
You must be signed in to change notification settings - Fork 256
Developing in API mode
Justin Coyne edited this page Jul 13, 2018
·
2 revisions
If you want to just make an API with Blacklight 7 (avoiding the UI components), do the following:
rails new my_api --api
- Add
gem 'blacklight'
to theGemfile
andbundle install
rails generate blacklight:install
- Add
include ActionController::MimeResponds
toApplicationController
in order to providerespond_to
- Add a
app/views/catalog/index.html.erb
to prevent blacklight from rendering the welcome message.