Implement prefix check and path versioning check for API