📜  rails api - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:17.344000             🧑  作者: Mango

代码示例1
jQuery.ajax({
  type: 'POST',
  url: '/people',
  dataType: 'json',
  contentType: 'application/json',
  data: JSON.stringify({ person: { firstName: "Yehuda", lastName: "Katz" } }),
  success: function(json) { }
});