Skip to content

Instantly share code, notes, and snippets.

@InsulaVentus
Last active August 29, 2019 09:15
Show Gist options
  • Save InsulaVentus/2393370f1dedd8d2b7267fe6df3d94de to your computer and use it in GitHub Desktop.
Save InsulaVentus/2393370f1dedd8d2b7267fe6df3d94de to your computer and use it in GitHub Desktop.
$ tree test
test
├── http-client.env.json
└── rest-api.http

http-client.env.json

{
  "development": {
    "baseUrl": "http://localhost:8080",
    "credentials": "secret"
  },
  "test": {
    "baseUrl": "https://restapi-test.domain.com",
    "credentials": "secret"
  },
  "prod": {
    "baseUrl": "https://restapi.domain.com",
    "credentials": "secret"
  }
}

rest-api.http

GET {{baseUrl}}/some-api/v1/pathz
Accept: */*
Cache-Control: no-cache
Authorization: Basic {{credentials}}

###

GET {{baseUrl}}/some-api/v1/path
Accept: */*
Cache-Control: no-cache
Authorization: Basic {{credentials}}
$ tree .git/info
.git/info/
└── exclude

exclude

test/*.env.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment