working api for posting repo