Show Person - GeekBrainsCommunityofAlumni/Statistics GitHub Wiki

Show Person

  • URL: /person/{id}
  • Method: GET
  • URL Params:
    • Required: id=[integer]
  • Data Params: None
  • Success Response:
    • Code: 200
    • Content: {id: 1, name: "Putin"}
  • Error Response:
    • Code: 404
    • Content: {errorMessage: "User not found"}
  • Simple Call:
    $.ajax({
      url: "/person/1",
      dataType: "json",
      type : "GET",
      success : function(r) {
        console.log(r);
      }
    });
⚠️ **GitHub.com Fallback** ⚠️