We've moved discussions to Discord

Base level API setup

Hello. I have searched the forums for this but couldn't quite find the answer. My requirement is pretty simple. I just want to create a single model for 'Movies' and then retrieve the complete list through the API with the bearer token. The model has no relationship with the User models, just stand alone. What is the most efficient way of achieving this? Thanks!
Brian Carpenter
Did you figure this out?
Because API token is tied to a user, what I do is create an API user and generates a token. Or you can have an admin user and generates a token for that. Either way, you need to have a user if you want to use the default Jumpstart API setup. 

Then you create movies_controller in app/controllers/api/v1 and create an index action that grabs the complete list of movies. 
Notifications
You’re not receiving notifications from this thread.