Added endpoints parser

Parses endpoints in uri