Add 'backend/' from commit '040cfd7a75423d4e6136e58a67b40579af4ee966'

git-subtree-dir: backend
git-subtree-mainline: ab911955ed
git-subtree-split: 040cfd7a75
This commit is contained in:
2025-01-15 15:24:30 -05:00
179 changed files with 14349 additions and 0 deletions

102
backend/src/Web/Web.http Normal file
View File

@@ -0,0 +1,102 @@
# For more info on HTTP files go to https://aka.ms/vs/httpfile
@Email=hutopy@test
@Password=Test123#
@auth_token=<Your Token>
# POST Users Register
POST {{base_url}}/api/Users/Register
Content-Type: application/json
{
"email": "{{Email}}",
"password": "{{Password}}"
}
###
# POST Users Login
POST {{base_url}}/api/Users/login
Content-Type: application/json
{
"email": "{{Email}}",
"password": "{{Password}}"
}
> {%
client.global.set("auth_token", response.body.accessToken);
%}
###
# POST Users Refresh
POST {{base_url}}/api/Users/Refresh
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"refreshToken": ""
}
###
# GET GetMyUser
GET {{base_url}}/api/GetMyUser
Authorization: Bearer {{auth_token}}
###
# GET /api/posts
GET {{base_url}}/api/messages/00000001-0000-0000-0000-000000000001
###
# GET /api/subscriptions
GET {{base_url}}/api/subscriptions
Authorization: Bearer {{auth_token}}
###
# POST /api/creators/{CreatorId}/subscribe
POST {{base_url}}/api/creators/74d60ff6-bdd3-4347-acd8-08dcb43b3ea4/subscribe
Authorization: Bearer {{auth_token}}
###
# GET /api/posts/by-user
GET {{base_url}}/api/messages/by-user/325C69E8-DBC4-4CEE-B56E-C3C90AEE7963
Authorization: Bearer {{auth_token}}
###
# GET /api/contents/creator/{CreatorId}
GET {{base_url}}/api/contents/creator/8590ba59-58a7-4466-bb50-08dcb5e47c6d/
###
# GET /api/creators/{CreatorId}/colors
POST {{base_url}}/api/creators/8590ba59-58a7-4466-bb50-08dcb5e47c6d/colors/
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"Primary": "#fffff0",
"Secondary": "#fffff0",
"Background": "#fffff0",
"Surface": "#fffff0",
"Error": "#fffff0",
"OnPrimary": "#fffff0",
"OnSecondary": "#fffff0",
"OnBackground": "#fffff0",
"OnSurface": "#fffff0",
"OnError": "#fffff0"
}
###
# GET /api/tips/{CreatorId}
POST {{base_url}}/api/tips/8590ba59-58a7-4466-bb50-08dcb5e47c6d/
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"amount" : 12300,
"creatorId" : "9a150dea-edda-4b85-f17a-08dce560fa5c",
"currency" : "CAD",
"message" : "TEST"
}