Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

refactor: migrate http api to use hapi 18 #1844

Merged
merged 49 commits into from
Feb 5, 2019
Merged

refactor: migrate http api to use hapi 18 #1844

merged 49 commits into from
Feb 5, 2019

Commits on Jan 31, 2019

  1. refactor: gateway for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    4c320e8 View commit details
    Browse the repository at this point in the history
  2. refactor: /api/v0/version for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    69ef7bd View commit details
    Browse the repository at this point in the history
  3. refactor: /api/v0/shutdown for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    641a7c4 View commit details
    Browse the repository at this point in the history
  4. refactor: /ip/v0/id for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    fc0f044 View commit details
    Browse the repository at this point in the history
  5. refactor: /api/v0/bootstrap* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    665297f View commit details
    Browse the repository at this point in the history
  6. refactor: error handler for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    3e6f9de View commit details
    Browse the repository at this point in the history
  7. refactor: simplify gateway and use error handler

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    f57ab08 View commit details
    Browse the repository at this point in the history
  8. refactor: simplify /api/v0/bootstrap to use error handler

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    ce4f1da View commit details
    Browse the repository at this point in the history
  9. fix: gateway tests

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    723f20b View commit details
    Browse the repository at this point in the history
  10. refactor: /api/v0/block* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    2071f50 View commit details
    Browse the repository at this point in the history
  11. refactor: switch default error code to 0

    Infer error code from status code if not set.
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    99de158 View commit details
    Browse the repository at this point in the history
  12. fix: return value for bad request to block endpoints

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    08728a6 View commit details
    Browse the repository at this point in the history
  13. refactor: /api/v0/object* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    9584146 View commit details
    Browse the repository at this point in the history
  14. feat: log all errors if DEBUG env var is set

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    70f0598 View commit details
    Browse the repository at this point in the history
  15. refactor: /api/v0/pin* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    ebc415a View commit details
    Browse the repository at this point in the history
  16. fix: pin tests

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    1709fa1 View commit details
    Browse the repository at this point in the history
  17. refactor: /api/v0/add /api/v0/cat & /api/v0/get for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    beed859 View commit details
    Browse the repository at this point in the history
  18. fix: pin tests

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    7d2205e View commit details
    Browse the repository at this point in the history
  19. chore: remove .only

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    137fea8 View commit details
    Browse the repository at this point in the history
  20. refactor: /api/v0/repo* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    b4c9d5d View commit details
    Browse the repository at this point in the history
  21. refactor: /api/v0/config* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    49358d3 View commit details
    Browse the repository at this point in the history
  22. refactor: better logging, less boilerplate

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    eb212f9 View commit details
    Browse the repository at this point in the history
  23. refactor: mfs for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    149ec34 View commit details
    Browse the repository at this point in the history
  24. chore: remove .only

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    3f4e583 View commit details
    Browse the repository at this point in the history
  25. refactor: use hapi logger, do not repeat logs

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    4606f9d View commit details
    Browse the repository at this point in the history
  26. chore: update mfs dependency

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    1e1777a View commit details
    Browse the repository at this point in the history
  27. refactor: /api/v0/ping for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    a2c8fa0 View commit details
    Browse the repository at this point in the history
  28. refactor: /api/v0/swarm* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    4ee90b6 View commit details
    Browse the repository at this point in the history
  29. refactor: /api/v0/bitswap* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    63c6c5f View commit details
    Browse the repository at this point in the history
  30. refactor: use pretty print unless in production env

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    10d6b73 View commit details
    Browse the repository at this point in the history
  31. refactor: use pretty print unless in production env

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    9707d94 View commit details
    Browse the repository at this point in the history
  32. refactor: /api/v0/file/ls for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    16ef0d8 View commit details
    Browse the repository at this point in the history
  33. refactor: /api/v0/pubsub* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    ade3f09 View commit details
    Browse the repository at this point in the history
  34. refactor: /api/v0/debug/metrics/prometheus for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    5beae70 View commit details
    Browse the repository at this point in the history
  35. fix: promisify tar pack entry

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    7ec3d9e View commit details
    Browse the repository at this point in the history
  36. refactor: /webui for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    a38cca5 View commit details
    Browse the repository at this point in the history
  37. refactor: /api/v0/dns for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    5993727 View commit details
    Browse the repository at this point in the history
  38. refactor: /api/v0/key* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    395910e View commit details
    Browse the repository at this point in the history
  39. refactor: /api/v0/stats* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    b2ee66f View commit details
    Browse the repository at this point in the history
  40. refactor: /api/v0/resolve for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    9a5b663 View commit details
    Browse the repository at this point in the history
  41. refactor: /api/v0/name* for hapi 18

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    f6a7be3 View commit details
    Browse the repository at this point in the history
  42. fix: communicate error message for 500+ errors

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    c64bf5f View commit details
    Browse the repository at this point in the history
  43. fix: key name query arg for key gen

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    755baee View commit details
    Browse the repository at this point in the history
  44. fix: pin arg validation

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    dec15ff View commit details
    Browse the repository at this point in the history
  45. fix: remove unused loggers

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    db65043 View commit details
    Browse the repository at this point in the history
  46. fix: subscribe disconnect/finish event

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    cb6c6c3 View commit details
    Browse the repository at this point in the history
  47. fix: allow pass CID path

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    ff6fb0b View commit details
    Browse the repository at this point in the history
  48. fix: disconnect event for bandwidth stats

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    e630a7e View commit details
    Browse the repository at this point in the history
  49. chore: update ipfs-mfs dependency

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    f7515d1 View commit details
    Browse the repository at this point in the history