Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting JSONAPI response types to work correctly in Rails 5 #112

Open
jsmestad opened this issue Jan 8, 2018 · 2 comments
Open

Getting JSONAPI response types to work correctly in Rails 5 #112

jsmestad opened this issue Jan 8, 2018 · 2 comments

Comments

@jsmestad
Copy link

jsmestad commented Jan 8, 2018

We are using jsonapi-resources for our API and Skylight reports our data back as "text" regardless of having a registered mime type. Is there a way to get Skylight to see these responses as JSON?

@jsmestad jsmestad changed the title Getting response types to work correctly in Rails 5 w/ JSONAPI Getting JSONAPI response types to work correctly in Rails 5 Jan 8, 2018
@wycats
Copy link
Contributor

wycats commented Jan 8, 2018

@jsmestad how are you registering the JSONAPI mime type in Rails?

@jsmestad
Copy link
Author

jsmestad commented Jan 8, 2018

@wycats the code I linked is executed when you load the gem (I believe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants