endpoint class