[REST] make selection of output-format mandatory, support dot url syntax #5376

pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:rest-format-options changing 1 files +57 −32
  1. jonasschnelli commented at 1:24 PM on November 26, 2014: contributor
    1. Remove the default format (binary) because rest/block/<hash>/Hex would end up delivering binary data.
    2. List available formats when chosen format was not found (reduces need for documentation)
    3. Change url syntax to extension like format chosing (like rest/tx/<hash>.json (as originally mentioned in #2844)
  2. jonasschnelli force-pushed on Nov 26, 2014
  3. laanwj added this to the milestone 0.10.0 on Nov 27, 2014
  4. sipa commented at 10:30 AM on November 27, 2014: member

    Concept ACK, but I wouldn't do the case insensitivity. That just means more combinations to support in the future.

    Also, coding style (spaces after if etc).

  5. laanwj commented at 10:58 AM on November 27, 2014: member

    Agree with sipa. Please don't leave any wiggling room in the REST API. Aliasing is generally bad, for example with regard to webcaches and such. One URL should map to one query.

  6. jonasschnelli force-pushed on Nov 27, 2014
  7. jonasschnelli commented at 12:17 PM on November 27, 2014: contributor

    Agreed. It was a stupid idea to support uppercase/mixed-case URIs. Just removed the toLowercase transition. I also fixed the coding style (nit me if i didn't do it proper).

  8. laanwj commented at 12:21 PM on November 27, 2014: member

    utACK

  9. jonasschnelli cross-referenced this on Nov 27, 2014 from issue [REST] Post-Merge overhaul of the REST API by jonasschnelli
  10. jonasschnelli force-pushed on Nov 27, 2014
  11. jonasschnelli force-pushed on Nov 27, 2014
  12. jonasschnelli commented at 1:05 PM on November 27, 2014: contributor

    Update coding style by auto.-reformatting with the src/.clang-format file. Tell me if there are still uncommon formatting.

  13. jonasschnelli force-pushed on Nov 27, 2014
  14. laanwj commented at 1:06 PM on November 27, 2014: member

    Looks good to me now.

  15. [REST] make selection of output-format mandatory, support dot url syntax
    1. Remove the default format (binary) because `rest/block/<hash>/Hex` would end up delivering binary data.
    2. List available formats when chosen format was not found (reduces need for documentation)
    3. Change url syntax to dot extension like format chosing (like `rest/tx/<hash>.json`
    8a5c9513ba
  16. jonasschnelli force-pushed on Nov 27, 2014
  17. jgarzik commented at 1:11 PM on November 27, 2014: contributor

    Looks good, will test

  18. laanwj added the label RPC on Nov 28, 2014
  19. sipa commented at 3:03 PM on November 28, 2014: member

    Slightly tested ACK

  20. laanwj merged this on Dec 2, 2014
  21. laanwj closed this on Dec 2, 2014

  22. laanwj referenced this in commit fec0d100d5 on Dec 2, 2014
  23. laanwj referenced this in commit 90f7aa7778 on Dec 2, 2014
  24. reddink referenced this in commit 527b113237 on May 27, 2020
  25. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:55 UTC