Skip to content

hoverCard

Leon edited this page Oct 17, 2022 · 1 revision

/api/hoverCard/

Returns content to display in hovercard

  • URL

    /api/hoverCard/

  • Authentication:

    Logged in

    Not Blocked

  • Method:

    POST

  • URL Params

    None

  • Data Params

    Required:

    id=[integer]

    type=["user"]

  • Success Response:

    • Code: 200
      Content: { status : "success", type : user, userName : string, muenzenTotal : integer, missionsTotal : integer, buildingCount : integer}
  • Error Response:

    • Code: 400 BAD REQUEST
      Content: { status : "error", msg : {title: "Fehler Titel", content: "Fehler Text"} }
  • Sample Call:

        $.ajax({
            url: "/api/hoverCard",
            dataType: "json",
            type : "POST",
            data: {
              "id": 15,
              "type": "user"
            },
            success : function(r) {
              console.log(r);
            }
        });
Clone this wiki locally