completed the api for planners