RESTful API for interacting with IRC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.apib 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. FORMAT: 1A
  2. # IRC API
  3. A simplified RESTful API for interacting with persistent Internet Relay Chat connections.
  4. # Group Networks
  5. A "network" represents a user-defined connection to IRC. Each network has one or more IRC
  6. servers to which the API will connect.
  7. ## Networks collection [/networks]
  8. ### List existing networks [GET]
  9. + Response 200 (application/json)
  10. ### Add a new network [POST]
  11. + Response 204
  12. + Response 400
  13. ## Network information [/networks/{network}]
  14. ### Get network information [GET]
  15. + Parameters
  16. + network: `quakenet` (string) - The name of the network.
  17. + Response 200 (application/json)
  18. + Response 404
  19. ### Update network information [POST]
  20. + Parameters
  21. + network: `quakenet` (string) - The name of the network.
  22. + Response 204
  23. + Response 400
  24. + Response 404
  25. ### Delete network [DELETE]
  26. + Parameters
  27. + network: `quakenet` (string) - The name of the network.
  28. + Response 204
  29. + Response 404
  30. # Group Chats
  31. A chat represents either an IRC channel or a private message with another IRC user.
  32. ## Chats collection [/networks/{network}/chats]
  33. ### List existing chats [GET]
  34. + Parameters
  35. + network: `quakenet` (string) - The name of the network.
  36. + Response 200 (application/json)
  37. + Response 404
  38. ### Create new chat [POST]
  39. + Parameters
  40. + network: `quakenet` (string) - The name of the network.
  41. + Response 200 (application/json)
  42. + Response 400
  43. + Response 404
  44. ## Chat information [/networks/{network}/chats/{chat}]
  45. ### Get chat information [GET]
  46. + Parameters
  47. + network: `quakenet` (string) - The name of the network.
  48. + chat: `dmdirc` (string) - The name of the chat.
  49. + Response 200 (application/json)
  50. + Response 404
  51. ### Delete chat [DELETE]
  52. + Parameters
  53. + network: `quakenet` (string) - The name of the network.
  54. + chat: `dmdirc` (string) - The name of the chat.
  55. + Response 204
  56. + Response 404
  57. ## Chat messages [/networks/{network}/chats/{chat}/messages]
  58. ### Get chat messages [GET]
  59. + Parameters
  60. + network: `quakenet` (string) - The name of the network.
  61. + chat: `dmdirc` (string) - The name of the chat.
  62. + Response 200 (application/json)
  63. + Response 404
  64. ### Send chat message [POST]
  65. + Parameters
  66. + network: `quakenet` (string) - The name of the network.
  67. + chat: `dmdirc` (string) - The name of the chat.
  68. + Response 200 (application/json)
  69. + Response 400
  70. + Response 404
  71. ## Chat users [/networks/{network}/chats/{chat}/users]
  72. ### List chat users [GET]
  73. + Parameters
  74. + network: `quakenet` (string) - The name of the network.
  75. + chat: `dmdirc` (string) - The name of the chat.
  76. + Response 200 (application/json)
  77. + Response 404