added specs for endpoint