Optimum InfoSystem interview question

Write different rest api methods