To test API’s, Postaman is a handy tool.

To Post JSON

Make sure to give header of “Content-Type” with value of “application/json” or rails wont be able to process the json