-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #176: Organise all the APIs in routes.go under different input re…
…quirements Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
08f1781
commit e988fa6
Showing
5 changed files
with
254 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package main | ||
|
||
const GetOrgLogs = "/v1/organizations/{orgID}/logs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package main | ||
|
||
// Global policy configuration | ||
const GetGlobalPolicyConfiguration = "/v1/organizations/{organizationID}/global-policy-configuration" | ||
const UpdateGlobalPolicyConfiguration = "/v1/organizations/{organizationID}/global-policy-configuration" | ||
|
||
// Data agreements | ||
const AddConsentPurposes = "/v1/organizations/{organizationID}/purposes" | ||
const GetPurposes = "/v1/organizations/{organizationID}/purposes" | ||
const DeleteConsentPurposeByID = "/v1/organizations/{organizationID}/purposes/{purposeID}" | ||
const UpdatePurposeByID = "/v1/organizations/{organizationID}/purposes/{purposeID}" | ||
const GetPurposeByID = "/v1/organizations/{organizationID}/purposes/{purposeID}" | ||
|
||
// Data attributes | ||
const AddConsentTemplates = "/v1/organizations/{organizationID}/templates" | ||
const GetTemplates = "/v1/organizations/{organizationID}/templates" | ||
const DeleteConsentTemplateByID = "/v1/organizations/{organizationID}/templates/{templateID}" | ||
const GetTemplateByID = "/v1/organizations/{organizationID}/templates/{templateID}" | ||
const UpdateTemplateByID = "/v1/organizations/{organizationID}/templates/{templateID}" | ||
const DeleteConsentTemplatesByID = "/v1/organizations/{organizationID}/purposes/{purposeID}/templates" | ||
|
||
// Webhooks | ||
const GetWebhookPayloadContentTypes = "/v1/organizations/webhooks/payload/content-types" | ||
const CreateWebhook = "/v1/organizations/{orgID}/webhooks" | ||
const GetAllWebhooks = "/v1/organizations/{orgID}/webhooks" | ||
const GetWebhook = "/v1/organizations/{orgID}/webhooks/{webhookID}" | ||
const DeleteWebhook = "/v1/organizations/{orgID}/webhooks/{webhookID}" | ||
const UpdateWebhook = "/v1/organizations/{orgID}/webhooks/{webhookID}" | ||
const PingWebhook = "/v1/organizations/{orgID}/webhooks/{webhookID}/ping" | ||
const GetRecentWebhookDeliveries = "/v1/organizations/{orgID}/webhooks/{webhookID}/delivery" | ||
const GetWebhookDeliveryByID = "/v1/organizations/{orgID}/webhooks/{webhookID}/delivery/{deliveryID}" | ||
const ReDeliverWebhook = "/v1/organizations/{orgID}/webhooks/{webhookID}/delivery/{deliveryID}/redeliver" | ||
|
||
// Filtering individuals by consents | ||
const GetAllUsersConsentedToAttribute = "/v1/organizations/{orgID}/purposes/{purposeID}/attributes/{attributeID}/consented/users" | ||
const GetAllUsersConsentedToPurpose = "/v1/organizations/{orgID}/purposes/{purposeID}/consented/users" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package main | ||
|
||
const AddOrganization = "/v1/organizations" | ||
const GetOrganizationRoles = "/v1/organizations/roles" | ||
const GetSubscribeMethods = "/v1/organizations/subscribe-methods" | ||
const GetDataRequestStatus = "/v1/organizations/data-requests" | ||
const GetOrganizationTypes = "/v1/organizations/types" | ||
const AddOrganizationType = "/v1/organizations/types" | ||
const UpdateOrganizationType = "/v1/organizations/types/{typeID}" | ||
const DeleteOrganizationType = "/v1/organizations/types/{typeID}" | ||
const GetOrganizationTypeByID = "/v1/organizations/types/{typeID}" | ||
const UpdateOrganizationTypeImage = "/v1/organizations/types/{typeID}/image" | ||
const GetOrganizationTypeImage = "/v1/organizations/types/{typeID}/image" | ||
|
||
const GetWebhookEventTypes = "/v1/organizations/webhooks/event-types" | ||
|
||
const GetOrganizationByID = "/v1/organizations/{organizationID}" | ||
const UpdateOrganization = "/v1/organizations/{organizationID}" | ||
const UpdateOrganizationCoverImage = "/v1/organizations/{organizationID}/coverimage" | ||
const UpdateOrganizationLogoImage = "/v1/organizations/{organizationID}/logoimage" | ||
const GetOrganizationImage = "/v1/organizations/{organizationID}/image/{imageID}" | ||
const GetOrganizationImageWeb = "/v1/organizations/{organizationID}/image/{imageID}/web" | ||
|
||
const UpdateOrgEula = "/v1/organizations/{organizationID}/eulaURL" | ||
const DeleteOrgEula = "/v1/organizations/{organizationID}/eulaURL" | ||
|
||
const AddOrgAdmin = "/v1/organizations/{organizationID}/admins" | ||
const GetOrgAdmins = "/v1/organizations/{organizationID}/admins" | ||
const DeleteOrgAdmin = "/v1/organizations/{organizationID}/admins" | ||
|
||
// Organisation identity provider related API(s) | ||
const AddIdentityProvider = "/v1/organizations/{organizationID}/idp/open-id" | ||
const UpdateIdentityProvider = "/v1/organizations/{organizationID}/idp/open-id" | ||
const DeleteIdentityProvider = "/v1/organizations/{organizationID}/idp/open-id" | ||
const GetIdentityProvider = "/v1/organizations/{organizationID}/idp/open-id" | ||
|
||
// Login | ||
const RegisterUser = "/v1/users/register" | ||
const LoginUser = "/v1/users/login" | ||
const LoginUserV11 = "/v1.1/users/login" | ||
const ValidateUserEmail = "/v1/users/validate/email" | ||
const ValidatePhoneNumber = "/v1/users/validate/phone" | ||
const VerifyPhoneNumber = "/v1/users/verify/phone" | ||
const VerifyOtp = "/v1/users/verify/otp" | ||
|
||
// Admin login | ||
const LoginAdminUser = "/v1/users/admin/login" | ||
const GetToken = "/v1/users/token" | ||
const ResetPassword = "/v1/user/password/reset" | ||
const ForgotPassword = "/v1/user/password/forgot" | ||
const LogoutUser = "/v1/users/logout" | ||
const UnregisterUser = "/v1/users/unregister" | ||
|
||
const GetCurrentUser = "/v1/user" | ||
const UpdateCurrentUser = "/v1/user" | ||
const UserClientRegisterIOS = "/v1/user/register/ios" | ||
const UserClientRegisterAndroid = "/v1/user/register/android" | ||
|
||
const CreateAPIKey = "/v1/user/apikey" | ||
const DeleteAPIKey = "/v1/user/apikey/revoke" | ||
const GetAPIKey = "/v1/user/apikey" | ||
|
||
const EnableOrganizationSubscription = "/v1/organizations/{organizationID}/subscription/enable" | ||
const DisableOrganizationSubscription = "/v1/organizations/{organizationID}/subscription/disable" | ||
const GetSubscribeMethod = "/v1/organizations/{organizationID}/subscribe-method" | ||
const SetSubscribeMethod = "/v1/organizations/{organizationID}/subscribe-method" | ||
const GetSubscribeKey = "/v1/organizations/{organizationID}/subscribe-key" | ||
const RenewSubscribeKey = "/v1/organizations/{organizationID}/subscribe-key/renew" | ||
const GetOrganizationSubscriptionStatus = "/v1/organizations/{organizationID}/subscription" | ||
|
||
const GetDataRequests = "/v1/organizations/{orgID}/data-requests" | ||
const GetDataRequest = "/v1/organizations/{orgID}/data-requests/{dataReqID}" | ||
const UpdateDataRequests = "/v1/organizations/{orgID}/data-requests/{dataReqID}" | ||
|
||
const NotifyDataBreach = "/v1/organizations/{orgID}/notify-data-breach" | ||
const NotifyEvents = "/v1/organizations/{orgID}/notify-events" | ||
|
||
const AddUserToOrganization = "/v1/organizations/{organizationID}/users" | ||
const DeleteUserFromOrganization = "/v1/organizations/{organizationID}/users/{userID}" | ||
const GetOrganizationUsers = "/v1/organizations/{organizationID}/users" | ||
const GetOrganizationUsersCount = "/v1/organizations/{organizationID}/users/count" |
Oops, something went wrong.