If you're only going to use JSON you should be able to use your own API in your project. If you have an API and controllers with views you can split them. However if everything is JSON you're creating multiple endpoints for the same content, that would not make sense to me!
Jan 20, 2019
3
Level 1
Restful API
Hope you all doing good! I would like to make Restful API but I wonder how it must be used in the same project ? Do I make two types of Controller one will be for Restful API and another for returning views with jsons? What is the right way to do it? Thank you!
Please or to participate in this conversation.