finished all api endpoints