creating api for posting greets