Added missing end and do, also added path params spec