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


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

+2


source







All Articles