working API with commented code useful in future
working API with get functionality
working API with get functionality