eosrio / bp-info-standard

JSON Standard for Block Producer Information on EOSIO Blockchains
48 stars 58 forks source link

Show the port numbers or not on API endpoints when port number is 'standard' #18

Open matthewdarwin opened 6 years ago

matthewdarwin commented 6 years ago

The readme specifies that port numbers should be specified on API endpoints:

api_endpoint: EOSIO HTTP endpoint http://host:port ssl_endpoint: EOSIO HTTPS endpoint https://host:port

However, when it is a standard port (80 or 443), the normal convention is to leave it off, when it is the standard port (https://tools.ietf.org/html/rfc3986#section-3.2.3)

So should the readme be amended to follow RFC 3986 convention or we always want the port number?

The validator at https://validate.eosnation.io currently follwows RFC 3986, which is not aligned to the documentation.

nsjames commented 6 years ago

I think for congruency they should be left on. In any case if any user or machine navigates to the url it will strip them but for machines it'll serve as a delimiter for standardized URLs

blokcrafter-dan commented 3 years ago

I think we should follow RFC's when one is available. Here, one is. Drop the port if it's the standard port.