Spring boot API for an medical app