Api Root
GET
/api
const url = 'http://localhost:8000/api';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8000/apiResponses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
example