0
我正在使用在線Swagger編輯器(http://editor.swagger.io)和heroku-pets.yaml
示例。我改變了GET /
操作引入自定義標題token
:爲什麼Swagger Editor會爲自定義標題的操作顯示「未定義」標題?
paths:
/:
get:
parameters:
- name: limit
in: query
description: number of pets to return
type: integer
default: 11
minimum: 11
maximum: 10000
- name: token
in: header
description: token
type: string
但是當我做「試試吧」,有一個錯誤「錯誤找不到服務器或發生錯誤」,並且「頭」說undefined
。
任何想法可能是錯誤的,如何解決呢?
謝謝海倫!你能否給我提供一個例子,頭部和查詢參數是按請求的形式傳遞的,並獲取對象數組作爲響應。知道我高壓實施上述的情況下,我在預檢期間得到404錯誤。 –