Make a POST request to the API.
API endpoint
Request body (will be JSON-stringified)
Promise resolving to ApiResponse with data or error
const response = await apiPost<Term>('/terms', { text: 'hello', langId: 1 }); Copy
const response = await apiPost<Term>('/terms', { text: 'hello', langId: 1 });
Make a POST request to the API.