Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails api

jQuery.ajax({
  type: 'POST',
  url: '/people',
  dataType: 'json',
  contentType: 'application/json',
  data: JSON.stringify({ person: { firstName: "Yehuda", lastName: "Katz" } }),
  success: function(json) { }
});
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #rails #api
ADD COMMENT
Topic
Name
4+1 =