Api.
I have $dinetype variable obtained from the user. But I would like to give response based on what value has …