目次

REST Client

情報

Unique Identifier humao.rest-client

設定

レスポンス

"rest-client.decodeEscapedUnicodeCharacters": true

コメント、区切り

変数

@hostname = api.example.com
@port = 8080
@host = {{hostname}}:{{port}}
@contentType = application/json
@createdAt = {{$datetime iso8601}}
@modifiedBy = {{$processEnv USERNAME}}

###

@name = hello

GET https://{{host}}/authors/{{name}} HTTP/1.1

###

PATCH https://{{host}}/authors/{{name}} HTTP/1.1
Content-Type: {{contentType}}

{
    "content": "foo bar",
    "created_at": "{{createdAt}}",
    "modified_by": "{{modifiedBy}}"
}

拡張子

GET

GET http://localhost:50000/api/get/xxx
Content-Type: application/json

参考