Last updated 1 year ago
The model ID
const response = await fetch('https://cm.test/api/areas', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('https://cm.test/api/cities', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('https://cm.test/api/countires', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('https://cm.test/api/countires/{model}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "message": "text" }
const response = await fetch('https://cm.test/api/areas/{model}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('https://cm.test/api/cities/{model}', { method: 'GET', headers: {}, }); const data = await response.json();