Create endpoint.c

creation