For the case where $f(x)$ is a constant $a$, first switch variable and write
$$-\frac {x''}{[x']^3 }\sqrt y=a$$ Now, reduction of order $p=x'$
$$\frac {p'}{p^3}=-\frac a{\sqrt y}\implies p=\pm \frac{1}{\sqrt{4 a \sqrt{y}+ c_1}}$$
$$x'=\pm \frac{1}{\sqrt{4 a \sqrt{y}+ c_1}}\implies x+c_2=\pm\frac{\left(2 a \sqrt{y}-c_1\right) \sqrt{4 a \sqrt{y}+c_1}}{6 a^2}$$ Squaring and using $z=\sqrt{y}$
$$16 a^3 z^3-12 a^2 c_1 z^2+c_1^3=36a^4(x+c_2)^2 \tag 1$$
Assuming $c_2=0$ and $z(0)=0$ imply $c_1=0$ which gives in the real domain
$$z=\sqrt[3]{\frac{9 a }{4}x^2} \implies y=\Bigg[\frac{9 a }{4}\Bigg]^{\frac 23} \, x^{\frac 43}$$
Otherwise, we just need to solve the cubic equation $(1)$ in $z$ .