Fix API views

Missing brackets for multiline string format