Skip to content

Commit

Permalink
Move docs to the correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDevAU authored Jan 1, 2024
1 parent e572751 commit 9229217
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 158 deletions.
149 changes: 0 additions & 149 deletions SSW.Rules.AzFuncs/docs/Functions/Functions.http

This file was deleted.

129 changes: 120 additions & 9 deletions docs/Functions/Functions.http
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
@BaseApiUrl = http://localhost:7071/api
@BaseApiUrl = http://localhost:7248/api
@Token
@RuleGuid
@UserId
@CommentsUserId
@OrganisationId

# Health
GET {{BaseApiUrl}}/HealthCheckFunction
Content-Type: application/json

###
# History - Generate
GET {{BaseApiUrl}}/GenerateHistoryFileFunction
Content-Type: application/json

###
# History - SyncCommitHash
GET {{BaseApiUrl}}/GetHistorySyncCommitHash
Content-Type: application/json


###
# Widget - Get LatestRules (with GitHub)
Expand All @@ -22,17 +23,127 @@ Content-Type: application/json
@githubUsername = "BrookJeynes"

GET {{BaseApiUrl}}/GetLatestRules?skip={{skip}}&take={{take}}&githubUsername={{githubUsername}}
Content-Type: application/json
# Content-Type: application/json

###
# Widget - Get LatestRules (No GitHub)

GET {{BaseApiUrl}}/GetLatestRules?skip={{skip}}&take={{take}}

###
# Reactions - ReactFunction
POST {{BaseApiUrl}}/ReactFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"type": 3,
"ruleGuid": "{{RuleGuid}}",
"userId": "{{UserId}}"
}

###
# Reactions - RemoveReactionFunction
POST {{BaseApiUrl}}/RemoveReactionFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"type": 3,
"ruleGuid": "{{RuleGuid}}",
"userId": "{{UserId}}"
}

###
# Reactions - GetReactionsFunction
GET {{BaseApiUrl}}/GetReactionsFunction?rule_guid={{RuleGuid}}&user_id={{UserId}}

###
# Reactions - GetAllReactionsFunction
GET {{BaseApiUrl}}/GetAllReactionsFunction?user_id={{UserId}}

###
# CMSAuth - AuthenticateCms
GET {{BaseApiUrl}}/auth?scope=public_repo

###
# CMSAuth - NetlifyCallback
@code = 14bb17d5408e68e4b220
GET {{BaseApiUrl}}/callback?code={{code}}

###
# Bookmark - BookmarkRuleFunction
POST {{BaseApiUrl}}/BookmarkRuleFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"RuleGuid": "{{RuleGuid}}",
"UserId": "{{UserId}}"
}

###
# Widget - Update LatestRules
# Bookmark - RemoveBookmarkFunction
POST {{BaseApiUrl}}/RemoveBookmarkFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"RuleGuid": "{{RuleGuid}}",
"UserId": "{{UserId}}"
}

###
# Bookmark - GetAllBookmarkedFunction
GET {{BaseApiUrl}}/GetAllBookmarkedFunction?user_id={{UserId}}

###
# Bookmark - GetBookmarkStatusFunction
GET {{BaseApiUrl}}/GetBookmarkStatusFunction?rule_guid={{RuleGuid}}&user_id={{UserId}}

###
# SecretContent - GetSecretContentFunction
GET {{BaseApiUrl}}/GetSecretContentFunction?id=cc4e043f-60e2-4f99-b9ee-b2518c3004a8
Authorization: Bearer {{Token}}

###
# User - GetUserFunction
GET {{BaseApiUrl}}/GetUserFunction?user_id={{UserId}}
Authorization: Bearer {{Token}}

###
# User - GetOrganisationsFunction
GET {{BaseApiUrl}}/GetOrganisationsFunction?user_id={{UserId}}
Authorization: Bearer {{Token}}

###
# User - AddUserOrganisationFunction
POST {{BaseApiUrl}}/AddUserOrganisationFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"OrganisationId": "{{OrganisationId}}",
"UserId": "{{UserId}}"
}

###
# User - RemoveUserCommentsAccountFunction
POST {{BaseApiUrl}}/RemoveUserCommentsAccountFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"UserId": "{{UserId}}"
}

###
# User - ConnectUserToCommentsFunction
POST {{BaseApiUrl}}/ConnectUserToCommentsFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

POST {{BaseApiUrl}}/UpdateLatestRules
Content-Type: application/json
{
"UserId": "{{UserId}}",
"CommentsUserId": "{{CommentsUserId}}"
}

0 comments on commit 9229217

Please sign in to comment.