finish api endpoints