2017-04-14 12 views
0

私はapi-blueprintの新しいユーザーです。私は文書の2行目で定義されたホストへの参照方法を見つけることができません。私は、ホストアドレスと、このようなエンドポイントの組み合わせを達成したい:api-blueprint定義されたホストへの参照方法

HOST: https://www.mybaseurl.com 
###API Request Example 
url: {{HOST}}/v1/api/token?key=partnerKey&secret=partnerSecret 

答えて

1

HOSTの利用でエンドポイントを定義する方法の答えは以下の通りです:

FORMAT: 1A 
HOST: https://www.mybaseurl.com 

# Name your API 

## Group API Requests 

## API Request Example [/v1/api/token?{key,secret}] 

+ Parameters 

    + key: partnerKey (string) - An unique identifier of the partner 
    + secret: partnerSecret (string) - An secret of the partner 

### Name of the action using the following HTTP method in brackets [GET] 

+ Request Plain Text Message 

    + Headers 

      Accept: text/plain 

+ Response 200 (text/plain) 

    + Headers 

      X-My-Message-Header: 42 

    + Body 

      Hello World! 
関連する問題