What is the purpose of the Host: parameter in the apiary?

What is the purpose of the parameter Host:

in the apiary. For example:

FORMAT: 1A
HOST: http://polls.apiblueprint.org/

      

+3
apiary.io apiary apiblueprint


source to share


1 answer


HOST

the header indicates what is the ultimate destination for your API deployment.

It is used by Apiary as a source location for proxy debugging and appears in code snippets as a place for requests.

You can also add suffixes which then propagate to all resources if you are not using root or want to use the URI version .



The layout and proxy also emulate the specified schema ( http

vs. https

).

Resources

  • HOST in specification
  • How it works (see the Traffic Inspector section)
  • What's new blogpost (see Pass-Through Proxy)
+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics