endpoint-reference.rst 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Endpoint Reference
  2. ------------------
  3. The following table summarizes basic information about the deSEC API endpoints used
  4. for `User Registration and Management`_.
  5. +------------------------------------------------+------------+---------------------------------------------+
  6. | Endpoint ``/api/v1``... | Methods | Use case |
  7. +================================================+============+=============================================+
  8. | ...\ ``/auth/me/`` | ``GET`` | Retrieve user account information |
  9. | +------------+---------------------------------------------+
  10. | | ``PUT`` | Change account email address |
  11. +------------------------------------------------+------------+---------------------------------------------+
  12. | ...\ ``/auth/users/create/`` | ``POST`` | Create user account |
  13. +------------------------------------------------+------------+---------------------------------------------+
  14. | ...\ ``/auth/password/reset/`` | ``POST`` | Request password reset |
  15. +------------------------------------------------+------------+---------------------------------------------+
  16. | ...\ ``/auth/password/reset/confirm/`` | ``POST`` | Confirm password reset |
  17. +------------------------------------------------+------------+---------------------------------------------+
  18. | ...\ ``/auth/token/create/`` | ``POST`` | Log in and request authentication token |
  19. +------------------------------------------------+------------+---------------------------------------------+
  20. | ...\ ``/auth/token/destroy/`` | ``POST`` | Log out and destroy authentication token |
  21. +------------------------------------------------+------------+---------------------------------------------+
  22. | ...\ ``/tokens/`` | ``GET`` | Retrieve all current tokens |
  23. | +------------+---------------------------------------------+
  24. | | ``POST`` | Create new token |
  25. +------------------------------------------------+------------+---------------------------------------------+
  26. | ...\ ``/tokens/:id/`` | ``DELETE`` | Delete token |
  27. +------------------------------------------------+------------+---------------------------------------------+
  28. The following table summarizes basic information about the deSEC API endpoints used
  29. for `Domain Management`_ and `Retrieving and Manipulating DNS Information`_.
  30. +------------------------------------------------+------------+---------------------------------------------+
  31. | Endpoint ``/api/v1/domains``... | Methods | Use case |
  32. +================================================+============+=============================================+
  33. | ...\ ``/`` | ``GET`` | Retrieve all domains you own |
  34. | +------------+---------------------------------------------+
  35. | | ``POST`` | Create a domain |
  36. +------------------------------------------------+------------+---------------------------------------------+
  37. | ...\ ``/:name/`` | ``GET`` | Retrieve a specific domain |
  38. | +------------+---------------------------------------------+
  39. | | ``PATCH`` | Modify a domain (deprecated) |
  40. | +------------+---------------------------------------------+
  41. | | ``DELETE`` | Delete a domain |
  42. +------------------------------------------------+------------+---------------------------------------------+
  43. | ...\ ``/:name/rrsets/`` | ``GET`` | Retrieve all RRsets from ``domain``, filter |
  44. | | | by ``subname`` or ``type`` query parameter |
  45. | +------------+---------------------------------------------+
  46. | | ``POST`` | Create one or more RRsets |
  47. | +------------+---------------------------------------------+
  48. | | ``PATCH`` | Create, modify or delete one or more RRsets |
  49. | +------------+---------------------------------------------+
  50. | | ``PUT`` | Create, modify or delete one or more RRsets |
  51. +------------------------------------------------+------------+---------------------------------------------+
  52. | ...\ ``/:name/rrsets/:subname.../:type/`` | ``GET`` | Retrieve a specific RRset |
  53. | +------------+---------------------------------------------+
  54. | | ``PATCH`` | Modify an RRset |
  55. | +------------+---------------------------------------------+
  56. | | ``PUT`` | Replace an RRset |
  57. | +------------+---------------------------------------------+
  58. | | ``DELETE`` | Delete an RRset |
  59. +------------------------------------------------+------------+---------------------------------------------+