diff --git a/docs/_static/w2fm_apis_apikey_get.svg b/docs/_static/w2fm_apis_apikey_get.svg new file mode 100644 index 0000000..086267d --- /dev/null +++ b/docs/_static/w2fm_apis_apikey_get.svg @@ -0,0 +1,3 @@ + + +GETGETSEARCHING FOR ACCESS TOKENSEARCHING FOR ACCESS TOKENREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMERESPONSERESPONSESUCCESSSUCCESSBODYBODYUSERNAMEUSERNAMEAPIKEY_LISTAPIKEY_LISTCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as USER not foundFAILURE as USER not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_apikey_get_all.svg b/docs/_static/w2fm_apis_apikey_get_all.svg new file mode 100644 index 0000000..4d5fcc6 --- /dev/null +++ b/docs/_static/w2fm_apis_apikey_get_all.svg @@ -0,0 +1,3 @@ + + +GETGETLISTING ALL ACCESS TOKENSLISTING ALL ACCESS TOKENSREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMERESPONSERESPONSESUCCESSSUCCESSBODYBODYAPIKEY_LISTAPIKEY_LISTCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as USER not foundFAILURE as USER not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_apikey_get_one.svg b/docs/_static/w2fm_apis_apikey_get_one.svg new file mode 100644 index 0000000..400837d --- /dev/null +++ b/docs/_static/w2fm_apis_apikey_get_one.svg @@ -0,0 +1,3 @@ + + +GETGETLOOKING UP AN ACCESS TOKENLOOKING UP AN ACCESS TOKENREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYAPIKEY_UUIDAPIKEY_UUIDRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDNAMENAMEVALID_FROMVALID_FROMVALID_TILLVALID_TILLIS_VALIDIS_VALIDCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as APIKEY_UUID not foundFAILURE as APIKEY_UUID not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_apikey_post.svg b/docs/_static/w2fm_apis_apikey_post.svg new file mode 100644 index 0000000..6355f36 --- /dev/null +++ b/docs/_static/w2fm_apis_apikey_post.svg @@ -0,0 +1,3 @@ + + +POSTPOSTCREATING NEW ACCESS TOKENCREATING NEW ACCESS TOKENREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMEVALID_TILLVALID_TILLNAMENAMERESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDCODECODECODECODE201 Created201 CreatedRESPONSERESPONSEFAILURE as USERNAME not providedFAILURE as USERNAME not providedBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as APIKEY already existsFAILURE as APIKEY already existsBODYBODYERRORERRORCODECODE409 Conflict409 ConflictRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_apikey_put.svg b/docs/_static/w2fm_apis_apikey_put.svg new file mode 100644 index 0000000..8bb7854 --- /dev/null +++ b/docs/_static/w2fm_apis_apikey_put.svg @@ -0,0 +1,3 @@ + + +PUTPUTREVOKING AN ACCESS TOKENREVOKING AN ACCESS TOKENREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMEAPIKEY_UUIDAPIKEY_UUIDRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDIS_VALIDIS_VALIDCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not foundFAILURE as USERNAME not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as APIKEY not foundFAILURE as APIKEY not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_message_post.svg b/docs/_static/w2fm_apis_message_post.svg new file mode 100644 index 0000000..b36e6fa --- /dev/null +++ b/docs/_static/w2fm_apis_message_post.svg @@ -0,0 +1,3 @@ + + +POSTPOSTINVOKING AN EVENTINVOKING AN EVENTREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYSERVICE_UUIDSERVICE_UUIDMESG_TOPICMESG_TOPICMESG_STORYMESG_STORYRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDDIGESTDIGESTCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as SERVICE not foundFAILURE as SERVICE not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as UUID already existsFAILURE as UUID already existsBODYBODYERRORERRORCODECODE409 Conflict409 ConflictRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_service_get_all.svg b/docs/_static/w2fm_apis_service_get_all.svg new file mode 100644 index 0000000..f2b3470 --- /dev/null +++ b/docs/_static/w2fm_apis_service_get_all.svg @@ -0,0 +1,3 @@ + + +GETGETLISTING ALL SERVICESLISTING ALL SERVICESREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMERESPONSERESPONSESUCCESSSUCCESSBODYBODYSERVICE_LISTSERVICE_LISTCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as USER not foundFAILURE as USER not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_service_get_one.svg b/docs/_static/w2fm_apis_service_get_one.svg new file mode 100644 index 0000000..8c63520 --- /dev/null +++ b/docs/_static/w2fm_apis_service_get_one.svg @@ -0,0 +1,3 @@ + + +GETGETLOOKING UP A SERVICELOOKING UP A SERVICEREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYSERVICE_UUIDSERVICE_UUIDRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDNAMENAMEMESG_TOPICMESG_TOPICMESG_STORYMESG_STORYIS_VALIDIS_VALIDCREATION_DATECREATION_DATECODECODE200 OK200 OKRESPONSERESPONSEFAILURE as UUID not provided FAILURE as UUID not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as SERVICE not foundFAILURE as SERVICE not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_service_post.svg b/docs/_static/w2fm_apis_service_post.svg new file mode 100644 index 0000000..7431d60 --- /dev/null +++ b/docs/_static/w2fm_apis_service_post.svg @@ -0,0 +1,3 @@ + + +POSTPOSTCREATING NEW SERVICECREATING NEW SERVICEREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMENAMENAMEMESG_HEADMESG_HEADMESG_BODYMESG_BODYRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDCODECODE201 Created201 CreatedRESPONSERESPONSEFAILURE as USERNAME not foundFAILURE as USERNAME not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as UUID already existsFAILURE as UUID already existsBODYBODYERRORERRORCODECODE409 Conflict409 ConflictRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_service_put_revoke.svg b/docs/_static/w2fm_apis_service_put_revoke.svg new file mode 100644 index 0000000..4c27259 --- /dev/null +++ b/docs/_static/w2fm_apis_service_put_revoke.svg @@ -0,0 +1,3 @@ + + +PUTPUTREVOKING A SERVICEREVOKING A SERVICEREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMEAPIKEY_UUIDAPIKEY_UUIDRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDIS_VALIDIS_VALIDCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not foundFAILURE as USERNAME not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as APIKEY not foundFAILURE as APIKEY not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_service_put_update.svg b/docs/_static/w2fm_apis_service_put_update.svg new file mode 100644 index 0000000..f415118 --- /dev/null +++ b/docs/_static/w2fm_apis_service_put_update.svg @@ -0,0 +1,3 @@ + + +PUTPUTUPDATING A SERVICEUPDATING A SERVICEREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUUIDUUIDNAMENAMEMESG_HEADMESG_HEADMESG_BODYMESG_BODYIS_VALIDIS_VALIDRESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDNAMENAMEMESG_HEADMESG_HEADMESG_BODYMESG_BODYIS_VALIDIS_VALIDCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not foundFAILURE as USERNAME not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as APIKEY not foundFAILURE as APIKEY not foundBODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_user_get_many.svg b/docs/_static/w2fm_apis_user_get_many.svg new file mode 100644 index 0000000..52256d9 --- /dev/null +++ b/docs/_static/w2fm_apis_user_get_many.svg @@ -0,0 +1,3 @@ + + +GETGETSEARCHING FOR USERNAMESSEARCHING FOR USERNAMESREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYSEARCH_STRINGSEARCH_STRINGRESPONSERESPONSESUCCESSSUCCESSBODYBODYUSER_LISTUSER_LISTCODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as USER not foundFAILURE as USER not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_user_get_one.svg b/docs/_static/w2fm_apis_user_get_one.svg new file mode 100644 index 0000000..0298b88 --- /dev/null +++ b/docs/_static/w2fm_apis_user_get_one.svg @@ -0,0 +1,3 @@ + + +GETGETLOOKING FOR A USERNAMELOOKING FOR A USERNAMEREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMERESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDUSERNAMEUSERNAMECODECODE200 OK200 OKRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as USER not foundFAILURE as USER not foundBODYBODYERRORERRORCODECODE404 Not Found404 Not FoundRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/_static/w2fm_apis_user_post.svg b/docs/_static/w2fm_apis_user_post.svg new file mode 100644 index 0000000..5a9e670 --- /dev/null +++ b/docs/_static/w2fm_apis_user_post.svg @@ -0,0 +1,3 @@ + + +POSTPOSTCREATING NEW USERCREATING NEW USERREQUESTREQUESTCONTENTS - HTTP 1.1 or 2.0CONTENTS - HTTP 1.1 or 2.0HEADERHEADERUSERNAMEUSERNAMEPASSWORDPASSWORDBODYBODYUSERNAMEUSERNAMERESPONSERESPONSESUCCESSSUCCESSBODYBODYUUIDUUIDCODECODE201 Created201 CreatedRESPONSERESPONSEFAILURE as USERNAME not provided FAILURE as USERNAME not provided BODYBODYERRORERRORCODECODE400 Bad Request400 Bad RequestRESPONSERESPONSEFAILURE as USER is not authorizedFAILURE as USER is not authorizedBODYBODYERRORERRORCODECODE401 Unauthorized401 UnauthorizedRESPONSERESPONSEFAILURE as USER is not allowedFAILURE as USER is not allowedBODYBODYERRORERRORCODECODE403 Forbidden403 ForbiddenRESPONSERESPONSEFAILURE as USER already existsFAILURE as USER already existsBODYBODYERRORERRORCODECODE409 Conflict409 ConflictRESPONSERESPONSEFAILURE as FAILUREFAILURE as FAILUREBODYBODYERRORERRORCODECODE500 Internal Server Error500 Internal Server Error \ No newline at end of file diff --git a/docs/webhook2fedmsg/apis.rst b/docs/webhook2fedmsg/apis.rst new file mode 100644 index 0000000..b99292a --- /dev/null +++ b/docs/webhook2fedmsg/apis.rst @@ -0,0 +1,228 @@ +.. _apis: + +API service +=========== + +Interactions involved +--------------------- + +Following are the interactions possible with the entities mentioned before +using the API service. + +USER +^^^^ + +Creating new user +""""""""""""""""" + +.. image:: ../_static/w2fm_apis_user_post.svg + :target: ../_images/w2fm_apis_user_post.svg + +**PATH** - ``/user/`` + +**METHOD** - ``POST`` + +**NOTES** + - This can be used to create new user entry by filling in the username + and is auto-triggered when first login is made. + - The ``username`` and ``password`` provided in the header section must + belong to a user entry with elevated privileges. + +Searching for usernames +""""""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_user_get_many.svg + :target: ../_images/w2fm_apis_user_get_many.svg + +**PATH** - ``/user/search`` + +**METHOD** - ``GET`` + +**NOTES** + - This can be used to search for users from the pool of existing users + depending on the the username provided. + - The ``username`` and ``password`` provided in the header section must + belong to an already existing user entry. + +Looking up a username +""""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_user_get_one.svg + :target: ../_images/w2fm_apis_user_get_one.svg + +**PATH** - ``/user/`` + +**METHOD** - ``GET`` + +**NOTES** + - This can be used to view the details associated with a certain existing + user entry depending on the username provided. + - The ``username`` and ``password`` provided in the header section must + belong to an already existing user entry. + +APIKEY +^^^^^^ + +Creating new access token +""""""""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_apikey_post.svg + :target: ../_images/w2fm_apis_apikey_post.svg + +**PATH** - ``/apikey/`` + +**METHOD** - ``POST`` + +**NOTES** + - This can be used to create new access token by filling in the usage + purpose (optional) and the associated expiry date. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Listing all access tokens +""""""""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_apikey_get_all.svg + :target: ../_images/w2fm_apis_apikey_get_all.svg + +**PATH** - ``/apikey/search`` + +**METHOD** - ``GET`` + +**NOTES** + - This can be used to list all the existing access tokens associated + with a certain user that those belong to. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Looking up an access token +"""""""""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_apikey_get_one.svg + :target: ../_images/w2fm_apis_apikey_get_one.svg + +**PATH** - ``/apikey/`` + +**METHOD** - ``GET`` + +**NOTES** + - This can be used to view the details associated with a certain existing + access token for the user that it belongs to. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Revoking an access token +"""""""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_apikey_put.svg + :target: ../_images/w2fm_apis_apikey_put.svg + +**PATH** - ``/apikey/revoke`` + +**METHOD** - ``PUT`` + +**NOTES** + - This can be used to revoke the validity of an existing access token to + ensure that the access token can no longer be used. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +SERVICE +^^^^^^^ + +Creating new service +"""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_service_post.svg + :target: ../_images/w2fm_apis_service_post.svg + +**PATH** - ``/service/`` + +**METHOD** - ``POST`` + +**NOTES** + - This can be used to create new service by filling in the the message + topic, message body, service validity and service name. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Listing all services +"""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_service_get_all.svg + :target: ../_images/w2fm_apis_service_get_all.svg + +**PATH** - ``/service/search`` + +**METHOD** - ``GET`` + +**NOTES** + - This can be used to list all the existing service entries associated + with a certain user that those belong to. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Looking up a service +"""""""""""""""""""" + +.. image:: ../_static/w2fm_apis_service_get_one.svg + :target: ../_images/w2fm_apis_service_get_one.svg + +**PATH** - ``/service/`` + +**METHOD** - ``GET`` + +**NOTES** + - This can be used to view the details associated with a certain existing + service for the user that it belongs to. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Revoking a service +"""""""""""""""""" + +.. image:: ../_static/w2fm_apis_service_put_revoke.svg + :target: ../_images/w2fm_apis_service_put_revoke.svg + +**PATH** - ``/service/revoke`` + +**METHOD** - ``PUT`` + +**NOTES** + - This can be used to revoke the validity of an existing service to ensure + that the service can no longer be used. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +Updating a service +"""""""""""""""""" + +.. image:: ../_static/w2fm_apis_service_put_update.svg + :target: ../_images/w2fm_apis_service_put_update.svg + +**PATH** - ``/service/`` + +**METHOD** - ``PUT`` + +**NOTES** + - This can be used to update the message topic, message body, service + validity and service name of an existing service. + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. + +MESSAGE +^^^^^^^ + +Invoking an event +""""""""""""""""" + +.. image:: ../_static/w2fm_apis_message_post.svg + :target: ../_images/w2fm_apis_message_post.svg + +**PATH** - ``/message/`` + +**METHOD** - ``POST`` + +**NOTES** + - The ``username`` and ``password`` provided in the header section must + belong to the same ``username`` in the body section. diff --git a/docs/webhook2fedmsg/w2fm-dber.drawio b/docs/webhook2fedmsg/diagrams/w2fm-dber.drawio similarity index 100% rename from docs/webhook2fedmsg/w2fm-dber.drawio rename to docs/webhook2fedmsg/diagrams/w2fm-dber.drawio diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_get_all.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_get_all.drawio new file mode 100644 index 0000000..b0b215c --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_get_all.drawio @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_get_one.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_get_one.drawio new file mode 100644 index 0000000..ceaabe8 --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_get_one.drawio @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_post.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_post.drawio new file mode 100644 index 0000000..03215bf --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_post.drawio @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_put.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_put.drawio new file mode 100644 index 0000000..7528d36 --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_apikey_put.drawio @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_message_post.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_message_post.drawio new file mode 100644 index 0000000..d558ff8 --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_message_post.drawio @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_service_get_all.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_get_all.drawio new file mode 100644 index 0000000..2fa6dcb --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_get_all.drawio @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_service_get_one.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_get_one.drawio new file mode 100644 index 0000000..3c52b7f --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_get_one.drawio @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_service_post.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_post.drawio new file mode 100644 index 0000000..942d355 --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_post.drawio @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_service_put_revoke.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_put_revoke.drawio new file mode 100644 index 0000000..fd67eec --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_put_revoke.drawio @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_service_put_update.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_put_update.drawio new file mode 100644 index 0000000..0700e7d --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_service_put_update.drawio @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_user_get_many.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_user_get_many.drawio new file mode 100644 index 0000000..732441a --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_user_get_many.drawio @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_user_get_one.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_user_get_one.drawio new file mode 100644 index 0000000..6cd7aca --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_user_get_one.drawio @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/webhook2fedmsg/diagrams/w2fm_apis_user_post.drawio b/docs/webhook2fedmsg/diagrams/w2fm_apis_user_post.drawio new file mode 100644 index 0000000..b233c21 --- /dev/null +++ b/docs/webhook2fedmsg/diagrams/w2fm_apis_user_post.drawio @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +