post put get delete methods of rest api