NAV

Interview API Specification v0.1.0

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

Interview Programming API specification based on the OpenAPI 3.0.3 specification.

Base URLs:

Email: Support

tooltips

APIs for tooltip management

get_tooltip

Code samples

curl --request GET \
  --url https://thuo-interview.pages.dev/api/tooltips/123 \
  --header 'Accept: application/json'
fetch("https://thuo-interview.pages.dev/api/tooltips/123", {
  "method": "GET",
  "headers": {
    "Accept": "application/json"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://thuo-interview.pages.dev/api/tooltips/123",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Accept: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

GET /tooltips/{tooltip_id}

Returns the specified tooltip content.

Parameters

Name In Type Required Description
tooltip_id path number true ID of the tooltip to fetch

Example responses

200 Response

{"id":123,"content":"# This is a tooltip\n\nThis is a tooltip content"}

Responses

Status Meaning Description Schema
200 OK valid crendentials Inline
404 Not Found tooltip not found None

Response Schema

Status Code 200

TooltipResponse

Name Type Required Restrictions Description
» id number true none none
» content string true none none