Fix a H302 pep error in the api

part of blueprint rest-api-base

Change-Id: Icb22572302a98ae43772fd3ed31225cb55bd8b9a