Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move docs to the correct location #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}}"
}
Loading