From 754c56146df3f1442d7d82962337c3830d9c4f08 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 05:45:22 -0700 Subject: [PATCH 01/10] wip: adds masking to handlers --- .DS_Store | Bin 6148 -> 6148 bytes db/models.go | 113 ++++++++++++------ features/admin/feedback_by_id.go | 7 +- .../admin/fetch_reports_for_comment_by_id.go | 8 ++ .../admin/fetch_reports_for_post_by_id.go | 8 ++ features/admin/get_report_by_id.go | 6 +- features/admin/hide.go | 13 +- features/admin/requests.http | 40 +++---- features/admin/review_content_by_mod.go | 9 +- features/auth/requests.http | 6 +- features/comments/create.go | 38 ++++-- features/comments/edit.go | 9 +- features/comments/get_comment_by_id.go | 10 +- features/comments/hide.go | 9 +- features/comments/load_initial_comments.go | 13 +- features/comments/load_reply_comments.go | 9 +- features/comments/requests.http | 32 ++--- features/drafts/requests.http | 8 +- features/feedback/requests.http | 2 +- features/hide_log/requests.http | 4 +- features/notifications/requests.http | 8 +- features/posts/create.go | 2 +- features/posts/get_post_by_id.go | 13 +- features/posts/get_posts.go | 11 +- features/posts/requests.http | 26 ++-- features/posts/sentiment_analysis.go | 12 +- features/reports/requests.http | 6 +- features/saves/requests.http | 8 +- features/schools/requests.http | 20 ++-- features/user/requests.http | 16 +-- features/votes/requests.http | 2 +- lib/masking/masking.go | 58 +++++++++ lib/masking/masking_test.go | 49 ++++++++ lib/validation/models.go | 22 ++-- middleware/firebase_auth.go | 2 +- 35 files changed, 426 insertions(+), 173 deletions(-) create mode 100644 lib/masking/masking.go create mode 100644 lib/masking/masking_test.go diff --git a/.DS_Store b/.DS_Store index 890ce1acaac0f9176df8090074750a7e7303b3b7..49eb3ca37cd0636be784b7a1b2f6a84a6b893da2 100644 GIT binary patch delta 35 rcmZoMXfc@J&&V_}zT##**CLu{N)D#w!#WJ delta 28 icmZoMXfc@J&&W72z#2&OC~rLK#6IzX*k*Q)zx)7(Zwb5r diff --git a/db/models.go b/db/models.go index f89434be..a699d63e 100644 --- a/db/models.go +++ b/db/models.go @@ -1,6 +1,7 @@ package db import ( + "confesi/lib/masking" "database/sql/driver" "encoding/json" "fmt" @@ -12,25 +13,59 @@ import ( "gorm.io/datatypes" ) +type MaskedID struct { + Val uint +} + +func (mu *MaskedID) Scan(value interface{}) error { + if value == nil { + return nil + } + + intValue, ok := value.(uint) + if !ok { + return fmt.Errorf("unable to scan MaskedID value") + } + + mu.Val = intValue + return nil +} + +func (mu MaskedID) MarshalJSON() ([]byte, error) { + strValue, err := masking.Mask(int(mu.Val)) + if err != nil { + return nil, err + } + return json.Marshal(strValue) +} + +func (mu MaskedID) Value() (driver.Value, error) { + strValue, err := masking.Mask(int(mu.Val)) + if err != nil { + return nil, err + } + return strValue, nil +} + type ModLevel struct { - ID uint `gorm:"primaryKey" json:"id"` - Mod string `gorm:"column:mod" json:"mod"` + ID MaskedID `gorm:"primaryKey" json:"id"` + Mod string `gorm:"column:mod" json:"mod"` } type School struct { - ID uint `gorm:"primaryKey" json:"id"` - Name string `json:"name"` - Abbr string `json:"abbr"` - Lat float32 `json:"lat"` - Lon float32 `json:"lon"` - DailyHottests int `json:"daily_hottests"` - Domain string `json:"domain"` - ImgUrl string `json:"img_url"` - Website string `json:"website"` + ID MaskedID `gorm:"primaryKey" json:"id"` + Name string `json:"name"` + Abbr string `json:"abbr"` + Lat float32 `json:"lat"` + Lon float32 `json:"lon"` + DailyHottests int `json:"daily_hottests"` + Domain string `json:"domain"` + ImgUrl string `json:"img_url"` + Website string `json:"website"` } type Faculty struct { - ID int `gorm:"primaryKey" json:"-"` + ID MaskedID `gorm:"primaryKey" json:"-"` Faculty null.String `gorm:"column:faculty" json:"faculty"` } @@ -52,20 +87,20 @@ func (FcmTopicPref) TableName() string { // ! Very important some fields are NOT serialized (json:"-") type FcmTopicPref struct { - ID uint `gorm:"primaryKey" json:"-"` - UserID string `gorm:"column:user_id" json:"-"` - DailyHottest bool `gorm:"column:daily_hottest" json:"daily_hottest"` - Trending bool `gorm:"column:trending" json:"trending"` - RepliesToYourComments bool `gorm:"column:replies_to_your_comments" json:"replies_to_your_comments"` - CommentsOnYourPosts bool `gorm:"column:comments_on_your_posts" json:"comments_on_your_posts"` - VotesOnYourComments bool `gorm:"column:votes_on_your_comments" json:"votes_on_your_comments"` - VotesOnYourPosts bool `gorm:"column:votes_on_your_posts" json:"votes_on_your_posts"` - QuotesOfYourPosts bool `gorm:"column:quotes_of_your_posts" json:"quotes_of_your_posts"` + ID MaskedID `gorm:"primaryKey" json:"-"` + UserID string `gorm:"column:user_id" json:"-"` + DailyHottest bool `gorm:"column:daily_hottest" json:"daily_hottest"` + Trending bool `gorm:"column:trending" json:"trending"` + RepliesToYourComments bool `gorm:"column:replies_to_your_comments" json:"replies_to_your_comments"` + CommentsOnYourPosts bool `gorm:"column:comments_on_your_posts" json:"comments_on_your_posts"` + VotesOnYourComments bool `gorm:"column:votes_on_your_comments" json:"votes_on_your_comments"` + VotesOnYourPosts bool `gorm:"column:votes_on_your_posts" json:"votes_on_your_posts"` + QuotesOfYourPosts bool `gorm:"column:quotes_of_your_posts" json:"quotes_of_your_posts"` } // ! Very important some fields are NOT serialized (json:"-") type FcmToken struct { - ID uint `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey" json:"id"` UserID *string `gorm:"column:user_id" json:"-"` Token string `gorm:"column:token" json:"token"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` @@ -77,8 +112,8 @@ func (FcmToken) TableName() string { } type PostCategory struct { - ID uint `gorm:"primaryKey" json:"-"` - Name string `gorm:"column:name" json:"name"` + ID MaskedID `gorm:"primaryKey" json:"-"` + Name string `gorm:"column:name" json:"name"` } func (PostCategory) TableName() string { @@ -104,7 +139,7 @@ type User struct { // ! Very important some fields are NOT serialized (json:"-") type SchoolFollow struct { - ID uint `gorm:"primary_key;column:id" json:"id"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` @@ -113,7 +148,7 @@ type SchoolFollow struct { // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Post struct { - ID int `gorm:"primary_key;column:id" json:"id"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` @@ -142,7 +177,7 @@ type Post struct { // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Draft struct { - ID int `gorm:"primary_key;column:id" json:"id"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` @@ -163,7 +198,7 @@ func (c *Comment) CensorComment() Comment { // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Comment struct { - ID uint `gorm:"primary_key;column:id" json:"id"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` PostID uint `gorm:"column:post_id" json:"post_id"` @@ -257,7 +292,7 @@ const ( // ! Important not to serialize some fields!! type Vote struct { - ID uint + ID MaskedID Vote int `db:"vote" json:"vote"` UserID string `db:"user_id" json:"-"` PostID *uint `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint @@ -266,6 +301,7 @@ type Vote struct { // ! Important not to serialize some fields!! type SavedPost struct { + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` @@ -274,6 +310,7 @@ type SavedPost struct { // ! Important not to serialize some fields!! type SavedComment struct { + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` @@ -282,7 +319,7 @@ type SavedComment struct { // ! Important not to serialize some fields!! type Feedback struct { - ID int `gorm:"primary_key;column:id" json:"id"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UserID string `gorm:"column:user_id" json:"-"` Content string `gorm:"column:content" json:"content"` @@ -291,8 +328,8 @@ type Feedback struct { } type ReportType struct { - ID int `gorm:"primary_key;column:id" json:"-"` - Type string `gorm:"column:type" json:"type"` + ID MaskedID `gorm:"primary_key;column:id" json:"-"` + Type string `gorm:"column:type" json:"type"` } func (ReportType) TableName() string { @@ -300,12 +337,12 @@ func (ReportType) TableName() string { } type FeedbackType struct { - ID int `gorm:"primary_key;column:id" json:"-"` - Type string `gorm:"column:type" json:"type"` + ID MaskedID `gorm:"primary_key;column:id" json:"-"` + Type string `gorm:"column:type" json:"type"` } type YearOfStudy struct { - ID int `gorm:"primaryKey" json:"-"` + ID MaskedID `gorm:"primaryKey" json:"-"` Name null.String `gorm:"column:name" json:"type"` } @@ -318,7 +355,7 @@ func (FeedbackType) TableName() string { } type HideLog struct { - ID uint `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` PostID *uint `db:"post_id" gorm:"default:NULL" json:"-"` @@ -336,7 +373,7 @@ func (HideLog) TableName() string { // ! Important not to serialize some fields!! type Report struct { - ID uint `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` ReportedBy string `gorm:"column:reported_by" json:"-"` @@ -352,7 +389,7 @@ type Report struct { } type CronJob struct { - ID uint `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` Ran datatypes.Date `gorm:"column:ran" json:"ran"` Type string `gorm:"column:type" json:"type"` diff --git a/features/admin/feedback_by_id.go b/features/admin/feedback_by_id.go index 779e3ab7..d35e110c 100644 --- a/features/admin/feedback_by_id.go +++ b/features/admin/feedback_by_id.go @@ -2,10 +2,10 @@ package admin import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "errors" "net/http" - "strconv" "github.com/gin-gonic/gin" "gorm.io/gorm" @@ -14,13 +14,14 @@ import ( func (h *handler) handleFeedbackID(c *gin.Context) { feedbackID := c.Param("feedbackID") - _, err := strconv.ParseInt(feedbackID, 10, 64) + unmaskedFeedbackId, err := masking.Unmask(feedbackID) if err != nil { response.New(http.StatusBadRequest).Err("invalid feedback id").Send(c) return } + feedback := db.Feedback{} - err = h.db.Model(&db.Feedback{}).Where("id = ?", feedbackID).First(&feedback).Error + err = h.db.Model(&db.Feedback{}).Where("id = ?", unmaskedFeedbackId).First(&feedback).Error if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { response.New(http.StatusInternalServerError).Err("server error").Send(c) } else if errors.Is(err, gorm.ErrRecordNotFound) { diff --git a/features/admin/fetch_reports_for_comment_by_id.go b/features/admin/fetch_reports_for_comment_by_id.go index 33372b6e..457720bb 100644 --- a/features/admin/fetch_reports_for_comment_by_id.go +++ b/features/admin/fetch_reports_for_comment_by_id.go @@ -2,6 +2,7 @@ package admin import ( "confesi/config" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -18,12 +19,19 @@ func (h *handler) handleFetchReportForCommentById(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.CommentID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) + return + } + fetchResults := fetchResults{} err = h.db. Preload("ReportType"). Where(req.Next.Cursor("created_at >")). Where("comment_id IS NOT NULL"). + Where("comment_id = ?", unmaskedId). Order("created_at ASC"). Find(&fetchResults.Reports). Limit(config.AdminViewAllReportsPerCommentId). diff --git a/features/admin/fetch_reports_for_post_by_id.go b/features/admin/fetch_reports_for_post_by_id.go index f5e45e81..f2d0598e 100644 --- a/features/admin/fetch_reports_for_post_by_id.go +++ b/features/admin/fetch_reports_for_post_by_id.go @@ -2,6 +2,7 @@ package admin import ( "confesi/config" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -18,12 +19,19 @@ func (h *handler) handleFetchReportForPostById(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.PostID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) + return + } + fetchResults := fetchResults{} err = h.db. Preload("ReportType"). Where(req.Next.Cursor("created_at >")). Where("post_id IS NOT NULL"). + Where("post_id = ?", unmaskedId). Order("created_at ASC"). Find(&fetchResults.Reports). Limit(config.AdminViewAllReportsPerPostId). diff --git a/features/admin/get_report_by_id.go b/features/admin/get_report_by_id.go index 416762bc..56119447 100644 --- a/features/admin/get_report_by_id.go +++ b/features/admin/get_report_by_id.go @@ -2,11 +2,11 @@ package admin import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "errors" "net/http" - "strconv" "github.com/gin-gonic/gin" "gorm.io/gorm" @@ -16,7 +16,7 @@ func (h *handler) handleGetReportById(c *gin.Context) { // get id from query param id id := c.Query("id") - idNumeric, err := strconv.Atoi(id) + unmaskedId, err := masking.Unmask(id) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return @@ -25,7 +25,7 @@ func (h *handler) handleGetReportById(c *gin.Context) { report := db.Report{} err = h.db. Preload("ReportType"). // preload the ReportType field of the Report - Where("id = ?", idNumeric). + Where("id = ?", unmaskedId). First(&report). Error if err != nil { diff --git a/features/admin/hide.go b/features/admin/hide.go index 663d5012..7cde0223 100644 --- a/features/admin/hide.go +++ b/features/admin/hide.go @@ -4,6 +4,7 @@ import ( "confesi/config/builders" "confesi/db" "confesi/lib/logger" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -34,17 +35,23 @@ func (h *handler) handleHideContent(c *gin.Context) { return } + unmaskedContentId, err := masking.Unmask(req.ContentID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) + return + } + hideLogEntry := db.HideLog{} var commentOrPostIdMatcher string var table string if req.ContentType == "comment" { table = "comments" - hideLogEntry.CommentID = &req.ContentID + hideLogEntry.CommentID = &unmaskedContentId commentOrPostIdMatcher = "comment_id" } else if req.ContentType == "post" { table = "posts" - hideLogEntry.PostID = &req.ContentID + hideLogEntry.PostID = &unmaskedContentId commentOrPostIdMatcher = "post_id" } else { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) @@ -180,7 +187,7 @@ func (h *handler) handleHideContent(c *gin.Context) { } else if len(offenders) > 0 { for _, tokenWithOffenderID := range offenders { go fcm.New(h.fb.MsgClient). - ToTokens([]string{"tokenWithOffenderID.Token"}). + ToTokens([]string{tokenWithOffenderID.Token}). WithMsg(builders.HideOffendingUserNoti()). WithData(builders.HideOffendingUserData(tokenWithOffenderID.HideLogID)). Send(*h.db) diff --git a/features/admin/requests.http b/features/admin/requests.http index 598a7365..6b266b7d 100644 --- a/features/admin/requests.http +++ b/features/admin/requests.http @@ -2,7 +2,7 @@ PATCH http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application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ifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "standing": "banned", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0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kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "user_id": "sP1D8MZAQpZspd1O7tufLPBFq9v1" @@ -24,14 +24,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/admin/daily-hottest-cron?day=2023-08-03 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi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E2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Manually trigger clear expired fcm tokens cron job # day format: YYYY-MM-DD for selecting when to run the cron job. POST http://127.0.0.1:8080/api/v1/admin/expire-fcm-tokens?day=2023-06-21 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfa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MywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### List the successfully ran cron jobs, by type @@ -40,7 +40,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/crons?next=1687422462194 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0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lYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": 1689156632542916, @@ -49,15 +49,15 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### Get Feedback By ID -GET http://127.0.0.1:8080/api/v1/admin/feedback/1 +GET http://127.0.0.1:8080/api/v1/admin/feedback/SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzY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mljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Get Feedback List GET http://127.0.0.1:8080/api/v1/admin/feedback Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4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arzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": 1690284521701105 @@ -65,16 +65,16 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### get report by id -GET http://127.0.0.1:8080/api/v1/admin/report?id=18 +GET http://127.0.0.1:8080/api/v1/admin/report?id=SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6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_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### get all reports GET http://127.0.0.1:8080/api/v1/admin/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1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ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "content_type": "post", - "content_id": 17, + "content_id": "SOMEMASK", "hide": false, "reviewed_by_mod": true, "reason": "spammmmm" @@ -99,7 +99,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8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AxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "content_type": "post", @@ -111,7 +111,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/comments-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiM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2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "purge_cache": true, @@ -124,7 +124,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/posts-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJ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sInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "purge_cache": true, @@ -137,10 +137,10 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-post Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiO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MiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "post_id": 1, + "post_id": "SOME MASK", "next": null } @@ -149,9 +149,9 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-comment Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW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haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "comment_id": 1, + "comment_id": "SOME MASK", "next": null } diff --git a/features/admin/review_content_by_mod.go b/features/admin/review_content_by_mod.go index 06d445c8..c0ace102 100644 --- a/features/admin/review_content_by_mod.go +++ b/features/admin/review_content_by_mod.go @@ -1,6 +1,7 @@ package admin import ( + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -17,6 +18,12 @@ func (h *handler) handleReviewContentByMod(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.ContentID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) + return + } + var table string if req.ContentType == "comment" { table = "comments" @@ -29,7 +36,7 @@ func (h *handler) handleReviewContentByMod(c *gin.Context) { err = h.db. Table(table). - Where("id = ?", req.ContentID). + Where("id = ?", unmaskedId). Update("reviewed_by_mod", req.ReviewedByMod). Error if err != nil { diff --git a/features/auth/requests.http b/features/auth/requests.http index 223411ce..a70528fb 100644 --- a/features/auth/requests.http +++ b/features/auth/requests.http @@ -15,7 +15,7 @@ Content-Type: application/json PATCH http://127.0.0.1:8080/api/v1/auth/update-email Content-Type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ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "email": "use0129384r@uvic.ca" @@ -25,13 +25,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email Content-Type: application/json -Authorization: Bearer eyJh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W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Send password reset email POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb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FlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "email": "matthew@gmail.com" diff --git a/features/comments/create.go b/features/comments/create.go index bd92747c..0d5fb0f4 100644 --- a/features/comments/create.go +++ b/features/comments/create.go @@ -4,6 +4,7 @@ import ( "confesi/config/builders" "confesi/db" fcm "confesi/lib/firebase_cloud_messaging" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -71,6 +72,21 @@ func (h *handler) handleCreate(c *gin.Context) { // start a transaction tx := h.db.Begin() + unmaskedPostId, err := masking.Unmask(req.PostID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidInput.Error()).Send(c) + return + } + + var unmaskedCommentId uint + if req.ParentCommentID != nil { + unmaskedCommentId, err = masking.Unmask(*req.ParentCommentID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidInput.Error()).Send(c) + return + } + } + // if something goes ary, rollback defer func() { if r := recover(); r != nil { @@ -82,7 +98,7 @@ func (h *handler) handleCreate(c *gin.Context) { var post db.Post err = tx. - Where("id = ?", req.PostID). + Where("id = ?", unmaskedPostId). First(&post). Error if err != nil { @@ -100,7 +116,7 @@ func (h *handler) handleCreate(c *gin.Context) { // base comment comment := db.Comment{ UserID: token.UID, - PostID: req.PostID, + PostID: unmaskedPostId, Content: req.Content, } @@ -112,7 +128,7 @@ func (h *handler) handleCreate(c *gin.Context) { // parent comment err = tx. - Where("comments.id = ? AND comments.post_id = ?", req.ParentCommentID, req.PostID). + Where("comments.id = ? AND comments.post_id = ?", unmaskedCommentId, unmaskedPostId). Find(&parentComment). Updates(map[string]interface{}{ "children_count": gorm.Expr("children_count + ?", 1), @@ -131,7 +147,7 @@ func (h *handler) handleCreate(c *gin.Context) { return } if parentComment.ParentRoot == nil { - comment.ParentRoot = &parentComment.ID + comment.ParentRoot = &parentComment.ID.Val } else { comment.ParentRoot = parentComment.ParentRoot } @@ -143,7 +159,7 @@ func (h *handler) handleCreate(c *gin.Context) { var nextIdentifier uint // is OP? if !isOp { - err, nextIdentifier = getNextIdentifier(tx, req.PostID) + err, nextIdentifier = getNextIdentifier(tx, unmaskedPostId) if err != nil { tx.Rollback() response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) @@ -170,7 +186,7 @@ func (h *handler) handleCreate(c *gin.Context) { } else { comment.NumericalUserIsOp = &f - err, alreadyPosted, userNumeric := getAlreadyPostedNumericalUser(tx, req.PostID, token.UID) + err, alreadyPosted, userNumeric := getAlreadyPostedNumericalUser(tx, unmaskedPostId, token.UID) if err != nil { tx.Rollback() @@ -215,7 +231,7 @@ func (h *handler) handleCreate(c *gin.Context) { if req.ParentCommentID != nil { res := tx. Model(&db.Post{}). - Where("id = ?", req.PostID). + Where("id = ?", unmaskedPostId). Updates(map[string]interface{}{"comment_count": gorm.Expr("comment_count + ?", 1)}) if res.Error != nil { tx.Rollback() @@ -241,7 +257,7 @@ func (h *handler) handleCreate(c *gin.Context) { Select("fcm_tokens.token"). Joins("JOIN users ON users.id = fcm_tokens.user_id"). Joins("JOIN posts ON posts.user_id = users.id"). - Where("posts.id = ? AND users.id <> ?", req.PostID, token.UID). + Where("posts.id = ? AND users.id <> ?", unmaskedPostId, token.UID). Pluck("fcm_tokens.token", &postTokens). Error @@ -249,7 +265,7 @@ func (h *handler) handleCreate(c *gin.Context) { go fcm.New(h.fb.MsgClient). ToTokens(postTokens). WithMsg(builders.CommentAddedToPostNoti(req.Content)). - WithData(builders.CommentAddedToPostData(comment.ID, req.PostID)). + WithData(builders.CommentAddedToPostData(comment.ID.Val, unmaskedPostId)). Send(*h.db) } @@ -265,14 +281,14 @@ func (h *handler) handleCreate(c *gin.Context) { Select("fcm_tokens.token"). Joins("JOIN users ON users.id = fcm_tokens.user_id"). Joins("JOIN comments ON comments.user_id = users.id"). - Where("comments.id = ? AND users.id <> ?", req.ParentCommentID, token.UID). + Where("comments.id = ? AND users.id <> ?", unmaskedCommentId, token.UID). Pluck("fcm_tokens.token", &threadTokens). Error if err == nil && len(threadTokens) > 0 { go fcm.New(h.fb.MsgClient). ToTokens(threadTokens). WithMsg(builders.ThreadedCommentReplyNoti(req.Content)). - WithData(builders.ThreadedCommentReplyData(*req.ParentCommentID, comment.ID, req.PostID)). + WithData(builders.ThreadedCommentReplyData(unmaskedCommentId, comment.ID.Val, unmaskedPostId)). Send(*h.db) } } diff --git a/features/comments/edit.go b/features/comments/edit.go index 8d06e0f4..e5cd4aa1 100644 --- a/features/comments/edit.go +++ b/features/comments/edit.go @@ -2,6 +2,7 @@ package comments import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -25,9 +26,15 @@ func (h *handler) handleEditComment(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.CommentID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + // Update the `Content` and `Edited` fields of the comment in a single query results := h.db.Model(&db.Comment{}). - Where("id = ?", req.CommentID). + Where("id = ?", unmaskedId). Where("hidden = false"). Where("user_id = ?", token.UID). Updates(map[string]interface{}{ diff --git a/features/comments/get_comment_by_id.go b/features/comments/get_comment_by_id.go index 1362d3db..88d0fdb0 100644 --- a/features/comments/get_comment_by_id.go +++ b/features/comments/get_comment_by_id.go @@ -1,6 +1,7 @@ package comments import ( + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "errors" @@ -12,6 +13,13 @@ import ( func (h *handler) handleGetCommentById(c *gin.Context) { commentID := c.Query("id") + + unmaskedId, err := masking.Unmask(commentID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + token, err := utils.UserTokenFromContext(c) if err != nil { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) @@ -34,7 +42,7 @@ func (h *handler) handleGetCommentById(c *gin.Context) { FROM comments WHERE comments.id = ? LIMIT 1 - `, token.UID, commentID). + `, token.UID, unmaskedId). First(&comment). Error diff --git a/features/comments/hide.go b/features/comments/hide.go index 7e5fd091..5f8b86f1 100644 --- a/features/comments/hide.go +++ b/features/comments/hide.go @@ -2,6 +2,7 @@ package comments import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -26,10 +27,16 @@ func (h *handler) handleHideComment(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.CommentID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + // Update the "hidden" field on a comment. result := h.db. Model(&db.Comment{}). - Where("id = ? AND user_id = ?", req.CommentID, token.UID). + Where("id = ? AND user_id = ?", unmaskedId, token.UID). Update("hidden", "true") if result.Error != nil { diff --git a/features/comments/load_initial_comments.go b/features/comments/load_initial_comments.go index 7270b148..4c153f58 100644 --- a/features/comments/load_initial_comments.go +++ b/features/comments/load_initial_comments.go @@ -3,6 +3,7 @@ package comments import ( "confesi/config" "confesi/lib/logger" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -28,7 +29,7 @@ const ( ) -func fetchComments(postID int64, gm *gorm.DB, excludedIDs []string, sort string, uid string, h handler, c *gin.Context, commentSpecificKey string) ([]CommentThreadGroup, error) { +func fetchComments(postID uint, gm *gorm.DB, excludedIDs []string, sort string, uid string, h handler, c *gin.Context, commentSpecificKey string) ([]CommentThreadGroup, error) { var comments []CommentDetail excludedIDQuery := "" if len(excludedIDs) > 0 { @@ -132,7 +133,7 @@ func fetchComments(postID int64, gm *gorm.DB, excludedIDs []string, sort string, if comment.Comment.ParentRoot == nil { thread := CommentThreadGroup{ Root: comment, - Replies: parentMap[int(comment.Comment.ID)], + Replies: parentMap[int(comment.Comment.ID.Val)], } // Set the Next cursor for the last thread @@ -170,6 +171,12 @@ func (h *handler) handleGetComments(c *gin.Context) { return } + unmaskedPostID, err := masking.Unmask(req.PostID) + if err != nil { + response.New(http.StatusBadRequest).Err(utils.UuidError.Error()).Send(c) + return + } + // session key that can only be created by *this* user, so it can't be guessed to manipulate others' feeds commentSpecificKey, err := utils.CreateCacheKey(config.RedisCommentsCache, token.UID, req.SessionKey) if err != nil { @@ -198,7 +205,7 @@ func (h *handler) handleGetComments(c *gin.Context) { } // fetch comments using the translated SQL query - comments, err := fetchComments(int64(req.PostID), h.db, ids, req.Sort, token.UID, *h, c, commentSpecificKey) + comments, err := fetchComments(unmaskedPostID, h.db, ids, req.Sort, token.UID, *h, c, commentSpecificKey) if err != nil { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) return diff --git a/features/comments/load_reply_comments.go b/features/comments/load_reply_comments.go index 64e5abba..c14998f3 100644 --- a/features/comments/load_reply_comments.go +++ b/features/comments/load_reply_comments.go @@ -2,6 +2,7 @@ package comments import ( "confesi/config" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -29,6 +30,12 @@ func (h *handler) handleGetReplies(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.ParentRoot) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + fetchResults := ReplyComments{} err = h.db. @@ -47,7 +54,7 @@ func (h *handler) handleGetReplies(c *gin.Context) { `+req.Next.Cursor("AND created_at >")+` ORDER BY created_at ASC LIMIT ? - `, token.UID, req.ParentRoot, config.RepliesLoadedManually). + `, token.UID, unmaskedId, config.RepliesLoadedManually). Find(&fetchResults.Comments). Error diff --git a/features/comments/requests.http b/features/comments/requests.http index eaecf39e..1bddf824 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -1,13 +1,13 @@ ### Create a comment -### `parent_comment_id`: null | # +### `parent_comment_id`: null | "SOME MASK" POST http://127.0.0.1:8080/api/v1/comments/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81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y1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "post_id": 29, - "parent_comment_id": 232, + "post_id": "SOME MASK", + "parent_comment_id": "SOME MASK", "content": "thanks dude" } @@ -15,20 +15,20 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_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F7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "comment_id": 17 + "comment_id": "SOME MASK" } ### Fetch root comments (with some replies) GET http://127.0.0.1:8080/api/v1/comments/roots Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "post_id": 29, + "post_id": "SOME MASK", "sort": "new", "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8" @@ -38,10 +38,10 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/replies Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "parent_root": 93, + "parent_root": "SOME MASK", "next": 1691301316512158 } @@ -49,19 +49,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/comments/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Fetch a comment by id -GET http://127.0.0.1:8080/api/v1/comments/comment?id=103 +GET http://127.0.0.1:8080/api/v1/comments/comment?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2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dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Fetch your comments GET http://127.0.0.1:8080/api/v1/comments/your-comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOi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ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": 168899127721647912 @@ -71,9 +71,9 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dM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im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "comment_id": 1, + "comment_id": "SOME MASKED ID", "content": "uwuuuu" } \ No newline at end of file diff --git a/features/drafts/requests.http b/features/drafts/requests.http index cc7ac160..11e6905d 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/drafts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0Zn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FzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "title": "next blah this is a title 5", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/drafts/your-drafts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdm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dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": 123123123123 @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/drafts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3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y1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "draft_id": 1, @@ -37,7 +37,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/drafts/delete Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6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_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "draft_id": 2 diff --git a/features/feedback/requests.http b/features/feedback/requests.http index 4f7eaff0..f0e46ada 100644 --- a/features/feedback/requests.http +++ b/features/feedback/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/feedback/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOI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O2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "message": "WOAH THIS WAS SUCH AN AMAZING APP I CAN'T BELEIVE YOU DID IT!", diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index a0dc70a0..f0b63fa0 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -3,7 +3,7 @@ GET http://127.0.0.1:8080/api/v1/hide-log/your-hide-log Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyME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 1689647419058834 @@ -14,4 +14,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=1 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/notifications/requests.http b/features/notifications/requests.http index b94acee4..169499a0 100644 --- a/features/notifications/requests.http +++ b/features/notifications/requests.http @@ -2,7 +2,7 @@ DELETE http://127.0.0.1:8080/api/v1/notifications/token Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzN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iIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/notifications/token-uid Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZ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gashoV9DwiErLJ" @@ -31,13 +31,13 @@ Content-Type: application/json GET http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Set topic prefs PUT http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAi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iLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "daily_hottest": true, diff --git a/features/posts/create.go b/features/posts/create.go index af847c99..55f92067 100644 --- a/features/posts/create.go +++ b/features/posts/create.go @@ -53,7 +53,7 @@ func (h *handler) createPost(c *gin.Context, title string, body string, token *a post := db.Post{ UserID: token.UID, SchoolID: userData.SchoolID, - CategoryID: postCategory.ID, + CategoryID: uint(postCategory.ID.Val), FacultyID: userData.FacultyID, YearOfStudyID: userData.YearOfStudyID, Title: title, diff --git a/features/posts/get_post_by_id.go b/features/posts/get_post_by_id.go index f6bbde14..da13a999 100644 --- a/features/posts/get_post_by_id.go +++ b/features/posts/get_post_by_id.go @@ -2,9 +2,11 @@ package posts import ( tags "confesi/lib/emojis" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "errors" + "fmt" "net/http" "github.com/gin-gonic/gin" @@ -13,6 +15,15 @@ import ( func (h *handler) handleGetPostById(c *gin.Context) { postID := c.Query("id") + + // cast as MaskedInt type else throw 400 + maskedId, err := masking.Unmask(postID) + if err != nil { + fmt.Println(err) + response.New(http.StatusBadRequest).Err("invalid post id").Send(c) + return + } + token, err := utils.UserTokenFromContext(c) if err != nil { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) @@ -40,7 +51,7 @@ func (h *handler) handleGetPostById(c *gin.Context) { FROM posts WHERE posts.id = ? LIMIT 1 - `, token.UID, postID). + `, token.UID, maskedId). First(&post). Error diff --git a/features/posts/get_posts.go b/features/posts/get_posts.go index 983bda26..e12ca61b 100644 --- a/features/posts/get_posts.go +++ b/features/posts/get_posts.go @@ -4,6 +4,7 @@ import ( "confesi/config" tags "confesi/lib/emojis" "confesi/lib/logger" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -37,11 +38,17 @@ func (h *handler) handleGetPosts(c *gin.Context) { return } - if req.SchoolId == 0 && !req.AllSchools { + if req.SchoolId == "" && !req.AllSchools { response.New(http.StatusBadRequest).Err("school id or all specification must be provided").Send(c) return } + unmaskedSchoolId, err := masking.Unmask(req.SchoolId) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid school id").Send(c) + return + } + // session key that can only be created by *this* user, so it can't be guessed to manipulate others' feeds idSessionKey, err := utils.CreateCacheKey(config.RedisPostsCache, token.UID, req.SessionKey) if err != nil { @@ -113,7 +120,7 @@ func (h *handler) handleGetPosts(c *gin.Context) { // if `all_schools` is true, then we don't need to filter by school if !req.AllSchools { - query = query.Where("school_id = ?", req.SchoolId) + query = query.Where("school_id = ?", unmaskedSchoolId) } err = query. diff --git a/features/posts/requests.http b/features/posts/requests.http index b7e8454c..2f4a83b8 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/posts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "title": "race condition test 8", @@ -12,25 +12,25 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### Fetch hottest posts from a specific day -GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-07&profanity=false +GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-04&profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Fetch a post by id -GET http://127.0.0.1:8080/api/v1/posts/post?id=28 +GET http://127.0.0.1:8080/api/v1/posts/post?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0e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ZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Fetch posts GET http://127.0.0.1:8080/api/v1/posts/posts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjI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5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "sort": "new", - "school_id": 1, + "school_id": "TqGRLQZ-BRO5ieESwaRA7Hf0", "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "all_schools": false @@ -40,19 +40,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/posts/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRo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TGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Sentiment anaylsis for posts by ID -GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=50 +GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtH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CJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Fetch your posts GET http://127.0.0.1:8080/api/v1/posts/your-posts Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJza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ngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": 1688460277629001 @@ -62,7 +62,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_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qy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "post_id": 2 @@ -72,7 +72,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3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ErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "post_id": 28, diff --git a/features/posts/sentiment_analysis.go b/features/posts/sentiment_analysis.go index 142a9723..3ad3fa64 100644 --- a/features/posts/sentiment_analysis.go +++ b/features/posts/sentiment_analysis.go @@ -2,6 +2,7 @@ package posts import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "errors" "net/http" @@ -19,13 +20,20 @@ type sentimentAnalysis struct { func (h *handler) sentimentAnaylsis(c *gin.Context) { postID := c.Query("id") + + unmaskedPostId, err := masking.Unmask(postID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid post id").Send(c) + return + } + var post db.Post - err := h.db. + err = h.db. Preload("School"). Preload("Category"). Preload("Faculty"). Preload("YearOfStudy"). - First(&post, postID).Error + First(&post, unmaskedPostId).Error if err != nil { if errors.Is(err, gorm.ErrRecordNotFound) { response.New(http.StatusBadRequest).Err("post not found").Send(c) diff --git a/features/reports/requests.http b/features/reports/requests.http index d4547a84..fd342ad9 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/reports/report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyM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1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "content_id": 1, @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWl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vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": null @@ -25,6 +25,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/report?id=1 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTg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1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/saves/requests.http b/features/saves/requests.http index fc7e4a68..090c9a48 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/saves/save Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR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cbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "content_id": 29, @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/saves/unsave Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBz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JSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/postsain Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": null @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUz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iOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "next": null diff --git a/features/schools/requests.http b/features/schools/requests.http index 4f54022e..d91a5359 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -2,29 +2,29 @@ GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&school=uvicasdsad Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1Q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QiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&radius=5000 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJf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wMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZW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.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Get a school by query GET http://127.0.0.1:8080/api/v1/schools/search?query=university&lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ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SxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Watch a school POST http://127.0.0.1:8080/api/v1/schools/watch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGw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eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/unwatch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmhpMi_P37rI9xJrmRUQjGwl1V89GgFBzrttLYqT4z-IESJyR1frbEoLf1OjgVKJqewlKRxF_pcBo_xxCjC7Z1GIf7JGa63BwJFw2yODgTOQZi80A +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "school_id": 2 @@ -44,7 +44,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/watched?lat=48.465900&long=-123.328652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iOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "include_home_school": true @@ -54,7 +54,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/rank?lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5Mj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NvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "purge_cache": false, @@ -67,11 +67,11 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUs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XRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Get a random school GET http://127.0.0.1:8080/api/v1/schools/random?without-school=2 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZ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1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/user/requests.http b/features/user/requests.http index 0cca0f4b..62765bb5 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -2,25 +2,25 @@ GET http://127.0.0.1:8080/api/v1/user/user Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6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aWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### get user standing GET http://127.0.0.1:8080/api/v1/user/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JH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HU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Clear user faculty DELETE http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.hMB-ue_GDWlZZ9fOAl4xsA3muphNZJLEdR41JHASTgKxH_zCMkLoKQ7UpVJOhrh_81z_onJavhj5tj6pwb4Xv1K6zEHbraEFdTs7GHcACjVrnn_L_78KZxmxWQ4SvxPhF7KoGsmP4ZGCD0rThSCQzAfgBR1dap-gIc9ShYO1f3zOIIiiCoKQeXhg0_aFtzublf2BbS8yXoFXzw0-mr00o3qSyMEs99pThv3jNgmh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jAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "faculty": "ENG" @@ -30,14 +30,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT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vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ ### Set user year of study PATCH http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiL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Xh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "year_of_study": "One" @@ -47,7 +47,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/user/school Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwc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yaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "school_id": 1 @@ -59,4 +59,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/user/user-stats Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIs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I6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/votes/requests.http b/features/votes/requests.http index 890881cd..4123ccc8 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -2,7 +2,7 @@ PUT http://127.0.0.1:8080/api/v1/votes/vote Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NDg3NjIsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY0ODc2MiwiZXhwIjoxNjkxNjUyMzYyLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJ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oqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { "content_id": 17, diff --git a/lib/masking/masking.go b/lib/masking/masking.go new file mode 100644 index 00000000..ad462fe3 --- /dev/null +++ b/lib/masking/masking.go @@ -0,0 +1,58 @@ +package masking + +import ( + "crypto/aes" + "crypto/cipher" + "crypto/rand" + "encoding/base64" + "fmt" + "io" + "strconv" +) + +// todo: .ENV +var secretKey = []byte("your_16_byte_key") + +func Mask(id int) (string, error) { + block, err := aes.NewCipher(secretKey) + if err != nil { + return "", err + } + + ciphertext := make([]byte, aes.BlockSize+len(fmt.Sprintf("%d", id))) + iv := ciphertext[:aes.BlockSize] + if _, err := io.ReadFull(rand.Reader, iv); err != nil { + return "", err + } + + ctr := cipher.NewCTR(block, iv) + plaintext := []byte(fmt.Sprintf("%d", id)) + ctr.XORKeyStream(ciphertext[aes.BlockSize:], plaintext) + + return base64.URLEncoding.EncodeToString(ciphertext), nil +} + +func Unmask(ciphertext string) (uint, error) { + block, err := aes.NewCipher(secretKey) + if err != nil { + return 0, err + } + + decodedCiphertext, err := base64.URLEncoding.DecodeString(ciphertext) + if err != nil { + return 0, err + } + + iv := decodedCiphertext[:aes.BlockSize] + ctr := cipher.NewCTR(block, iv) + plaintext := make([]byte, len(decodedCiphertext)-aes.BlockSize) + ctr.XORKeyStream(plaintext, decodedCiphertext[aes.BlockSize:]) + + decryptedStr := string(plaintext) + decryptedUint, err := strconv.Atoi(decryptedStr) + if err != nil { + return 0, err + } + + return uint(decryptedUint), nil +} diff --git a/lib/masking/masking_test.go b/lib/masking/masking_test.go new file mode 100644 index 00000000..ee68f75c --- /dev/null +++ b/lib/masking/masking_test.go @@ -0,0 +1,49 @@ +package masking + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestEncryptionAndDecryption(t *testing.T) { + tests := []struct { + id int + }{ + {0}, // test case 1 + {12345}, // test case 2 + {987654}, // test case 3 + {-42}, // test case 4 + } + + for _, test := range tests { + t.Run(fmt.Sprintf("ID_%d", test.id), func(t *testing.T) { + encrypted, err := Mask(test.id) + if err != nil { + t.Errorf("Encryption error: %v", err) + } + + decrypted, err := Unmask(encrypted) + if err != nil { + t.Errorf("Decryption error: %v", err) + } + + assert.Equal(t, test.id, decrypted, "Original and decrypted IDs do not match") + }) + } +} + +func TestEncryptionAndDecryptionSimple(t *testing.T) { + val, err := Mask(123) + if err != nil { + t.Error("Encryption error:", err) + } + + decrypted, err := Unmask(val) + if err != nil { + t.Error("Decryption error:", err) + } + + assert.Equal(t, 123, decrypted) +} diff --git a/lib/validation/models.go b/lib/validation/models.go index 39716e20..6d52513e 100644 --- a/lib/validation/models.go +++ b/lib/validation/models.go @@ -57,7 +57,7 @@ type VoteDetail struct { type PostQuery struct { Sort string `json:"sort" validate:"oneof=trending new sentiment"` - SchoolId uint `json:"school_id"` + SchoolId string `json:"school_id"` PurgeCache bool `json:"purge_cache"` // true or false, doesn't have "required" so that the zero-value is OK SessionKey string `json:"session_key" validate:"required"` AllSchools bool `json:"all_schools"` // true or false, doesn't have "required" so that the zero-value is OK @@ -97,16 +97,16 @@ type UpdateSchool struct { type CreateComment struct { // [required] the post this comment is associated with - PostID uint `json:"post_id" validate:"required"` + PostID string `json:"post_id" validate:"required"` // the comment this comment is threaded under. Left empty to indicate this is a "root-level" comment - ParentCommentID *uint `json:"parent_comment_id"` + ParentCommentID *string `json:"parent_comment_id"` // [required] the actual text content of the comment Content string `json:"content" validate:"required,min=1,max=500" gorm:"not null"` } type HideComment struct { // [required] the id of comment to "delete" - CommentID uint `json:"comment_id" validate:"required"` + CommentID string `json:"comment_id" validate:"required"` } type HidePost struct { @@ -116,7 +116,7 @@ type HidePost struct { type InitialCommentQuery struct { Sort string `json:"sort" validate:"oneof=trending new"` - PostID uint `json:"post_id" validate:"required"` + PostID string `json:"post_id" validate:"required"` PurgeCache bool `json:"purge_cache"` // true or false, doesn't have "required" so that the zero-value is OK SessionKey string `json:"session_key" validate:"required"` } @@ -130,7 +130,7 @@ type RepliesCommentQuery struct { // [required] timestamp of last seen replied comment (microseconds since epoch) Next NullableNext `json:"next"` // [required] the comment to load replies for - ParentRoot uint `json:"parent_root" validate:"required"` + ParentRoot string `json:"parent_root" validate:"required"` } type FeedbackDetails struct { @@ -177,7 +177,7 @@ type FcmTokenQuery struct { type HideContent struct { // [required] content id - ContentID uint `json:"content_id" validate:"required"` + ContentID string `json:"content_id" validate:"required"` // [required] "post" for post, "comment" for comment ContentType string `json:"content_type" validate:"required,oneof=post comment"` // [required] true to hide, false to unhide (not having required with pointers to ensure zero-value is OK) @@ -219,7 +219,7 @@ type ReportQuery struct { type UpdateReviewedByModQuery struct { // [required] content id to report - ContentID uint `json:"content_id" validate:"required"` + ContentID string `json:"content_id" validate:"required"` // [required] "post" for post, "comment" for comment ContentType string `json:"content_type" validate:"required,oneof=post comment"` // [required] true to mark as reviewed, false to unmark as reviewed (not having required with pointers to ensure zero-value is OK) @@ -255,21 +255,21 @@ type RankedPostsByReportsQuery struct { type FetchReportsForCommentById struct { // [required] comment id - CommentID uint `json:"comment_id" validate:"required"` + CommentID string `json:"comment_id" validate:"required"` // [required] timestamp of last viewed content (ms since unix epoch) Next NullableNext `json:"next"` } type FetchReportsForPostById struct { // [required] post id - PostID uint `json:"post_id" validate:"required"` + PostID string `json:"post_id" validate:"required"` // [required] timestamp of last viewed content (ms since unix epoch) Next NullableNext `json:"next"` } type EditComment struct { // [required] comment id - CommentID uint `json:"comment_id" validate:"required"` + CommentID string `json:"comment_id" validate:"required"` // [required] the actual text content of the comment Content string `json:"content" validate:"required,min=1,max=500" gorm:"not null"` } diff --git a/middleware/firebase_auth.go b/middleware/firebase_auth.go index ee633a00..d083abdb 100644 --- a/middleware/firebase_auth.go +++ b/middleware/firebase_auth.go @@ -164,7 +164,7 @@ func RetrySyncPostgresAccountCreation(c *gin.Context, token *auth.Token) error { } // else, add the email to the user - user.SchoolID = school.ID + user.SchoolID = school.ID.Val err = tx.Create(&user).Error if err != nil { From dd7f2a2b12f375606c10197acb79065f79a34df5 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 06:02:00 -0700 Subject: [PATCH 02/10] wip: adds more masking --- features/drafts/delete_draft.go | 9 ++++++++- features/drafts/edit.go | 9 ++++++++- features/drafts/requests.http | 4 ++-- features/hide_log/get_hide_log_by_id.go | 11 ++++++----- features/hide_log/requests.http | 2 +- features/posts/edit.go | 9 ++++++++- features/posts/hide.go | 9 ++++++++- features/posts/requests.http | 4 ++-- features/reports/create.go | 15 +++++++++++---- features/reports/get_report_by_id.go | 15 +++++++-------- features/reports/requests.http | 4 ++-- features/saves/requests.http | 4 ++-- features/saves/save.go | 16 +++++++++++----- features/saves/unsave.go | 15 +++++++++++---- features/schools/get_random_school.go | 15 +++++++-------- features/schools/requests.http | 6 +++--- features/schools/unwatch_school.go | 14 +++++++++++--- features/schools/watch_school.go | 14 +++++++++++--- features/user/requests.http | 2 +- features/user/set_faculty.go | 2 +- features/user/set_school.go | 9 ++++++++- features/user/set_year_of_study.go | 2 +- features/votes/requests.http | 2 +- features/votes/vote.go | 11 +++++++++-- lib/validation/models.go | 20 ++++++++++---------- 25 files changed, 150 insertions(+), 73 deletions(-) diff --git a/features/drafts/delete_draft.go b/features/drafts/delete_draft.go index f76f13d1..7e6bd662 100644 --- a/features/drafts/delete_draft.go +++ b/features/drafts/delete_draft.go @@ -2,6 +2,7 @@ package drafts import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -25,8 +26,14 @@ func (h *handler) handleDeleteDraft(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.DraftID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + results := h.db. - Where("id = ?", req.DraftID). + Where("id = ?", unmaskedId). Where("user_id = ?", token.UID). Delete(&db.Draft{}) diff --git a/features/drafts/edit.go b/features/drafts/edit.go index 99923b66..fac67f54 100644 --- a/features/drafts/edit.go +++ b/features/drafts/edit.go @@ -2,6 +2,7 @@ package drafts import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -25,13 +26,19 @@ func (h *handler) handleEditDraft(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.DraftID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + updates := map[string]interface{}{ "title": req.Title, "content": req.Body, } results := h.db.Model(&db.Draft{}). - Where("id = ?", req.DraftID). + Where("id = ?", unmaskedId). Where("user_id = ?", token.UID). Updates(updates) diff --git a/features/drafts/requests.http b/features/drafts/requests.http index 11e6905d..6e37526c 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -28,7 +28,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "draft_id": 1, + "draft_id": "SOME MASKED ID", "title": "bad word test for profanity filter: oh yeah big dick penis time boys", "body": "body ah" } @@ -40,5 +40,5 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "draft_id": 2 + "draft_id": "SOME MASKED ID" } \ No newline at end of file diff --git a/features/hide_log/get_hide_log_by_id.go b/features/hide_log/get_hide_log_by_id.go index 80ab95ea..0f901028 100644 --- a/features/hide_log/get_hide_log_by_id.go +++ b/features/hide_log/get_hide_log_by_id.go @@ -2,19 +2,17 @@ package hideLog import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "errors" "net/http" - "strconv" "github.com/gin-gonic/gin" "gorm.io/gorm" ) func (h *handler) handleGetHideLogById(c *gin.Context) { - // get id from query param id - id := c.Query("id") // get the user's token token, err := utils.UserTokenFromContext(c) @@ -23,7 +21,10 @@ func (h *handler) handleGetHideLogById(c *gin.Context) { return } - idNumeric, err := strconv.Atoi(id) + // get id from query param id + id := c.Query("id") + + unmaskedId, err := masking.Unmask(id) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return @@ -32,7 +33,7 @@ func (h *handler) handleGetHideLogById(c *gin.Context) { hideLog := db.HideLog{} err = h.db. - Where("id = ? AND user_id = ?", idNumeric, token.UID). + Where("id = ? AND user_id = ?", unmaskedId, token.UID). First(&hideLog). Error if err != nil { diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index f0b63fa0..267ceefe 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -12,6 +12,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### Get hidden content log by id -GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=1 +GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=SOMEMASKEDID Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/posts/edit.go b/features/posts/edit.go index 1cd7c06c..8a2fd680 100644 --- a/features/posts/edit.go +++ b/features/posts/edit.go @@ -2,6 +2,7 @@ package posts import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -25,6 +26,12 @@ func (h *handler) handleEditPost(c *gin.Context) { return } + unmaskedID, err := masking.Unmask(req.PostID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + // sentiment analysis sentiment := AnalyzeText(req.Title + "\n" + req.Body) sentimentValue := sentiment.Compound @@ -41,7 +48,7 @@ func (h *handler) handleEditPost(c *gin.Context) { // Update the `Title`/`Body` and `Edited` fields of the post in a single query results := h.db.Model(&db.Post{}). - Where("id = ?", req.PostID). + Where("id = ?", unmaskedID). Where("hidden = false"). Where("user_id = ?", token.UID). Updates(updates) diff --git a/features/posts/hide.go b/features/posts/hide.go index 552df9e6..be5fea5b 100644 --- a/features/posts/hide.go +++ b/features/posts/hide.go @@ -2,6 +2,7 @@ package posts import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -25,10 +26,16 @@ func (h *handler) handleHidePost(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.PostID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + // Update the "hidden" field on a post. result := h.db. Model(&db.Post{}). - Where("id = ? AND user_id = ?", req.PostID, token.UID). + Where("id = ? AND user_id = ?", unmaskedId, token.UID). Update("hidden", "true") if result.Error != nil { diff --git a/features/posts/requests.http b/features/posts/requests.http index 2f4a83b8..b93263a8 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -65,7 +65,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "post_id": 2 + "post_id": "SOME MASKED ID" } ### Edit your post @@ -75,7 +75,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "post_id": 28, + "post_id": "SOME MASKED ID", "title": "yo i guess boring anger", "body": "body ah" } diff --git a/features/reports/create.go b/features/reports/create.go index 7bd3f9eb..aec2fe64 100644 --- a/features/reports/create.go +++ b/features/reports/create.go @@ -2,6 +2,7 @@ package reports import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -29,6 +30,12 @@ func (h *handler) handleCreateReport(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.ContentID) + if err != nil { + response.New(http.StatusBadRequest).Err(invalidContentId.Error()).Send(c) + return + } + // start a transaction tx := h.db.Begin() // if something goes ary, rollback @@ -43,10 +50,10 @@ func (h *handler) handleCreateReport(c *gin.Context) { var modelMatcher interface{} report := db.Report{} if req.ContentType == "post" { - report.PostID = &req.ContentID + report.PostID = &unmaskedId modelMatcher = &db.Post{} } else if req.ContentType == "comment" { - report.CommentID = &req.ContentID + report.CommentID = &unmaskedId modelMatcher = &db.Comment{} } else { // should never happen... but to be defensive @@ -58,7 +65,7 @@ func (h *handler) handleCreateReport(c *gin.Context) { // inc the report count for the post/comment by 1 err = tx. Model(&modelMatcher). - Where("id = ?", req.ContentID). + Where("id = ?", unmaskedId). Update("report_count", gorm.Expr("report_count + 1")). Error if err != nil { @@ -83,7 +90,7 @@ func (h *handler) handleCreateReport(c *gin.Context) { report.ReportedBy = token.UID report.Description = req.Description - report.TypeID = uint(reportType.ID) + report.TypeID = reportType.ID.Val err = tx.Create(&report).Error if err != nil { diff --git a/features/reports/get_report_by_id.go b/features/reports/get_report_by_id.go index 8cf8ade4..82b1b9da 100644 --- a/features/reports/get_report_by_id.go +++ b/features/reports/get_report_by_id.go @@ -2,20 +2,17 @@ package reports import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "errors" "net/http" - "strconv" "github.com/gin-gonic/gin" "gorm.io/gorm" ) func (h *handler) handleGetReportById(c *gin.Context) { - // get id from query param id - id := c.Query("id") - // get the user's token token, err := utils.UserTokenFromContext(c) if err != nil { @@ -23,17 +20,19 @@ func (h *handler) handleGetReportById(c *gin.Context) { return } - report := db.Report{} - - idNumeric, err := strconv.Atoi(id) + // get id from query param id + id := c.Query("id") + unmaskedId, err := masking.Unmask(id) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return } + report := db.Report{} + err = h.db. Preload("ReportType"). // preload the ReportType field of the Report - Where("id = ? AND reported_by = ?", idNumeric, token.UID). + Where("id = ? AND reported_by = ?", unmaskedId, token.UID). First(&report). Error if err != nil { diff --git a/features/reports/requests.http b/features/reports/requests.http index fd342ad9..4a925384 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -5,7 +5,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "content_id": 1, + "content_id": "SOME MASKED ID", "content_type": "post", "type": "nsfw", "description": "This is an nsfw post" @@ -23,7 +23,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### get report by id -GET http://127.0.0.1:8080/api/v1/reports/report?id=1 +GET http://127.0.0.1:8080/api/v1/reports/report?id=SOMEMASKEDID Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/saves/requests.http b/features/saves/requests.http index 090c9a48..a6e450cb 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -5,7 +5,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "content_id": 29, + "content_id": "SOME MASKED ID", "content_type": "post" } @@ -16,7 +16,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "content_id": 93, + "content_id": "SOME MASKED ID", "content_type": "comment" } diff --git a/features/saves/save.go b/features/saves/save.go index 199f810b..a2bd4d7a 100644 --- a/features/saves/save.go +++ b/features/saves/save.go @@ -3,6 +3,7 @@ package saves import ( "confesi/db" "confesi/lib/logger" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -15,19 +16,19 @@ import ( "github.com/jackc/pgx/v5/pgconn" ) -func (h *handler) saveContent(c *gin.Context, token *auth.Token, req validation.SaveContentDetails) error { +func (h *handler) saveContent(c *gin.Context, token *auth.Token, req validation.SaveContentDetails, unmaskedId uint) error { // bit of saved content var err error if req.ContentType == "post" { savedPost := db.SavedPost{ UserID: token.UID, - PostID: req.ContentID, + PostID: unmaskedId, } err = h.db.Create(&savedPost).Error } else if req.ContentType == "comment" { savedComment := db.SavedComment{ UserID: token.UID, - CommentID: req.ContentID, + CommentID: unmaskedId, } err = h.db.Create(&savedComment).Error } else { @@ -58,19 +59,24 @@ func (h *handler) saveContent(c *gin.Context, token *auth.Token, req validation. func (h *handler) handleSave(c *gin.Context) { // extract request var req validation.SaveContentDetails - err := utils.New(c).Validate(&req) if err != nil { return } + unmaskedId, err := masking.Unmask(req.ContentID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + token, err := utils.UserTokenFromContext(c) if err != nil { response.New(http.StatusInternalServerError).Err("server error").Send(c) return } - err = h.saveContent(c, token, req) + err = h.saveContent(c, token, req, unmaskedId) if err != nil { // switch over err switch err { diff --git a/features/saves/unsave.go b/features/saves/unsave.go index ce6c21d6..ead44679 100644 --- a/features/saves/unsave.go +++ b/features/saves/unsave.go @@ -2,6 +2,7 @@ package saves import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -11,18 +12,18 @@ import ( "github.com/gin-gonic/gin" ) -func (h *handler) unsaveContent(c *gin.Context, token *auth.Token, req validation.SaveContentDetails) error { +func (h *handler) unsaveContent(c *gin.Context, token *auth.Token, req validation.SaveContentDetails, unmaskedId uint) error { var err error if req.ContentType == "post" { savedPost := db.SavedPost{ UserID: token.UID, - PostID: req.ContentID, + PostID: unmaskedId, } err = h.db.Delete(&savedPost, "user_id = ? AND post_id = ?", savedPost.UserID, savedPost.PostID).Error } else if req.ContentType == "comment" { savedComment := db.SavedComment{ UserID: token.UID, - CommentID: req.ContentID, + CommentID: unmaskedId, } err = h.db.Delete(&savedComment, "user_id = ? AND comment_id = ?", savedComment.UserID, savedComment.CommentID).Error } else { @@ -48,7 +49,13 @@ func (h *handler) handleUnsave(c *gin.Context) { return } - err = h.unsaveContent(c, token, req) + unmaskedId, err := masking.Unmask(req.ContentID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + + err = h.unsaveContent(c, token, req, unmaskedId) if err != nil { // all returned errors are just general client-facing "server errors" response.New(http.StatusInternalServerError).Err(err.Error()).Send(c) diff --git a/features/schools/get_random_school.go b/features/schools/get_random_school.go index 68b7f7c9..59f92009 100644 --- a/features/schools/get_random_school.go +++ b/features/schools/get_random_school.go @@ -2,10 +2,10 @@ package schools import ( "confesi/config" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "net/http" - "strconv" "github.com/gin-gonic/gin" ) @@ -14,11 +14,10 @@ func (h *handler) handleGetRandomSchool(c *gin.Context) { schoolDetail := SchoolDetail{} withoutSchoolId := c.Query("without-school") - - // parse without-school parameter - parsedWithoutSchoolId, err := strconv.ParseInt(withoutSchoolId, 10, 64) + unmaskedId, err := masking.Unmask(withoutSchoolId) if err != nil { - parsedWithoutSchoolId = -1 // Set to a value that won't match any school ID + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return } token, err := utils.UserTokenFromContext(c) @@ -44,7 +43,7 @@ func (h *handler) handleGetRandomSchool(c *gin.Context) { ` // modify the query if without-school parameter is provided - if parsedWithoutSchoolId > 0 { + if unmaskedId > 0 { query += "WHERE s.id != ?" } @@ -53,8 +52,8 @@ func (h *handler) handleGetRandomSchool(c *gin.Context) { // prepare arguments for the query args := []interface{}{token.UID, token.UID} - if parsedWithoutSchoolId > 0 { - args = append(args, parsedWithoutSchoolId) + if unmaskedId > 0 { + args = append(args, unmaskedId) } // execute the query diff --git a/features/schools/requests.http b/features/schools/requests.http index d91a5359..d99f62b1 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -27,7 +27,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "school_id": 1 + "school_id": "SOME MASKED ID" } ### Unwatch a school @@ -37,7 +37,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "school_id": 2 + "school_id": "SOME MASKED ID" } ### Get all watched schools for a user @@ -71,7 +71,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### Get a random school -GET http://127.0.0.1:8080/api/v1/schools/random?without-school=2 +GET http://127.0.0.1:8080/api/v1/schools/random?without-school=SOMEMASKEDID Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ diff --git a/features/schools/unwatch_school.go b/features/schools/unwatch_school.go index 460ee304..13052156 100644 --- a/features/schools/unwatch_school.go +++ b/features/schools/unwatch_school.go @@ -2,6 +2,7 @@ package schools import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -11,10 +12,10 @@ import ( "github.com/gin-gonic/gin" ) -func (h *handler) unwatchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool) error { +func (h *handler) unwatchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool, unmaskedId uint) error { school := db.SchoolFollow{ UserID: token.UID, - SchoolID: req.SchoolID, + SchoolID: unmaskedId, } err := h.DB.Delete(&school, "user_id = ? AND school_id = ?", school.UserID, school.SchoolID).Error if err != nil { @@ -37,7 +38,14 @@ func (h *handler) handleUnwatchSchool(c *gin.Context) { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) return } - err = h.unwatchSchool(c, token, req) + + unmaskedId, err := masking.Unmask(req.SchoolID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + + err = h.unwatchSchool(c, token, req, unmaskedId) if err != nil { response.New(http.StatusInternalServerError).Err(err.Error()).Send(c) } diff --git a/features/schools/watch_school.go b/features/schools/watch_school.go index 9935ce34..6fa4bc1b 100644 --- a/features/schools/watch_school.go +++ b/features/schools/watch_school.go @@ -2,6 +2,7 @@ package schools import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -13,10 +14,10 @@ import ( "github.com/jackc/pgx/v5/pgconn" ) -func (h *handler) watchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool) error { +func (h *handler) watchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool, unmaskedId uint) error { school := db.SchoolFollow{ UserID: token.UID, - SchoolID: req.SchoolID, + SchoolID: unmaskedId, } err := h.DB.Create(&school).Error if err != nil { @@ -53,7 +54,14 @@ func (h *handler) handleWatchSchool(c *gin.Context) { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) return } - err = h.watchSchool(c, token, req) + + unmaskedId, err := masking.Unmask(req.SchoolID) + if err != nil { + response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) + return + } + + err = h.watchSchool(c, token, req, unmaskedId) if err != nil { // switch over err switch err { diff --git a/features/user/requests.http b/features/user/requests.http index 62765bb5..d75acf32 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -50,7 +50,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "school_id": 1 + "school_id": "SOME MASKED ID" } diff --git a/features/user/set_faculty.go b/features/user/set_faculty.go index a5cbab75..000ccd10 100644 --- a/features/user/set_faculty.go +++ b/features/user/set_faculty.go @@ -45,7 +45,7 @@ func (h *handler) handleSetFaculty(c *gin.Context) { response.New(http.StatusBadRequest).Err("faculty doesn't exist").Send(c) return } - facultyID := uint8(faculty.ID) + facultyID := faculty.ID.Val // update the user's year of study res := tx. diff --git a/features/user/set_school.go b/features/user/set_school.go index 0fd3861e..162eab23 100644 --- a/features/user/set_school.go +++ b/features/user/set_school.go @@ -2,6 +2,7 @@ package user import ( "confesi/db" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -27,11 +28,17 @@ func (h *handler) handleSetSchool(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.SchoolID) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } + // update the user's school res := h.db. Model(&db.User{}). Where("id = ?", token.UID). - Update("school_id", req.SchoolID) + Update("school_id", unmaskedId) if res.Error != nil { var pgErr *pgconn.PgError // Gorm doesn't properly handle some errors: https://github.com/go-gorm/gorm/issues/4037 diff --git a/features/user/set_year_of_study.go b/features/user/set_year_of_study.go index 016e5b5c..101177d6 100644 --- a/features/user/set_year_of_study.go +++ b/features/user/set_year_of_study.go @@ -50,7 +50,7 @@ func (h *handler) handleSetYearOfStudy(c *gin.Context) { response.New(http.StatusBadRequest).Err("invalid year of study").Send(c) return } - yearOfStudyID := uint8(yearOfStudy.ID) + yearOfStudyID := yearOfStudy.ID.Val // update the user's year of study res := tx. diff --git a/features/votes/requests.http b/features/votes/requests.http index 4123ccc8..533bc0ed 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -5,7 +5,7 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ { - "content_id": 17, + "content_id": "SOME MASKED ID", "value": 1, "content_type": "post" } \ No newline at end of file diff --git a/features/votes/vote.go b/features/votes/vote.go index e6105d78..4db83946 100644 --- a/features/votes/vote.go +++ b/features/votes/vote.go @@ -4,6 +4,7 @@ import ( "confesi/config/builders" "confesi/db" "confesi/lib/algorithm" + "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -227,13 +228,19 @@ func (h *handler) handleVote(c *gin.Context) { return } + unmaskedId, err := masking.Unmask(req.ContentID) + if err != nil { + response.New(http.StatusInternalServerError).Err("server error").Send(c) + return + } + var vote db.Vote vote.UserID = token.UID vote.Vote = int(*req.Value) if req.ContentType == "post" { - vote.PostID = &req.ContentID + vote.PostID = &unmaskedId } else if req.ContentType == "comment" { - vote.CommentID = &req.ContentID + vote.CommentID = &unmaskedId } else { // should never happen with validated struct, but to be defensive response.New(http.StatusBadRequest).Err(fmt.Sprintf("invalid content type")).Send(c) diff --git a/lib/validation/models.go b/lib/validation/models.go index 6d52513e..df75fb61 100644 --- a/lib/validation/models.go +++ b/lib/validation/models.go @@ -32,7 +32,7 @@ type CreateDraftDetails struct { type SaveContentDetails struct { // [required] content id to save/unsave - ContentID uint `json:"content_id" validate:"required"` + ContentID string `json:"content_id" validate:"required"` // [required] "post" for post, "comment" for comment ContentType string `json:"content_type" validate:"required,oneof=post comment"` } @@ -48,7 +48,7 @@ type SaveContentCursor struct { type VoteDetail struct { // [required] content id to vote on - ContentID uint `json:"content_id" validate:"required"` + ContentID string `json:"content_id" validate:"required"` // [required] "upvote" for upvote, "downvote" for downvote Value *int8 `json:"value" validate:"oneof=-1 0 1"` // pointer required to "required" a zero-value (aka, vote can be 0) // [required] "post" for post, "comment" for comment @@ -65,7 +65,7 @@ type PostQuery struct { type WatchSchool struct { // [required] school id to watch - SchoolID uint `json:"school_id" validate:"required"` + SchoolID string `json:"school_id" validate:"required"` } type UserStanding struct { @@ -92,7 +92,7 @@ type UpdateFaculty struct { type UpdateSchool struct { // [required] school to update to - SchoolID uint `json:"school_id" validate:"required"` + SchoolID string `json:"school_id" validate:"required"` } type CreateComment struct { @@ -111,12 +111,12 @@ type HideComment struct { type HidePost struct { // [required] the id of post to "delete" - PostID uint `json:"post_id" validate:"required"` + PostID string `json:"post_id" validate:"required"` } type InitialCommentQuery struct { Sort string `json:"sort" validate:"oneof=trending new"` - PostID string `json:"post_id" validate:"required"` + PostID string `json:"post_id" validate:"required"` PurgeCache bool `json:"purge_cache"` // true or false, doesn't have "required" so that the zero-value is OK SessionKey string `json:"session_key" validate:"required"` } @@ -208,7 +208,7 @@ type FcmNotifictionPref struct { type ReportQuery struct { // [required] content id to report - ContentID uint `json:"content_id" validate:"required"` + ContentID string `json:"content_id" validate:"required"` // [required] "post" for post, "comment" for comment ContentType string `json:"content_type" validate:"required,oneof=post comment"` // [required] report description @@ -276,7 +276,7 @@ type EditComment struct { type EditPost struct { // [required] post id - PostID uint `json:"post_id" validate:"required"` + PostID string `json:"post_id" validate:"required"` // [required if Body empty/null] at most 100 characters Title string `json:"title" validate:"max=100,required_without=Body"` // [required if Title empty/null] at most 2000 characters @@ -285,7 +285,7 @@ type EditPost struct { type EditDraft struct { // [required] post id - DraftID uint `json:"draft_id" validate:"required"` + DraftID string `json:"draft_id" validate:"required"` // [required if Body empty/null] at most 100 characters Title string `json:"title" validate:"max=100,required_without=Body"` // [required if Title empty/null] at most 2000 characters @@ -294,5 +294,5 @@ type EditDraft struct { type DeleteDraft struct { // [required] post id - DraftID uint `json:"draft_id" validate:"required"` + DraftID string `json:"draft_id" validate:"required"` } From 2662c02d61e2bdbc65db9dd550efe43827e7e25a Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 07:29:42 -0700 Subject: [PATCH 03/10] fix: created custom json and gorm serializers to fix errors and created tests --- db/models.go | 30 +++++++++++------------- features/admin/requests.http | 30 ++++++++++++------------ features/auth/register.go | 2 +- features/auth/requests.http | 6 ++--- features/comments/requests.http | 16 ++++++------- features/drafts/requests.http | 8 +++---- features/feedback/create.go | 2 +- features/feedback/requests.http | 2 +- features/hide_log/requests.http | 4 ++-- features/notifications/requests.http | 8 +++---- features/posts/requests.http | 20 ++++++++-------- features/reports/requests.http | 6 ++--- features/saves/requests.http | 8 +++---- features/schools/get_ranked.go | 6 ++++- features/schools/requests.http | 24 +++++++++---------- features/schools/watch_school.go | 1 + features/user/requests.http | 16 ++++++------- features/votes/requests.http | 2 +- lib/masking/masking.go | 8 +++---- lib/masking/masking_test.go | 35 +++++++++++++++++++++++----- 20 files changed, 129 insertions(+), 105 deletions(-) diff --git a/db/models.go b/db/models.go index a699d63e..82b3c290 100644 --- a/db/models.go +++ b/db/models.go @@ -17,33 +17,31 @@ type MaskedID struct { Val uint } +func (mu MaskedID) MarshalJSON() ([]byte, error) { + masked, err := masking.Mask(mu.Val) + if err != nil { + return nil, err + } + return json.Marshal(masked) +} + func (mu *MaskedID) Scan(value interface{}) error { if value == nil { return nil } - intValue, ok := value.(uint) + intValue, ok := value.(int64) if !ok { - return fmt.Errorf("unable to scan MaskedID value") + return fmt.Errorf("unable to scan MaskedID value: unexpected type") } - mu.Val = intValue + mu.Val = uint(intValue) return nil } -func (mu MaskedID) MarshalJSON() ([]byte, error) { - strValue, err := masking.Mask(int(mu.Val)) - if err != nil { - return nil, err - } - return json.Marshal(strValue) -} - func (mu MaskedID) Value() (driver.Value, error) { - strValue, err := masking.Mask(int(mu.Val)) - if err != nil { - return nil, err - } + strValue := uint(mu.Val) + return strValue, nil } @@ -53,7 +51,7 @@ type ModLevel struct { } type School struct { - ID MaskedID `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` Name string `json:"name"` Abbr string `json:"abbr"` Lat float32 `json:"lat"` diff --git a/features/admin/requests.http b/features/admin/requests.http index 6b266b7d..7d478de5 100644 --- a/features/admin/requests.http +++ b/features/admin/requests.http @@ -2,7 +2,7 @@ PATCH http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0Ksw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Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "standing": "banned", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7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htPIKh0qKTIWs6Sw { "user_id": "sP1D8MZAQpZspd1O7tufLPBFq9v1" @@ -24,14 +24,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/admin/daily-hottest-cron?day=2023-08-03 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUt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igger clear expired fcm tokens cron job # day format: YYYY-MM-DD for selecting when to run the cron job. POST http://127.0.0.1:8080/api/v1/admin/expire-fcm-tokens?day=2023-06-21 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI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OT GET http://127.0.0.1:8080/api/v1/admin/crons?next=1687422462194 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": 1689156632542916, @@ -51,13 +51,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/feedback/SOMEMASK Content-Type: application/json -Authorization: B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6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Get Feedback List GET http://127.0.0.1:8080/api/v1/admin/feedback Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0d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E2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": 1690284521701105 @@ -67,14 +67,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/report?id=SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZ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R3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### get all reports GET http://127.0.0.1:8080/api/v1/admin/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4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mVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "type": "all", @@ -85,7 +85,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzL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dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "content_type": "post", @@ -99,7 +99,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/reviewed-by-mod Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHN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JwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "content_type": "post", @@ -111,7 +111,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/comments-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLm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tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "purge_cache": true, @@ -124,7 +124,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/posts-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfG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_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "purge_cache": true, @@ -137,7 +137,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-post Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4e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BjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "post_id": "SOME MASK", @@ -149,7 +149,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-comment Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1M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COXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "comment_id": "SOME MASK", diff --git a/features/auth/register.go b/features/auth/register.go index 6e55b769..dd88be66 100644 --- a/features/auth/register.go +++ b/features/auth/register.go @@ -116,7 +116,7 @@ func (h *handler) handleRegister(c *gin.Context) { return } - userToSaveToPostgres.SchoolID = school.ID + userToSaveToPostgres.SchoolID = school.ID.Val userToSaveToPostgres.ID = userIdForPostgres // save user to postgres diff --git a/features/auth/requests.http b/features/auth/requests.http index a70528fb..a56d777f 100644 --- a/features/auth/requests.http +++ b/features/auth/requests.http @@ -15,7 +15,7 @@ Content-Type: application/json PATCH http://127.0.0.1:8080/api/v1/auth/update-email Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0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M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "email": "use0129384r@uvic.ca" @@ -25,13 +25,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3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IFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Send password reset email POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-r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6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "email": "matthew@gmail.com" diff --git a/features/comments/requests.http b/features/comments/requests.http index 1bddf824..aac9e4cb 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -3,7 +3,7 @@ POST http://127.0.0.1:8080/api/v1/comments/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUl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N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "post_id": "SOME MASK", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD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YhtPIKh0qKTIWs6Sw { "comment_id": "SOME MASK" @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/roots Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAk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JhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/replies Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI1Ni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E http://127.0.0.1:8080/api/v1/comments/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Fetch a comment by id GET http://127.0.0.1:8080/api/v1/comments/comment?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1O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xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Fetch your comments GET http://127.0.0.1:8080/api/v1/comments/your-comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZ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xIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": 168899127721647912 @@ -71,7 +71,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE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Y3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "comment_id": "SOME MASKED ID", diff --git a/features/drafts/requests.http b/features/drafts/requests.http index 6e37526c..f5680f0d 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/drafts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa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RoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "title": "next blah this is a title 5", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/drafts/your-drafts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtH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OnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": 123123123123 @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/drafts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFp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ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "draft_id": "SOME MASKED ID", @@ -37,7 +37,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/drafts/delete Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJ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Nzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "draft_id": "SOME MASKED ID" diff --git a/features/feedback/create.go b/features/feedback/create.go index 57328fd0..c274bbbd 100644 --- a/features/feedback/create.go +++ b/features/feedback/create.go @@ -44,7 +44,7 @@ func (h *handler) handleFeedback(c *gin.Context) { feedback := db.Feedback{ UserID: token.UID, Content: req.Message, - TypeID: uint(feedbackType.ID), + TypeID: feedbackType.ID.Val, } err = h.db.Create(&feedback).Error diff --git a/features/feedback/requests.http b/features/feedback/requests.http index f0e46ada..cb392c65 100644 --- a/features/feedback/requests.http +++ b/features/feedback/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/feedback/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIj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WwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "message": "WOAH THIS WAS SUCH AN AMAZING APP I CAN'T BELEIVE YOU DID IT!", diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index 267ceefe..9b6cc097 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -3,7 +3,7 @@ GET http://127.0.0.1:8080/api/v1/hide-log/your-hide-log Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0yc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iwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": 1689647419058834 @@ -14,4 +14,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY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lkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw diff --git a/features/notifications/requests.http b/features/notifications/requests.http index 169499a0..1ec0b540 100644 --- a/features/notifications/requests.http +++ b/features/notifications/requests.http @@ -2,7 +2,7 @@ DELETE http://127.0.0.1:8080/api/v1/notifications/token Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1ha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pZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "token": "eUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -12,7 +12,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/notifications/token-uid Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtH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OnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "token": "pd12dqUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -31,13 +31,13 @@ Content-Type: application/json GET http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIi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nRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Set topic prefs PUT http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZ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IiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "daily_hottest": true, diff --git a/features/posts/requests.http b/features/posts/requests.http index b93263a8..67ff3634 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/posts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dm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D7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "title": "race condition test 8", @@ -14,23 +14,23 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-04&profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQif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3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Fetch a post by id GET http://127.0.0.1:8080/api/v1/posts/post?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh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TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Fetch posts GET http://127.0.0.1:8080/api/v1/posts/posts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58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": "TqGRLQZ-BRO5ieESwaRA7Hf0", + "school_id": "v9qFXtay2yDn9UwlTjyjC54=", "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "all_schools": false @@ -40,19 +40,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/posts/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WK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sMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Sentiment anaylsis for posts by ID GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TD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Q.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": 1688460277629001 @@ -62,7 +62,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMz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9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "post_id": "SOME MASKED ID" @@ -72,7 +72,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1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Jjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "post_id": "SOME MASKED ID", diff --git a/features/reports/requests.http b/features/reports/requests.http index 4a925384..b723dc5d 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/reports/report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2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sInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "content_id": "SOME MASKED ID", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhd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IjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": null @@ -25,6 +25,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/report?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAy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2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw diff --git a/features/saves/requests.http b/features/saves/requests.http index a6e450cb..197fec35 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/saves/save Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgw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ZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "content_id": "SOME MASKED ID", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/saves/unsave Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywi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iOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "content_id": "SOME MASKED ID", @@ -24,7 +24,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/postsain Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxf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25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": null @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm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Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "next": null diff --git a/features/schools/get_ranked.go b/features/schools/get_ranked.go index ae9f660b..dd7d97eb 100644 --- a/features/schools/get_ranked.go +++ b/features/schools/get_ranked.go @@ -118,7 +118,11 @@ func (h *handler) handleGetRankedSchools(c *gin.Context) { var possibleRestriction string if len(ids) > 0 { - idsStr := strings.Join(ids, ", ") // Convert the ids slice to a comma-separated string + cleanedIds := make([]string, len(ids)) + for i, id := range ids { + cleanedIds[i] = strings.Trim(id, "{}") // Remove curly braces + } + idsStr := strings.Join(cleanedIds, ", ") // Convert the cleaned ids slice to a comma-separated string possibleRestriction = "WHERE s.id NOT IN (" + idsStr + ")" fmt.Println(possibleRestriction) } diff --git a/features/schools/requests.http b/features/schools/requests.http index d99f62b1..06c8178a 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -2,39 +2,39 @@ GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&school=uvicasdsad Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcn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U2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&radius=5000 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiI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5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Get a school by query GET http://127.0.0.1:8080/api/v1/schools/search?query=university&lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpD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DCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Watch a school POST http://127.0.0.1:8080/api/v1/schools/watch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVa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RMXMg3MYhtPIKh0qKTIWs6Sw { - "school_id": "SOME MASKED ID" + "school_id": "SfQLOaiYKxo4OOVeYb5paos=" } ### Unwatch a school DELETE http://127.0.0.1:8080/api/v1/schools/unwatch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHo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NmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/watched?lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "include_home_school": true @@ -52,9 +52,9 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT ### Paginate through school ranks -GET http://127.0.0.1:8080/api/v1/schools/rank?lat=48.465900&long=-123.328652 +GET http://127.0.0.1:8080/api/v1/schools/rank? Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1Y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ge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-WKqy1CRcvVqqpv_KVWqF0z5gt0viQf2YJj1yjhanOEe9GwVaASF7MDvD7PssWojbcTeub6q2APOCuyPc6aUtQQjxhE58fU2HcbgoEcdUEnk2oCwErMvO2TDAkgKWshjRLJf-QPMplXout6WFXOK5SuRVHoftrQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Get a random school GET http://127.0.0.1:8080/api/v1/schools/random?without-school=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQ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1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw diff --git a/features/schools/watch_school.go b/features/schools/watch_school.go index 6fa4bc1b..a070c9dd 100644 --- a/features/schools/watch_school.go +++ b/features/schools/watch_school.go @@ -41,6 +41,7 @@ func (h *handler) watchSchool(c *gin.Context, token *auth.Token, req validation. } func (h *handler) handleWatchSchool(c *gin.Context) { + // extract request var req validation.WatchSchool diff --git a/features/user/requests.http b/features/user/requests.http index d75acf32..6ee2e894 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -2,25 +2,25 @@ GET http://127.0.0.1:8080/api/v1/user/user Content-Type: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eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### get user standing GET http://127.0.0.1:8080/api/v1/user/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzc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UiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Clear user faculty DELETE http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQi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kxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Set user faculty PATCH http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZ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nbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "faculty": "ENG" @@ -30,14 +30,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6ey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3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw ### Set user year of study PATCH http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DB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CSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "year_of_study": "One" @@ -47,7 +47,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/user/school Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C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pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "school_id": "SOME MASKED ID" @@ -59,4 +59,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/user/user-stats Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzK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eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw diff --git a/features/votes/requests.http b/features/votes/requests.http index 533bc0ed..499b802a 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -2,7 +2,7 @@ PUT http://127.0.0.1:8080/api/v1/votes/vote Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzAyMDMsInVzZXJfaWQiOiJhbTJxWDBwWDFlYThDNlF5eHcwa0dMZXNvRmcyIiwic3ViIjoiYW0ycVgwcFgxZWE4QzZReXh3MGtHTGVzb0ZnMiIsImlhdCI6MTY5MTY3MDIwMywiZXhwIjoxNjkxNjczODAzLCJlbWFpbCI6Im1vZEB1dmljLmNhIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbIm1vZEB1dmljLmNhIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.PMHOIasufS68xNcfGfHoqc7lXIE5BrYkfhq9GwZLzY7ZqLiEKyx3Vmh1DBG8BcPonGkil32nmpDq4eV-z8UngkhfIQYuaXhy1AEOOY1DFA_KzKKKcWULG3po-rh4G2C8rdBTmk1MTG-ZwarzUs_vCKfMfAjTGMHU__1SL-dPbpG0KswSxUlFTMK-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xJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw { "content_id": "SOME MASKED ID", diff --git a/lib/masking/masking.go b/lib/masking/masking.go index ad462fe3..7cb52ca6 100644 --- a/lib/masking/masking.go +++ b/lib/masking/masking.go @@ -13,7 +13,7 @@ import ( // todo: .ENV var secretKey = []byte("your_16_byte_key") -func Mask(id int) (string, error) { +func Mask(id uint) (string, error) { block, err := aes.NewCipher(secretKey) if err != nil { return "", err @@ -48,11 +48,9 @@ func Unmask(ciphertext string) (uint, error) { plaintext := make([]byte, len(decodedCiphertext)-aes.BlockSize) ctr.XORKeyStream(plaintext, decodedCiphertext[aes.BlockSize:]) - decryptedStr := string(plaintext) - decryptedUint, err := strconv.Atoi(decryptedStr) + decryptedID, err := strconv.Atoi(string(plaintext)) if err != nil { return 0, err } - - return uint(decryptedUint), nil + return uint(decryptedID), nil } diff --git a/lib/masking/masking_test.go b/lib/masking/masking_test.go index ee68f75c..eee72a01 100644 --- a/lib/masking/masking_test.go +++ b/lib/masking/masking_test.go @@ -7,14 +7,37 @@ import ( "github.com/stretchr/testify/assert" ) +func TestUniqueMasksMapToSameID(t *testing.T) { + // Test case: Masking the same ID twice should result in different encrypted values + id := uint(5) + + maskedID1, err := Mask(id) + assert.NoError(t, err, "Masking error") + + maskedID2, err := Mask(id) + assert.NoError(t, err, "Masking error") + + assert.NotEqual(t, maskedID1, maskedID2, "Masked IDs should not be equal") + + // Test case: Unmasking the encrypted IDs should yield the same original ID + decryptedID1, err := Unmask(maskedID1) + assert.NoError(t, err, "Unmasking error") + + decryptedID2, err := Unmask(maskedID2) + assert.NoError(t, err, "Unmasking error") + + assert.Equal(t, id, decryptedID1, "Original and decrypted IDs do not match") + assert.Equal(t, id, decryptedID2, "Original and decrypted IDs do not match") +} + func TestEncryptionAndDecryption(t *testing.T) { tests := []struct { - id int + id uint }{ - {0}, // test case 1 - {12345}, // test case 2 - {987654}, // test case 3 - {-42}, // test case 4 + {0}, // sub-test case 1 + {12345212121224583}, // sub-test case 2 + {987654}, // sub-test case 3 + {42}, // sub-test case 4 } for _, test := range tests { @@ -45,5 +68,5 @@ func TestEncryptionAndDecryptionSimple(t *testing.T) { t.Error("Decryption error:", err) } - assert.Equal(t, 123, decrypted) + assert.Equal(t, uint(123), decrypted) } From fce18f9d5b4dce5c6c255ebf3cbef98fdccdd81e Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 07:39:58 -0700 Subject: [PATCH 04/10] feat: upgrades masking to use env --- README.md | 4 ++++ docker-compose.yml | 1 + env-example | 3 +++ features/schools/get_ranked.go | 4 ++-- lib/masking/masking.go | 13 +++++++++++-- lib/masking/masking_test.go | 2 ++ 6 files changed, 23 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 80fff7c8..271ce943 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,10 @@ cat env-example > .env Open the `.env` file and follow the [link](https://generate-random.org/api-token-generator) to create the `APPCHECK_TOKEN` env variable. +**Ensure you have the correct 16-byte `MASK_SECRET` in the `.env` file.** + +An example is provided in the `env-example`, but obviously generate your own for prod. + **Add your AWS data to the `.env` file.** Specifically what IAM roles are needed will be determined in the future. Currently, a general admin user suffices. diff --git a/docker-compose.yml b/docker-compose.yml index 97e7f639..97c9ecc0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,6 +36,7 @@ services: AWS_ACCESS_KEY_ID: AWS_SECRET_ACCESS_KEY: AWS_REGION: + MASK_SECRET: redis: image: redis:alpine diff --git a/env-example b/env-example index ea20e028..0a94a424 100644 --- a/env-example +++ b/env-example @@ -10,6 +10,9 @@ APPCHECK_TOKEN="kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H # either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256 HKDF_SECRET="some-secret-string" +# a 16-byte key +MASK_SECRET="your_16_byte_key" + # to generate a new nonce for production: # go run ./scripts/main.go --new-nonce CIPHER_NONCE="47363bcf91a1545668f0fd7a" diff --git a/features/schools/get_ranked.go b/features/schools/get_ranked.go index dd7d97eb..50bb7fc1 100644 --- a/features/schools/get_ranked.go +++ b/features/schools/get_ranked.go @@ -120,9 +120,9 @@ func (h *handler) handleGetRankedSchools(c *gin.Context) { if len(ids) > 0 { cleanedIds := make([]string, len(ids)) for i, id := range ids { - cleanedIds[i] = strings.Trim(id, "{}") // Remove curly braces + cleanedIds[i] = strings.Trim(id, "{}") // remove curly braces } - idsStr := strings.Join(cleanedIds, ", ") // Convert the cleaned ids slice to a comma-separated string + idsStr := strings.Join(cleanedIds, ", ") // convert the cleaned ids slice to a comma-separated string possibleRestriction = "WHERE s.id NOT IN (" + idsStr + ")" fmt.Println(possibleRestriction) } diff --git a/lib/masking/masking.go b/lib/masking/masking.go index 7cb52ca6..621096f4 100644 --- a/lib/masking/masking.go +++ b/lib/masking/masking.go @@ -7,11 +7,20 @@ import ( "encoding/base64" "fmt" "io" + "os" "strconv" ) -// todo: .ENV -var secretKey = []byte("your_16_byte_key") +var secretKey []byte + +func init() { + // load from .env + m := os.Getenv("MASK_SECRET") + if m == "" { + panic("MASK_SECRET env not found") + } + secretKey = []byte(m) +} func Mask(id uint) (string, error) { block, err := aes.NewCipher(secretKey) diff --git a/lib/masking/masking_test.go b/lib/masking/masking_test.go index eee72a01..2670e4a4 100644 --- a/lib/masking/masking_test.go +++ b/lib/masking/masking_test.go @@ -7,6 +7,8 @@ import ( "github.com/stretchr/testify/assert" ) +// Tests require `MASK_SECRET` env var to be set to pass + func TestUniqueMasksMapToSameID(t *testing.T) { // Test case: Masking the same ID twice should result in different encrypted values id := uint(5) From b4f2003d9d7cc522fe06abe6b10361a30ba83e78 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 19:26:11 -0700 Subject: [PATCH 05/10] feat: hashes --- db/models.go | 81 +++++++++++++------ features/admin/feedback_by_id.go | 4 +- .../admin/fetch_reports_for_comment_by_id.go | 4 +- .../admin/fetch_reports_for_post_by_id.go | 4 +- features/admin/get_report_by_id.go | 4 +- features/admin/hide.go | 4 +- features/admin/requests.http | 30 +++---- features/admin/review_content_by_mod.go | 4 +- features/auth/requests.http | 6 +- features/comments/create.go | 8 +- features/comments/edit.go | 4 +- features/comments/get_comment_by_id.go | 4 +- features/comments/hide.go | 4 +- features/comments/load_initial_comments.go | 6 +- features/comments/load_reply_comments.go | 4 +- features/comments/requests.http | 18 ++--- features/drafts/delete_draft.go | 4 +- features/drafts/edit.go | 4 +- features/drafts/requests.http | 8 +- features/feedback/requests.http | 2 +- features/hide_log/get_hide_log_by_id.go | 4 +- features/hide_log/requests.http | 4 +- features/notifications/requests.http | 8 +- features/posts/edit.go | 4 +- features/posts/get_post_by_id.go | 4 +- features/posts/get_posts.go | 29 ++++--- features/posts/hide.go | 4 +- features/posts/requests.http | 22 ++--- features/posts/sentiment_analysis.go | 4 +- features/reports/create.go | 4 +- features/reports/get_report_by_id.go | 4 +- features/reports/requests.http | 6 +- features/saves/requests.http | 8 +- features/saves/save.go | 4 +- features/saves/unsave.go | 4 +- features/schools/get_random_school.go | 4 +- features/schools/requests.http | 20 ++--- features/schools/unwatch_school.go | 4 +- features/schools/watch_school.go | 4 +- features/user/requests.http | 16 ++-- features/user/router.go | 7 -- features/user/set_school.go | 4 +- features/votes/requests.http | 2 +- features/votes/vote.go | 4 +- lib/cipher/aes.go | 53 ------------ lib/cipher/cipher.go | 40 --------- lib/cipher/cipher_test.go | 79 ------------------ lib/cipher/kdf.go | 39 --------- .../masking.go => encryption/encryption.go} | 16 +++- .../encryption_test.go} | 11 ++- migrations/000052_school_time_stamps.down.sql | 8 ++ migrations/000052_school_time_stamps.up.sql | 8 ++ 52 files changed, 252 insertions(+), 387 deletions(-) delete mode 100644 lib/cipher/aes.go delete mode 100644 lib/cipher/cipher.go delete mode 100644 lib/cipher/cipher_test.go delete mode 100644 lib/cipher/kdf.go rename lib/{masking/masking.go => encryption/encryption.go} (78%) rename lib/{masking/masking_test.go => encryption/encryption_test.go} (87%) create mode 100644 migrations/000052_school_time_stamps.down.sql create mode 100644 migrations/000052_school_time_stamps.up.sql diff --git a/db/models.go b/db/models.go index 82b3c290..e7e8462b 100644 --- a/db/models.go +++ b/db/models.go @@ -1,7 +1,7 @@ package db import ( - "confesi/lib/masking" + "confesi/lib/encryption" "database/sql/driver" "encoding/json" "fmt" @@ -18,7 +18,7 @@ type MaskedID struct { } func (mu MaskedID) MarshalJSON() ([]byte, error) { - masked, err := masking.Mask(mu.Val) + masked, err := encryption.Mask(mu.Val) if err != nil { return nil, err } @@ -51,15 +51,28 @@ type ModLevel struct { } type School struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - Name string `json:"name"` - Abbr string `json:"abbr"` - Lat float32 `json:"lat"` - Lon float32 `json:"lon"` - DailyHottests int `json:"daily_hottests"` - Domain string `json:"domain"` - ImgUrl string `json:"img_url"` - Website string `json:"website"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + Name string `json:"name"` + Abbr string `json:"abbr"` + Lat float32 `json:"lat"` + Lon float32 `json:"lon"` + DailyHottests int `json:"daily_hottests"` + Domain string `json:"domain"` + ImgUrl string `json:"img_url"` + Website string `json:"website"` +} + +func (s School) MarshalJSON() ([]byte, error) { + type Alias School + return json.Marshal(&struct { + Hash string `json:"hash"` + *Alias + }{ + Hash: encryption.Hash(s.ID.Val), + Alias: (*Alias)(&s), + }) } type Faculty struct { @@ -144,6 +157,17 @@ type SchoolFollow struct { SchoolID uint `gorm:"column:school_id" json:"-"` } +func (p Post) MarshalJSON() ([]byte, error) { + type Alias Post + return json.Marshal(&struct { + Hash string `json:"hash"` + *Alias + }{ + Hash: encryption.Hash(p.ID.Val), + Alias: (*Alias)(&p), + }) +} + // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Post struct { ID MaskedID `gorm:"primary_key;column:id" json:"id"` @@ -194,6 +218,17 @@ func (c *Comment) CensorComment() Comment { return *c } +func (c Comment) MarshalJSON() ([]byte, error) { + type Alias Comment + return json.Marshal(&struct { + Hash string `json:"hash"` + *Alias + }{ + Hash: encryption.Hash(c.ID.Val), + Alias: (*Alias)(&c), + }) +} + // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Comment struct { ID MaskedID `gorm:"primary_key;column:id" json:"id"` @@ -204,7 +239,7 @@ type Comment struct { NumericalReplyingUser *uint `gorm:"column:numerical_replying_user" json:"numerical_replying_user"` // this is a pointer because it can be null NumericalUserIsOp *bool `gorm:"column:numerical_user_is_op" json:"numerical_user_is_op"` // this is a pointer because it can be null NumericalReplyingUserIsOp *bool `gorm:"column:numerical_replying_user_is_op" json:"numerical_replying_user_is_op"` // this is a pointer because it can be null - ParentRoot *uint `gorm:"column:parent_root" json:"parent_root"` + ParentRoot *MaskedID `gorm:"column:parent_root" json:"parent_root"` ChildrenCount uint `gorm:"column:children_count" json:"children_count"` UserID string `gorm:"column:user_id" json:"-"` Content string `gorm:"column:content" json:"content"` @@ -290,11 +325,11 @@ const ( // ! Important not to serialize some fields!! type Vote struct { - ID MaskedID - Vote int `db:"vote" json:"vote"` - UserID string `db:"user_id" json:"-"` - PostID *uint `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint - CommentID *uint `db:"comment_id" gorm:"default:NULL" json:"comment_id"` // is that exactly one of them is a valid FK + ID MaskedID `gorm:"primary_key;column:id" json:"id"` + Vote int `db:"vote" json:"vote"` + UserID string `db:"user_id" json:"-"` + PostID *uint `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint + CommentID *uint `db:"comment_id" gorm:"default:NULL" json:"comment_id"` // is that exactly one of them is a valid FK } // ! Important not to serialize some fields!! @@ -326,7 +361,7 @@ type Feedback struct { } type ReportType struct { - ID MaskedID `gorm:"primary_key;column:id" json:"-"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` Type string `gorm:"column:type" json:"type"` } @@ -335,12 +370,12 @@ func (ReportType) TableName() string { } type FeedbackType struct { - ID MaskedID `gorm:"primary_key;column:id" json:"-"` + ID MaskedID `gorm:"primary_key;column:id" json:"id"` Type string `gorm:"column:type" json:"type"` } type YearOfStudy struct { - ID MaskedID `gorm:"primaryKey" json:"-"` + ID MaskedID `gorm:"primaryKey;column:id" json:"id"` Name null.String `gorm:"column:name" json:"type"` } @@ -353,7 +388,7 @@ func (FeedbackType) TableName() string { } type HideLog struct { - ID MaskedID `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` PostID *uint `db:"post_id" gorm:"default:NULL" json:"-"` @@ -371,7 +406,7 @@ func (HideLog) TableName() string { // ! Important not to serialize some fields!! type Report struct { - ID MaskedID `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` ReportedBy string `gorm:"column:reported_by" json:"-"` @@ -387,7 +422,7 @@ type Report struct { } type CronJob struct { - ID MaskedID `gorm:"primaryKey" json:"id"` + ID MaskedID `gorm:"primaryKey;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` Ran datatypes.Date `gorm:"column:ran" json:"ran"` Type string `gorm:"column:type" json:"type"` diff --git a/features/admin/feedback_by_id.go b/features/admin/feedback_by_id.go index d35e110c..0554390c 100644 --- a/features/admin/feedback_by_id.go +++ b/features/admin/feedback_by_id.go @@ -2,7 +2,7 @@ package admin import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "errors" "net/http" @@ -14,7 +14,7 @@ import ( func (h *handler) handleFeedbackID(c *gin.Context) { feedbackID := c.Param("feedbackID") - unmaskedFeedbackId, err := masking.Unmask(feedbackID) + unmaskedFeedbackId, err := encryption.Unmask(feedbackID) if err != nil { response.New(http.StatusBadRequest).Err("invalid feedback id").Send(c) return diff --git a/features/admin/fetch_reports_for_comment_by_id.go b/features/admin/fetch_reports_for_comment_by_id.go index 457720bb..e49ae39e 100644 --- a/features/admin/fetch_reports_for_comment_by_id.go +++ b/features/admin/fetch_reports_for_comment_by_id.go @@ -2,7 +2,7 @@ package admin import ( "confesi/config" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -19,7 +19,7 @@ func (h *handler) handleFetchReportForCommentById(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.CommentID) + unmaskedId, err := encryption.Unmask(req.CommentID) if err != nil { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) return diff --git a/features/admin/fetch_reports_for_post_by_id.go b/features/admin/fetch_reports_for_post_by_id.go index f2d0598e..3ad598ae 100644 --- a/features/admin/fetch_reports_for_post_by_id.go +++ b/features/admin/fetch_reports_for_post_by_id.go @@ -2,7 +2,7 @@ package admin import ( "confesi/config" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -19,7 +19,7 @@ func (h *handler) handleFetchReportForPostById(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.PostID) + unmaskedId, err := encryption.Unmask(req.PostID) if err != nil { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) return diff --git a/features/admin/get_report_by_id.go b/features/admin/get_report_by_id.go index 56119447..70733264 100644 --- a/features/admin/get_report_by_id.go +++ b/features/admin/get_report_by_id.go @@ -2,7 +2,7 @@ package admin import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "errors" @@ -16,7 +16,7 @@ func (h *handler) handleGetReportById(c *gin.Context) { // get id from query param id id := c.Query("id") - unmaskedId, err := masking.Unmask(id) + unmaskedId, err := encryption.Unmask(id) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/admin/hide.go b/features/admin/hide.go index 7cde0223..9ce73056 100644 --- a/features/admin/hide.go +++ b/features/admin/hide.go @@ -3,8 +3,8 @@ package admin import ( "confesi/config/builders" "confesi/db" + "confesi/lib/encryption" "confesi/lib/logger" - "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -35,7 +35,7 @@ func (h *handler) handleHideContent(c *gin.Context) { return } - unmaskedContentId, err := masking.Unmask(req.ContentID) + unmaskedContentId, err := encryption.Unmask(req.ContentID) if err != nil { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) return diff --git a/features/admin/requests.http b/features/admin/requests.http index 7d478de5..1c7f5061 100644 --- a/features/admin/requests.http +++ b/features/admin/requests.http @@ -2,7 +2,7 @@ PATCH http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgw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WUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "standing": "banned", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlb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iZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "user_id": "sP1D8MZAQpZspd1O7tufLPBFq9v1" @@ -24,14 +24,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/admin/daily-hottest-cron?day=2023-08-03 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmw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MiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Manually trigger clear expired fcm tokens cron job # day format: YYYY-MM-DD for selecting when to run the cron job. POST http://127.0.0.1:8080/api/v1/admin/expire-fcm-tokens?day=2023-06-21 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7Im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JvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### List the successfully ran cron jobs, by type @@ -40,7 +40,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/crons?next=1687422462194 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1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yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": 1689156632542916, @@ -51,13 +51,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/feedback/SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVud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pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Get Feedback List GET http://127.0.0.1:8080/api/v1/admin/feedback Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsf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ZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": 1690284521701105 @@ -67,14 +67,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/report?id=SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlB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nklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### get all reports GET http://127.0.0.1:8080/api/v1/admin/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD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IFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "type": "all", @@ -85,7 +85,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYw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Q { "content_type": "post", @@ -99,7 +99,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/reviewed-by-mod Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNY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authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/comments-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7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OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-post Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "post_id": "SOME MASK", @@ -149,7 +149,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-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ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "comment_id": "SOME MASK", diff --git a/features/admin/review_content_by_mod.go b/features/admin/review_content_by_mod.go index c0ace102..5a64a94a 100644 --- a/features/admin/review_content_by_mod.go +++ b/features/admin/review_content_by_mod.go @@ -1,7 +1,7 @@ package admin import ( - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -18,7 +18,7 @@ func (h *handler) handleReviewContentByMod(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.ContentID) + unmaskedId, err := encryption.Unmask(req.ContentID) if err != nil { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) return diff --git a/features/auth/requests.http b/features/auth/requests.http index a56d777f..8161c084 100644 --- a/features/auth/requests.http +++ b/features/auth/requests.http @@ -15,7 +15,7 @@ Content-Type: application/json PATCH http://127.0.0.1:8080/api/v1/auth/update-email Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5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D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "email": "use0129384r@uvic.ca" @@ -25,13 +25,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1j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EGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Send password reset email POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFh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QqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "email": "matthew@gmail.com" diff --git a/features/comments/create.go b/features/comments/create.go index 0d5fb0f4..baaaccf5 100644 --- a/features/comments/create.go +++ b/features/comments/create.go @@ -3,8 +3,8 @@ package comments import ( "confesi/config/builders" "confesi/db" + "confesi/lib/encryption" fcm "confesi/lib/firebase_cloud_messaging" - "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -72,7 +72,7 @@ func (h *handler) handleCreate(c *gin.Context) { // start a transaction tx := h.db.Begin() - unmaskedPostId, err := masking.Unmask(req.PostID) + unmaskedPostId, err := encryption.Unmask(req.PostID) if err != nil { response.New(http.StatusBadRequest).Err(invalidInput.Error()).Send(c) return @@ -80,7 +80,7 @@ func (h *handler) handleCreate(c *gin.Context) { var unmaskedCommentId uint if req.ParentCommentID != nil { - unmaskedCommentId, err = masking.Unmask(*req.ParentCommentID) + unmaskedCommentId, err = encryption.Unmask(*req.ParentCommentID) if err != nil { response.New(http.StatusBadRequest).Err(invalidInput.Error()).Send(c) return @@ -147,7 +147,7 @@ func (h *handler) handleCreate(c *gin.Context) { return } if parentComment.ParentRoot == nil { - comment.ParentRoot = &parentComment.ID.Val + comment.ParentRoot = &parentComment.ID } else { comment.ParentRoot = parentComment.ParentRoot } diff --git a/features/comments/edit.go b/features/comments/edit.go index e5cd4aa1..6d396a1e 100644 --- a/features/comments/edit.go +++ b/features/comments/edit.go @@ -2,7 +2,7 @@ package comments import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -26,7 +26,7 @@ func (h *handler) handleEditComment(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.CommentID) + unmaskedId, err := encryption.Unmask(req.CommentID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/comments/get_comment_by_id.go b/features/comments/get_comment_by_id.go index 88d0fdb0..b428315e 100644 --- a/features/comments/get_comment_by_id.go +++ b/features/comments/get_comment_by_id.go @@ -1,7 +1,7 @@ package comments import ( - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "errors" @@ -14,7 +14,7 @@ import ( func (h *handler) handleGetCommentById(c *gin.Context) { commentID := c.Query("id") - unmaskedId, err := masking.Unmask(commentID) + unmaskedId, err := encryption.Unmask(commentID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/comments/hide.go b/features/comments/hide.go index 5f8b86f1..d44552ad 100644 --- a/features/comments/hide.go +++ b/features/comments/hide.go @@ -2,7 +2,7 @@ package comments import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -27,7 +27,7 @@ func (h *handler) handleHideComment(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.CommentID) + unmaskedId, err := encryption.Unmask(req.CommentID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/comments/load_initial_comments.go b/features/comments/load_initial_comments.go index 4c153f58..f2b62ad0 100644 --- a/features/comments/load_initial_comments.go +++ b/features/comments/load_initial_comments.go @@ -2,8 +2,8 @@ package comments import ( "confesi/config" + "confesi/lib/encryption" "confesi/lib/logger" - "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -115,7 +115,7 @@ func fetchComments(postID uint, gm *gorm.DB, excludedIDs []string, sort string, if comment.Comment.ParentRoot != nil { // aka, it's a reply parentID := comment.Comment.ParentRoot - parentMap[int(*parentID)] = append(parentMap[int(*parentID)], *comment) + parentMap[int(parentID.Val)] = append(parentMap[int(parentID.Val)], *comment) } else { id := fmt.Sprint(comment.Comment.ID) err := h.redis.SAdd(c, commentSpecificKey, id).Err() @@ -171,7 +171,7 @@ func (h *handler) handleGetComments(c *gin.Context) { return } - unmaskedPostID, err := masking.Unmask(req.PostID) + unmaskedPostID, err := encryption.Unmask(req.PostID) if err != nil { response.New(http.StatusBadRequest).Err(utils.UuidError.Error()).Send(c) return diff --git a/features/comments/load_reply_comments.go b/features/comments/load_reply_comments.go index c14998f3..b32340f9 100644 --- a/features/comments/load_reply_comments.go +++ b/features/comments/load_reply_comments.go @@ -2,7 +2,7 @@ package comments import ( "confesi/config" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -30,7 +30,7 @@ func (h *handler) handleGetReplies(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.ParentRoot) + unmaskedId, err := encryption.Unmask(req.ParentRoot) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/comments/requests.http b/features/comments/requests.http index aac9e4cb..b9ddc8e0 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -3,7 +3,7 @@ POST http://127.0.0.1:8080/api/v1/comments/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7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cHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "post_id": "SOME MASK", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsib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.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "comment_id": "SOME MASK" @@ -25,10 +25,10 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/roots Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20i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Ci29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { - "post_id": "SOME MASK", + "post_id": "Cm1s4tq_LJhc9Kgbbx3DfbAY", "sort": "new", "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8" @@ -38,7 +38,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/replies Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50a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ZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "parent_root": "SOME MASK", @@ -49,19 +49,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/comments/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7Imlk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dmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Fetch a comment by id GET http://127.0.0.1:8080/api/v1/comments/comment?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3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m3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Fetch your comments GET http://127.0.0.1:8080/api/v1/comments/your-comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzj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VBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": 168899127721647912 @@ -71,7 +71,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7c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INMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "comment_id": "SOME MASKED ID", diff --git a/features/drafts/delete_draft.go b/features/drafts/delete_draft.go index 7e6bd662..8934f842 100644 --- a/features/drafts/delete_draft.go +++ b/features/drafts/delete_draft.go @@ -2,7 +2,7 @@ package drafts import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -26,7 +26,7 @@ func (h *handler) handleDeleteDraft(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.DraftID) + unmaskedId, err := encryption.Unmask(req.DraftID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/drafts/edit.go b/features/drafts/edit.go index fac67f54..d730a64f 100644 --- a/features/drafts/edit.go +++ b/features/drafts/edit.go @@ -2,7 +2,7 @@ package drafts import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -26,7 +26,7 @@ func (h *handler) handleEditDraft(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.DraftID) + unmaskedId, err := encryption.Unmask(req.DraftID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/drafts/requests.http b/features/drafts/requests.http index f5680f0d..5fc78b6d 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/drafts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb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2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "title": "next blah this is a title 5", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/drafts/your-drafts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYi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WQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": 123123123123 @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/drafts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXY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bXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "draft_id": "SOME MASKED ID", @@ -37,7 +37,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/drafts/delete Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2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ktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "draft_id": "SOME MASKED ID" diff --git a/features/feedback/requests.http b/features/feedback/requests.http index cb392c65..b950bef9 100644 --- a/features/feedback/requests.http +++ b/features/feedback/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/feedback/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJ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1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "message": "WOAH THIS WAS SUCH AN AMAZING APP I CAN'T BELEIVE YOU DID IT!", diff --git a/features/hide_log/get_hide_log_by_id.go b/features/hide_log/get_hide_log_by_id.go index 0f901028..9bccdb04 100644 --- a/features/hide_log/get_hide_log_by_id.go +++ b/features/hide_log/get_hide_log_by_id.go @@ -2,7 +2,7 @@ package hideLog import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "errors" @@ -24,7 +24,7 @@ func (h *handler) handleGetHideLogById(c *gin.Context) { // get id from query param id id := c.Query("id") - unmaskedId, err := masking.Unmask(id) + unmaskedId, err := encryption.Unmask(id) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index 9b6cc097..71591060 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -3,7 +3,7 @@ GET http://127.0.0.1:8080/api/v1/hide-log/your-hide-log Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1N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hide-log/hide-log?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ diff --git a/features/notifications/requests.http b/features/notifications/requests.http index 1ec0b540..15a0f430 100644 --- a/features/notifications/requests.http +++ b/features/notifications/requests.http @@ -2,7 +2,7 @@ DELETE http://127.0.0.1:8080/api/v1/notifications/token Content-Type: application/json -Authorization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12,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/notifications/token-uid Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJV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07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -31,13 +31,13 @@ Content-Type: application/json GET http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7r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0x59Wgu4AQ ### Set topic prefs PUT http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "daily_hottest": true, diff --git a/features/posts/edit.go b/features/posts/edit.go index 8a2fd680..e02ee1f2 100644 --- a/features/posts/edit.go +++ b/features/posts/edit.go @@ -2,7 +2,7 @@ package posts import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -26,7 +26,7 @@ func (h *handler) handleEditPost(c *gin.Context) { return } - unmaskedID, err := masking.Unmask(req.PostID) + unmaskedID, err := encryption.Unmask(req.PostID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/posts/get_post_by_id.go b/features/posts/get_post_by_id.go index da13a999..0b914ff7 100644 --- a/features/posts/get_post_by_id.go +++ b/features/posts/get_post_by_id.go @@ -2,7 +2,7 @@ package posts import ( tags "confesi/lib/emojis" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "errors" @@ -17,7 +17,7 @@ func (h *handler) handleGetPostById(c *gin.Context) { postID := c.Query("id") // cast as MaskedInt type else throw 400 - maskedId, err := masking.Unmask(postID) + maskedId, err := encryption.Unmask(postID) if err != nil { fmt.Println(err) response.New(http.StatusBadRequest).Err("invalid post id").Send(c) diff --git a/features/posts/get_posts.go b/features/posts/get_posts.go index e12ca61b..991c212a 100644 --- a/features/posts/get_posts.go +++ b/features/posts/get_posts.go @@ -3,12 +3,13 @@ package posts import ( "confesi/config" tags "confesi/lib/emojis" + "confesi/lib/encryption" "confesi/lib/logger" - "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" "errors" + "strings" "fmt" "net/http" @@ -43,10 +44,13 @@ func (h *handler) handleGetPosts(c *gin.Context) { return } - unmaskedSchoolId, err := masking.Unmask(req.SchoolId) - if err != nil { - response.New(http.StatusBadRequest).Err("invalid school id").Send(c) - return + var unmaskedSchoolId uint + if req.SchoolId != "" && !req.AllSchools { + unmaskedSchoolId, err = encryption.Unmask(req.SchoolId) + if err != nil { + response.New(http.StatusBadRequest).Err("invalid school id").Send(c) + return + } } // session key that can only be created by *this* user, so it can't be guessed to manipulate others' feeds @@ -91,6 +95,16 @@ func (h *handler) handleGetPosts(c *gin.Context) { return } + var possibleExclusion string + if len(ids) > 0 { + cleanedIds := make([]string, len(ids)) + for i, id := range ids { + cleanedIds[i] = strings.Trim(id, "{}") // remove curly braces + } + idsStr := strings.Join(cleanedIds, ", ") // convert the cleaned ids slice to a comma-separated string + possibleExclusion = "posts.id NOT IN ( " + idsStr + " )" + } + // select all posts that are not in the retrieved post IDs var posts []PostDetail query := h.db. @@ -112,12 +126,9 @@ func (h *handler) handleGetPosts(c *gin.Context) { Preload("YearOfStudy"). Preload("Faculty"). Order(sortField). + Where(possibleExclusion). Where("hidden = ?", false) - if len(ids) > 0 { - query = query.Where("posts.id NOT IN (?)", ids) - } - // if `all_schools` is true, then we don't need to filter by school if !req.AllSchools { query = query.Where("school_id = ?", unmaskedSchoolId) diff --git a/features/posts/hide.go b/features/posts/hide.go index be5fea5b..7cd8c9eb 100644 --- a/features/posts/hide.go +++ b/features/posts/hide.go @@ -2,7 +2,7 @@ package posts import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -26,7 +26,7 @@ func (h *handler) handleHidePost(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.PostID) + unmaskedId, err := encryption.Unmask(req.PostID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/posts/requests.http b/features/posts/requests.http index 67ff3634..f7950a42 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/posts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZl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1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "title": "race condition test 8", @@ -14,45 +14,45 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-04&profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3R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3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Fetch a post by id GET http://127.0.0.1:8080/api/v1/posts/post?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaW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pbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Fetch posts GET http://127.0.0.1:8080/api/v1/posts/posts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiw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Ghldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "sort": "new", - "school_id": "v9qFXtay2yDn9UwlTjyjC54=", + "school_id": null, "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", - "all_schools": false + "all_schools": true } ### Purge posts cache DELETE http://127.0.0.1:8080/api/v1/posts/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmw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MiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Sentiment anaylsis for posts by ID GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOns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Nzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Fetch your posts GET http://127.0.0.1:8080/api/v1/posts/your-posts Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP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FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": 1688460277629001 @@ -62,7 +62,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHq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xH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "post_id": "SOME MASKED ID" @@ -72,7 +72,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M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h13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "post_id": "SOME MASKED ID", diff --git a/features/posts/sentiment_analysis.go b/features/posts/sentiment_analysis.go index 3ad3fa64..b2dedbb2 100644 --- a/features/posts/sentiment_analysis.go +++ b/features/posts/sentiment_analysis.go @@ -2,7 +2,7 @@ package posts import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "errors" "net/http" @@ -21,7 +21,7 @@ type sentimentAnalysis struct { func (h *handler) sentimentAnaylsis(c *gin.Context) { postID := c.Query("id") - unmaskedPostId, err := masking.Unmask(postID) + unmaskedPostId, err := encryption.Unmask(postID) if err != nil { response.New(http.StatusBadRequest).Err("invalid post id").Send(c) return diff --git a/features/reports/create.go b/features/reports/create.go index aec2fe64..a7d9103d 100644 --- a/features/reports/create.go +++ b/features/reports/create.go @@ -2,7 +2,7 @@ package reports import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -30,7 +30,7 @@ func (h *handler) handleCreateReport(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.ContentID) + unmaskedId, err := encryption.Unmask(req.ContentID) if err != nil { response.New(http.StatusBadRequest).Err(invalidContentId.Error()).Send(c) return diff --git a/features/reports/get_report_by_id.go b/features/reports/get_report_by_id.go index 82b1b9da..e1dc3577 100644 --- a/features/reports/get_report_by_id.go +++ b/features/reports/get_report_by_id.go @@ -2,7 +2,7 @@ package reports import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "errors" @@ -22,7 +22,7 @@ func (h *handler) handleGetReportById(c *gin.Context) { // get id from query param id id := c.Query("id") - unmaskedId, err := masking.Unmask(id) + unmaskedId, err := encryption.Unmask(id) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/reports/requests.http b/features/reports/requests.http index b723dc5d..b562b43c 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/reports/report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-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KG3jJ0x59Wgu4AQ { "content_id": "SOME MASKED ID", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy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 +25,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/report?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ diff --git a/features/saves/requests.http b/features/saves/requests.http index 197fec35..48d4f089 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/saves/save Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "content_id": "SOME MASKED ID", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/saves/unsave Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUz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8080/api/v1/saves/postsain Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xOMFhT1NC6mgk0DqQHn38naYokcIT8eg3uk1KoGC6TD-2pKG86l1zkNCOXA1HmwZn-FnF7rsaaCMzoNYwqkirl8bMYcG8Wy8N7IvXxJsMdETNYOwW9SVU9l_c6S7F3KTE97ImJQJVicC_ZO7IuxfVRMXMg3MYhtPIKh0qKTIWs6Sw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": null @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/comments Content-Type: application/json -Authorization: Bearer eyJhbGciO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QiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "next": null diff --git a/features/saves/save.go b/features/saves/save.go index a2bd4d7a..69417107 100644 --- a/features/saves/save.go +++ b/features/saves/save.go @@ -2,8 +2,8 @@ package saves import ( "confesi/db" + "confesi/lib/encryption" "confesi/lib/logger" - "confesi/lib/masking" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -64,7 +64,7 @@ func (h *handler) handleSave(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.ContentID) + unmaskedId, err := encryption.Unmask(req.ContentID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/saves/unsave.go b/features/saves/unsave.go index ead44679..d66d0a6d 100644 --- a/features/saves/unsave.go +++ b/features/saves/unsave.go @@ -2,7 +2,7 @@ package saves import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -49,7 +49,7 @@ func (h *handler) handleUnsave(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.ContentID) + unmaskedId, err := encryption.Unmask(req.ContentID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/schools/get_random_school.go b/features/schools/get_random_school.go index 59f92009..d2abcbf1 100644 --- a/features/schools/get_random_school.go +++ b/features/schools/get_random_school.go @@ -2,7 +2,7 @@ package schools import ( "confesi/config" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "net/http" @@ -14,7 +14,7 @@ func (h *handler) handleGetRandomSchool(c *gin.Context) { schoolDetail := SchoolDetail{} withoutSchoolId := c.Query("without-school") - unmaskedId, err := masking.Unmask(withoutSchoolId) + unmaskedId, err := encryption.Unmask(withoutSchoolId) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/schools/requests.http b/features/schools/requests.http index 06c8178a..160680df 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -2,29 +2,29 @@ GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&school=uvicasdsad Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi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pLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&radius=5000 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE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ESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3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iZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Get a school by query GET http://127.0.0.1:8080/api/v1/schools/search?query=university&lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWU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iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Watch a school POST http://127.0.0.1:8080/api/v1/schools/watch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.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Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "school_id": "SfQLOaiYKxo4OOVeYb5paos=" @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/unwatch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2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D0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "school_id": "SOME MASKED ID" @@ -44,7 +44,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/watched?lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6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AIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "include_home_school": true @@ -54,7 +54,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/rank? Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfH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lxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "purge_cache": false, @@ -67,11 +67,11 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHq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xH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Get a random school GET http://127.0.0.1:8080/api/v1/schools/random?without-school=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cREHodkSYhEDCVBjT-xO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8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ diff --git a/features/schools/unwatch_school.go b/features/schools/unwatch_school.go index 13052156..55b2d6a1 100644 --- a/features/schools/unwatch_school.go +++ b/features/schools/unwatch_school.go @@ -2,7 +2,7 @@ package schools import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -39,7 +39,7 @@ func (h *handler) handleUnwatchSchool(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.SchoolID) + unmaskedId, err := encryption.Unmask(req.SchoolID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/schools/watch_school.go b/features/schools/watch_school.go index a070c9dd..a204a042 100644 --- a/features/schools/watch_school.go +++ b/features/schools/watch_school.go @@ -2,7 +2,7 @@ package schools import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -56,7 +56,7 @@ func (h *handler) handleWatchSchool(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.SchoolID) + unmaskedId, err := encryption.Unmask(req.SchoolID) if err != nil { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) return diff --git a/features/user/requests.http b/features/user/requests.http index 6ee2e894..a5ea3a7a 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -2,25 +2,25 @@ GET http://127.0.0.1:8080/api/v1/user/user Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOi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LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### get user standing GET http://127.0.0.1:8080/api/v1/user/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BES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lbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Clear user faculty DELETE http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIi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dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Set user faculty PATCH http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcH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Js2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "faculty": "ENG" @@ -30,14 +30,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J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zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ ### Set user year of study PATCH http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIk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YbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "year_of_study": "One" @@ -47,7 +47,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/user/school Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRnA6ZTrIkzjse4004rFc4NlrVNrt_iQdpgR9qMiZCSRw7cRE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MThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "school_id": "SOME MASKED ID" @@ -59,4 +59,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/user/user-stats Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTY3Njk2NiwiZXhwIjoxNjkxNjgwNTY2LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.J3ZVTTDw8M2kfxUcHVL7xp6e0GVP_N5Ib2xOgrD7Tp1_cIZ5z-o1jsfHqIFr254W0AEo93JZRvILgEOX8GlBFU3M6dAd-Yy9Ljx-8_nBYLRn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bDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ diff --git a/features/user/router.go b/features/user/router.go index 01d4f45c..93b8288d 100644 --- a/features/user/router.go +++ b/features/user/router.go @@ -16,13 +16,6 @@ var ( serverError = errors.New("server error") ) -type PostDetail struct { - db.Post `json:"post"` - UserVote int `json:"user_vote"` - Owner bool `json:"owner"` - Emojis []string `json:"emojis" gorm:"-"` -} - type handler struct { db *gorm.DB fb *fire.FirebaseApp diff --git a/features/user/set_school.go b/features/user/set_school.go index 162eab23..d233b583 100644 --- a/features/user/set_school.go +++ b/features/user/set_school.go @@ -2,7 +2,7 @@ package user import ( "confesi/db" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -28,7 +28,7 @@ func (h *handler) handleSetSchool(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.SchoolID) + unmaskedId, err := encryption.Unmask(req.SchoolID) if err != nil { response.New(http.StatusBadRequest).Err("invalid id").Send(c) return diff --git a/features/votes/requests.http b/features/votes/requests.http index 499b802a..d527cdd7 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -2,7 +2,7 @@ PUT http://127.0.0.1:8080/api/v1/votes/vote Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE2NzY5NjYsIn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zU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { "content_id": "SOME MASKED ID", diff --git a/features/votes/vote.go b/features/votes/vote.go index 4db83946..cf6b169f 100644 --- a/features/votes/vote.go +++ b/features/votes/vote.go @@ -4,7 +4,7 @@ import ( "confesi/config/builders" "confesi/db" "confesi/lib/algorithm" - "confesi/lib/masking" + "confesi/lib/encryption" "confesi/lib/response" "confesi/lib/utils" "confesi/lib/validation" @@ -228,7 +228,7 @@ func (h *handler) handleVote(c *gin.Context) { return } - unmaskedId, err := masking.Unmask(req.ContentID) + unmaskedId, err := encryption.Unmask(req.ContentID) if err != nil { response.New(http.StatusInternalServerError).Err("server error").Send(c) return diff --git a/lib/cipher/aes.go b/lib/cipher/aes.go deleted file mode 100644 index 45eaace3..00000000 --- a/lib/cipher/aes.go +++ /dev/null @@ -1,53 +0,0 @@ -package cipher - -import ( - "crypto/aes" - c "crypto/cipher" - "crypto/rand" - "io" -) - -func Cipher(plaintext []byte, key []byte) (*CipherResult, error) { - if len(key) != 32 { - return nil, ErrInvalidKey - } - - block, err := aes.NewCipher(key) - if err != nil { - return nil, err - } - - nonce := make([]byte, 12) - if _, err := io.ReadFull(rand.Reader, nonce); err != nil { - return nil, err - } - - aesGcm, err := c.NewGCM(block) - if err != nil { - return nil, err - } - - cipher := aesGcm.Seal(nil, nonce, plaintext, nil) - - return &CipherResult{cipher, nonce}, nil -} - -func (ciphertext *CipherResult) Decipher(key []byte) error { - block, err := aes.NewCipher(key) - if err != nil { - return err - } - - aesGcm, err := c.NewGCM(block) - if err != nil { - return err - } - - plainText, err := aesGcm.Open(nil, ciphertext.Nonce, ciphertext.Ciphertext, nil) - if err != nil { - return err - } - ciphertext.Ciphertext = plainText - - return nil -} diff --git a/lib/cipher/cipher.go b/lib/cipher/cipher.go deleted file mode 100644 index 5995b9e5..00000000 --- a/lib/cipher/cipher.go +++ /dev/null @@ -1,40 +0,0 @@ -package cipher - -import ( - "errors" - "hash" - "os" -) - -const ( - MasterKeyLen = 16 -) - -var ( - ErrInvalidMasterKey = errors.New("invalid master key length") - ErrInvalidKey = errors.New("illegal key") - ErrInvalidSalt = errors.New("invalid salt") - hkdf_secret string -) - -type Serializer interface { - // length of the key has to be 32 bytes - Key() []byte -} - -type CipherResult struct { - Ciphertext []byte - Nonce []byte -} - -type KDF struct { - algo func() hash.Hash - salt []byte -} - -func init() { - hkdf_secret = os.Getenv("HKDF_SECRET") - if hkdf_secret == "" { - panic("`HKDF_SECRET` not set") - } -} diff --git a/lib/cipher/cipher_test.go b/lib/cipher/cipher_test.go deleted file mode 100644 index faeec8dd..00000000 --- a/lib/cipher/cipher_test.go +++ /dev/null @@ -1,79 +0,0 @@ -package cipher - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -type testUser struct { - email string - id string - nonce []byte -} - -func (user *testUser) Key() []byte { - keyLen := len(user.email) - if keyLen > MasterKeyLen { - return []byte(user.email)[:MasterKeyLen] - } - - if keyLen < MasterKeyLen { - offset := MasterKeyLen - keyLen - for i := 0; i < offset; i++ { - user.email += " " - } - } - - return []byte(user.email) -} - -func testInit() *testUser { - return &testUser{"foo@bar.com", "foobarbaz", nil} -} - -func testInitWithData() (*testUser, *KDF) { - kdf, _ := NewKDF() - user := testInit() - return user, kdf -} - -func TestKDFKeyGen(t *testing.T) { - kdf, err := NewKDF() - assert.Nil(t, err) - - // key gen test - // same key for 1 struct - user := testInit() - - key1, err := kdf.GenKey(user) - assert.Nil(t, err) - assert.NotEmpty(t, key1) - assert.Equal(t, 32, len(key1)) - - key2, err := kdf.GenKey(user) - assert.Nil(t, err) - assert.NotEmpty(t, key2) - assert.Equal(t, 32, len(key2)) - - assert.Equal(t, key1, key2) -} - -func TestMaskingUserID(t *testing.T) { - var err error - user, kdf := testInitWithData() - - key, err := kdf.GenKey(user) - assert.Nil(t, err) - - // test ciphering - cipher, err := Cipher([]byte(user.id), key) - assert.Nil(t, err) - assert.NotEmpty(t, cipher.Nonce) - assert.NotEqual(t, string(cipher.Ciphertext), user.id) - - // test deciphering - err = cipher.Decipher(key) - assert.Nil(t, err) - assert.Equal(t, user.id, string(cipher.Ciphertext)) -} diff --git a/lib/cipher/kdf.go b/lib/cipher/kdf.go deleted file mode 100644 index fcbfefc5..00000000 --- a/lib/cipher/kdf.go +++ /dev/null @@ -1,39 +0,0 @@ -package cipher - -import ( - "crypto/rand" - "crypto/sha256" - "io" - - "golang.org/x/crypto/hkdf" -) - -func NewKDF() (*KDF, error) { - algo := sha256.New - salt := make([]byte, algo().Size()) - if _, err := io.ReadFull(rand.Reader, salt); err != nil { - return nil, err - } - return &KDF{algo, salt}, nil -} - -func (kdf *KDF) GenKey(data Serializer) ([]byte, error) { - masterKey := data.Key() - if len(masterKey) < MasterKeyLen { - return nil, ErrInvalidMasterKey - } - if kdf.salt == nil { - return nil, ErrInvalidSalt - } - - masterKey = append(masterKey, []byte(hkdf_secret)...) - result := hkdf.New(kdf.algo, masterKey, kdf.salt, nil) - - key := make([]byte, 32) - if _, err := result.Read(key); err != nil { - return nil, err - } - - return key, nil - -} diff --git a/lib/masking/masking.go b/lib/encryption/encryption.go similarity index 78% rename from lib/masking/masking.go rename to lib/encryption/encryption.go index 621096f4..4801018d 100644 --- a/lib/masking/masking.go +++ b/lib/encryption/encryption.go @@ -1,9 +1,10 @@ -package masking +package encryption import ( "crypto/aes" "crypto/cipher" "crypto/rand" + "crypto/sha256" "encoding/base64" "fmt" "io" @@ -22,6 +23,11 @@ func init() { secretKey = []byte(m) } +func Hash(input uint) string { + hash := sha256.Sum256([]byte(fmt.Sprint(input))) + return base64.RawURLEncoding.EncodeToString(hash[:]) +} + func Mask(id uint) (string, error) { block, err := aes.NewCipher(secretKey) if err != nil { @@ -52,7 +58,15 @@ func Unmask(ciphertext string) (uint, error) { return 0, err } + if len(decodedCiphertext) < aes.BlockSize { + return 0, fmt.Errorf("invalid ciphertext length") + } + iv := decodedCiphertext[:aes.BlockSize] + if len(decodedCiphertext) <= aes.BlockSize { + return 0, fmt.Errorf("ciphertext too short") + } + ctr := cipher.NewCTR(block, iv) plaintext := make([]byte, len(decodedCiphertext)-aes.BlockSize) ctr.XORKeyStream(plaintext, decodedCiphertext[aes.BlockSize:]) diff --git a/lib/masking/masking_test.go b/lib/encryption/encryption_test.go similarity index 87% rename from lib/masking/masking_test.go rename to lib/encryption/encryption_test.go index 2670e4a4..d427b448 100644 --- a/lib/masking/masking_test.go +++ b/lib/encryption/encryption_test.go @@ -1,4 +1,4 @@ -package masking +package encryption import ( "fmt" @@ -7,9 +7,16 @@ import ( "github.com/stretchr/testify/assert" ) -// Tests require `MASK_SECRET` env var to be set to pass +//! Tests require `MASK_SECRET` env var to be set to pass + +func TestUniqueHash(t *testing.T) { + id := uint(78) + hash := Hash(id) + assert.Equal(t, "NJxBIBti24URkmZcUEs1D_mMa0X7YqiiFh94tlNNjek", hash, "Hashes do not match") +} func TestUniqueMasksMapToSameID(t *testing.T) { + // Test case: Masking the same ID twice should result in different encrypted values id := uint(5) diff --git a/migrations/000052_school_time_stamps.down.sql b/migrations/000052_school_time_stamps.down.sql new file mode 100644 index 00000000..2bfa212c --- /dev/null +++ b/migrations/000052_school_time_stamps.down.sql @@ -0,0 +1,8 @@ +-- add auto timestamps to schools table +BEGIN; + +ALTER TABLE schools + DROP COLUMN created_at, + DROP COLUMN updated_at; + +END; \ No newline at end of file diff --git a/migrations/000052_school_time_stamps.up.sql b/migrations/000052_school_time_stamps.up.sql new file mode 100644 index 00000000..99064598 --- /dev/null +++ b/migrations/000052_school_time_stamps.up.sql @@ -0,0 +1,8 @@ +-- add auto timestamps to schools table +BEGIN; + +ALTER TABLE schools + ADD COLUMN created_at TIMESTAMPTZ NOT NULL DEFAULT timezone('UTC'::text, now()), + ADD COLUMN updated_at TIMESTAMPTZ NOT NULL DEFAULT timezone('UTC'::text, now()); + +END; From 6dc1acd68299a002464ab7ae78c3a9c31a67f7db Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 20:01:05 -0700 Subject: [PATCH 06/10] feat: adds hashed IDs for internal fields of structs --- db/models.go | 69 +++++++++++++++++------------- features/admin/hide.go | 4 +- features/auth/register.go | 2 +- features/comments/create.go | 2 +- features/feedback/create.go | 2 +- features/posts/create.go | 2 +- features/reports/create.go | 6 +-- features/saves/save.go | 4 +- features/saves/unsave.go | 4 +- features/schools/unwatch_school.go | 2 +- features/schools/watch_school.go | 2 +- features/votes/vote.go | 12 +++--- middleware/firebase_auth.go | 2 +- 13 files changed, 61 insertions(+), 52 deletions(-) diff --git a/db/models.go b/db/models.go index e7e8462b..f38ef566 100644 --- a/db/models.go +++ b/db/models.go @@ -67,7 +67,7 @@ type School struct { func (s School) MarshalJSON() ([]byte, error) { type Alias School return json.Marshal(&struct { - Hash string `json:"hash"` + Hash string `json:"h_id"` *Alias }{ Hash: encryption.Hash(s.ID.Val), @@ -76,7 +76,7 @@ func (s School) MarshalJSON() ([]byte, error) { } type Faculty struct { - ID MaskedID `gorm:"primaryKey" json:"-"` + ID MaskedID `gorm:"primaryKey" json:"id"` Faculty null.String `gorm:"column:faculty" json:"faculty"` } @@ -98,7 +98,7 @@ func (FcmTopicPref) TableName() string { // ! Very important some fields are NOT serialized (json:"-") type FcmTopicPref struct { - ID MaskedID `gorm:"primaryKey" json:"-"` + ID MaskedID `gorm:"primaryKey" json:"id"` UserID string `gorm:"column:user_id" json:"-"` DailyHottest bool `gorm:"column:daily_hottest" json:"daily_hottest"` Trending bool `gorm:"column:trending" json:"trending"` @@ -123,7 +123,7 @@ func (FcmToken) TableName() string { } type PostCategory struct { - ID MaskedID `gorm:"primaryKey" json:"-"` + ID MaskedID `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name" json:"name"` } @@ -139,11 +139,11 @@ type User struct { ID string `gorm:"primaryKey" json:"-"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - YearOfStudyID *uint `gorm:"column:year_of_study_id" json:"-"` + YearOfStudyID *MaskedID `gorm:"column:year_of_study_id" json:"-"` YearOfStudy YearOfStudy `gorm:"foreignKey:YearOfStudyID" json:"year_of_study"` - FacultyID *uint `gorm:"column:faculty_id" json:"-"` + FacultyID *MaskedID `gorm:"column:faculty_id" json:"-"` Faculty Faculty `gorm:"foreignKey:FacultyID" json:"faculty"` - SchoolID uint `gorm:"column:school_id" json:"-"` + SchoolID MaskedID `gorm:"column:school_id" json:"-"` School School `gorm:"foreignKey:SchoolID" json:"school"` IsLimited bool `gorm:"is_limited" json:"-"` } @@ -154,13 +154,13 @@ type SchoolFollow struct { CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` - SchoolID uint `gorm:"column:school_id" json:"-"` + SchoolID MaskedID `gorm:"column:school_id" json:"school_id"` } func (p Post) MarshalJSON() ([]byte, error) { type Alias Post return json.Marshal(&struct { - Hash string `json:"hash"` + Hash string `json:"h_id"` *Alias }{ Hash: encryption.Hash(p.ID.Val), @@ -174,11 +174,11 @@ type Post struct { CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` - SchoolID uint `gorm:"column:school_id" json:"-"` + SchoolID MaskedID `gorm:"column:school_id" json:"-"` School School `gorm:"foreignKey:SchoolID" json:"school"` - FacultyID *uint `gorm:"column:faculty_id" json:"-"` + FacultyID *MaskedID `gorm:"column:faculty_id" json:"-"` Faculty Faculty `gorm:"foreignKey:FacultyID" json:"faculty"` - YearOfStudyID *uint `gorm:"column:year_of_study_id" json:"-"` + YearOfStudyID *MaskedID `gorm:"column:year_of_study_id" json:"-"` YearOfStudy YearOfStudy `gorm:"foreignKey:YearOfStudyID" json:"year_of_study"` Title string `gorm:"column:title" json:"title"` Content string `gorm:"column:content" json:"content"` @@ -192,7 +192,7 @@ type Post struct { ReportCount uint `gorm:"column:report_count" json:"-"` ReviewedByMod bool `gorm:"column:reviewed_by_mod" json:"-"` Edited bool `gorm:"column:edited" json:"edited"` - CategoryID uint `gorm:"column:category_id" json:"-"` + CategoryID MaskedID `gorm:"column:category_id" json:"-"` Category PostCategory `gorm:"foreignKey:CategoryID" json:"category"` CommentCount uint `gorm:"column:comment_count" json:"comment_count"` } @@ -220,12 +220,21 @@ func (c *Comment) CensorComment() Comment { func (c Comment) MarshalJSON() ([]byte, error) { type Alias Comment + var parentRootHash *string + if c.ParentRoot != nil { + hash := encryption.Hash(c.ParentRoot.Val) + parentRootHash = &hash + } return json.Marshal(&struct { - Hash string `json:"hash"` + Hash string `json:"h_id"` + ParentRootHash *string `json:"h_parent_root_id"` + PostID string `json:"post_id"` *Alias }{ - Hash: encryption.Hash(c.ID.Val), - Alias: (*Alias)(&c), + Hash: encryption.Hash(c.ID.Val), + ParentRootHash: parentRootHash, + PostID: encryption.Hash(c.PostID.Val), + Alias: (*Alias)(&c), }) } @@ -234,7 +243,7 @@ type Comment struct { ID MaskedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - PostID uint `gorm:"column:post_id" json:"post_id"` + PostID MaskedID `gorm:"column:post_id" json:"post_id"` NumericalUser *uint `gorm:"column:numerical_user" json:"numerical_user"` // this is a pointer because it can be null NumericalReplyingUser *uint `gorm:"column:numerical_replying_user" json:"numerical_replying_user"` // this is a pointer because it can be null NumericalUserIsOp *bool `gorm:"column:numerical_user_is_op" json:"numerical_user_is_op"` // this is a pointer because it can be null @@ -325,11 +334,11 @@ const ( // ! Important not to serialize some fields!! type Vote struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - Vote int `db:"vote" json:"vote"` - UserID string `db:"user_id" json:"-"` - PostID *uint `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint - CommentID *uint `db:"comment_id" gorm:"default:NULL" json:"comment_id"` // is that exactly one of them is a valid FK + ID MaskedID `gorm:"primary_key;column:id" json:"id"` + Vote int `db:"vote" json:"vote"` + UserID string `db:"user_id" json:"-"` + PostID *MaskedID `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint + CommentID *MaskedID `db:"comment_id" gorm:"default:NULL" json:"comment_id"` // is that exactly one of them is a valid FK } // ! Important not to serialize some fields!! @@ -338,7 +347,7 @@ type SavedPost struct { CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` - PostID uint `gorm:"column:post_id" json:"post_id"` + PostID MaskedID `gorm:"column:post_id" json:"post_id"` } // ! Important not to serialize some fields!! @@ -347,7 +356,7 @@ type SavedComment struct { CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` - CommentID uint `gorm:"column:comment_id" json:"comment_id"` + CommentID MaskedID `gorm:"column:comment_id" json:"comment_id"` } // ! Important not to serialize some fields!! @@ -357,7 +366,7 @@ type Feedback struct { UserID string `gorm:"column:user_id" json:"-"` Content string `gorm:"column:content" json:"content"` Type *FeedbackType `gorm:"foreignKey:TypeID" json:"type,omitempty"` // Use "omitempty" here - TypeID uint `gorm:"column:type_id" json:"-"` // references the feedback_type table + TypeID MaskedID `gorm:"column:type_id" json:"-"` // references the feedback_type table } type ReportType struct { @@ -391,9 +400,9 @@ type HideLog struct { ID MaskedID `gorm:"primaryKey;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - PostID *uint `db:"post_id" gorm:"default:NULL" json:"-"` + PostID *MaskedID `db:"post_id" gorm:"default:NULL" json:"-"` Post *Post `gorm:"foreignKey:PostID" json:"post,omitempty"` // Use "omitempty" here - CommentID *uint `db:"comment_id" gorm:"default:NULL" json:"-"` + CommentID *MaskedID `db:"comment_id" gorm:"default:NULL" json:"-"` Comment *Comment `gorm:"foreignKey:CommentID" json:"comment,omitempty"` // Use "omitempty" here Reason string `gorm:"column:reason" json:"reason"` Removed bool `gorm:"column:removed" json:"removed"` @@ -411,13 +420,13 @@ type Report struct { UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` ReportedBy string `gorm:"column:reported_by" json:"-"` Description string `gorm:"column:description" json:"description"` - TypeID uint `gorm:"column:type_id" json:"-"` // references the report_type table + TypeID MaskedID `gorm:"column:type_id" json:"-"` // references the report_type table ReportType *ReportType `gorm:"foreignKey:TypeID" json:"report_type"` Result *string `gorm:"column:result" json:"result"` // can be null HasBeenRemoved bool `gorm:"column:has_been_removed" json:"has_been_removed"` - PostID *uint `db:"post_id" gorm:"default:NULL" json:"-"` + PostID *MaskedID `db:"post_id" gorm:"default:NULL" json:"-"` Post *Post `gorm:"foreignKey:PostID" json:"post,omitempty"` // Use "omitempty" here - CommentID *uint `db:"comment_id" gorm:"default:NULL" json:"-"` + CommentID *MaskedID `db:"comment_id" gorm:"default:NULL" json:"-"` Comment *Comment `gorm:"foreignKey:CommentID" json:"comment,omitempty"` // Use "omitempty" here } diff --git a/features/admin/hide.go b/features/admin/hide.go index 9ce73056..4d3bbcc9 100644 --- a/features/admin/hide.go +++ b/features/admin/hide.go @@ -47,11 +47,11 @@ func (h *handler) handleHideContent(c *gin.Context) { var table string if req.ContentType == "comment" { table = "comments" - hideLogEntry.CommentID = &unmaskedContentId + hideLogEntry.CommentID = &db.MaskedID{Val: unmaskedContentId} commentOrPostIdMatcher = "comment_id" } else if req.ContentType == "post" { table = "posts" - hideLogEntry.PostID = &unmaskedContentId + hideLogEntry.PostID = &db.MaskedID{Val: unmaskedContentId} commentOrPostIdMatcher = "post_id" } else { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) diff --git a/features/auth/register.go b/features/auth/register.go index dd88be66..6e55b769 100644 --- a/features/auth/register.go +++ b/features/auth/register.go @@ -116,7 +116,7 @@ func (h *handler) handleRegister(c *gin.Context) { return } - userToSaveToPostgres.SchoolID = school.ID.Val + userToSaveToPostgres.SchoolID = school.ID userToSaveToPostgres.ID = userIdForPostgres // save user to postgres diff --git a/features/comments/create.go b/features/comments/create.go index baaaccf5..96ec3b5d 100644 --- a/features/comments/create.go +++ b/features/comments/create.go @@ -116,7 +116,7 @@ func (h *handler) handleCreate(c *gin.Context) { // base comment comment := db.Comment{ UserID: token.UID, - PostID: unmaskedPostId, + PostID: db.MaskedID{Val: unmaskedPostId}, Content: req.Content, } diff --git a/features/feedback/create.go b/features/feedback/create.go index c274bbbd..0225781b 100644 --- a/features/feedback/create.go +++ b/features/feedback/create.go @@ -44,7 +44,7 @@ func (h *handler) handleFeedback(c *gin.Context) { feedback := db.Feedback{ UserID: token.UID, Content: req.Message, - TypeID: feedbackType.ID.Val, + TypeID: feedbackType.ID, } err = h.db.Create(&feedback).Error diff --git a/features/posts/create.go b/features/posts/create.go index 55f92067..af847c99 100644 --- a/features/posts/create.go +++ b/features/posts/create.go @@ -53,7 +53,7 @@ func (h *handler) createPost(c *gin.Context, title string, body string, token *a post := db.Post{ UserID: token.UID, SchoolID: userData.SchoolID, - CategoryID: uint(postCategory.ID.Val), + CategoryID: postCategory.ID, FacultyID: userData.FacultyID, YearOfStudyID: userData.YearOfStudyID, Title: title, diff --git a/features/reports/create.go b/features/reports/create.go index a7d9103d..fd25bdfb 100644 --- a/features/reports/create.go +++ b/features/reports/create.go @@ -50,10 +50,10 @@ func (h *handler) handleCreateReport(c *gin.Context) { var modelMatcher interface{} report := db.Report{} if req.ContentType == "post" { - report.PostID = &unmaskedId + report.PostID = &db.MaskedID{Val: unmaskedId} modelMatcher = &db.Post{} } else if req.ContentType == "comment" { - report.CommentID = &unmaskedId + report.CommentID = &db.MaskedID{Val: unmaskedId} modelMatcher = &db.Comment{} } else { // should never happen... but to be defensive @@ -90,7 +90,7 @@ func (h *handler) handleCreateReport(c *gin.Context) { report.ReportedBy = token.UID report.Description = req.Description - report.TypeID = reportType.ID.Val + report.TypeID = reportType.ID err = tx.Create(&report).Error if err != nil { diff --git a/features/saves/save.go b/features/saves/save.go index 69417107..4406a32a 100644 --- a/features/saves/save.go +++ b/features/saves/save.go @@ -22,13 +22,13 @@ func (h *handler) saveContent(c *gin.Context, token *auth.Token, req validation. if req.ContentType == "post" { savedPost := db.SavedPost{ UserID: token.UID, - PostID: unmaskedId, + PostID: db.MaskedID{Val: unmaskedId}, } err = h.db.Create(&savedPost).Error } else if req.ContentType == "comment" { savedComment := db.SavedComment{ UserID: token.UID, - CommentID: unmaskedId, + CommentID: db.MaskedID{Val: unmaskedId}, } err = h.db.Create(&savedComment).Error } else { diff --git a/features/saves/unsave.go b/features/saves/unsave.go index d66d0a6d..0f551c24 100644 --- a/features/saves/unsave.go +++ b/features/saves/unsave.go @@ -17,13 +17,13 @@ func (h *handler) unsaveContent(c *gin.Context, token *auth.Token, req validatio if req.ContentType == "post" { savedPost := db.SavedPost{ UserID: token.UID, - PostID: unmaskedId, + PostID: db.MaskedID{Val: unmaskedId}, } err = h.db.Delete(&savedPost, "user_id = ? AND post_id = ?", savedPost.UserID, savedPost.PostID).Error } else if req.ContentType == "comment" { savedComment := db.SavedComment{ UserID: token.UID, - CommentID: unmaskedId, + CommentID: db.MaskedID{Val: unmaskedId}, } err = h.db.Delete(&savedComment, "user_id = ? AND comment_id = ?", savedComment.UserID, savedComment.CommentID).Error } else { diff --git a/features/schools/unwatch_school.go b/features/schools/unwatch_school.go index 55b2d6a1..eccb5cc1 100644 --- a/features/schools/unwatch_school.go +++ b/features/schools/unwatch_school.go @@ -15,7 +15,7 @@ import ( func (h *handler) unwatchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool, unmaskedId uint) error { school := db.SchoolFollow{ UserID: token.UID, - SchoolID: unmaskedId, + SchoolID: db.MaskedID{Val: unmaskedId}, } err := h.DB.Delete(&school, "user_id = ? AND school_id = ?", school.UserID, school.SchoolID).Error if err != nil { diff --git a/features/schools/watch_school.go b/features/schools/watch_school.go index a204a042..0252caf6 100644 --- a/features/schools/watch_school.go +++ b/features/schools/watch_school.go @@ -17,7 +17,7 @@ import ( func (h *handler) watchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool, unmaskedId uint) error { school := db.SchoolFollow{ UserID: token.UID, - SchoolID: unmaskedId, + SchoolID: db.MaskedID{Val: unmaskedId}, } err := h.DB.Create(&school).Error if err != nil { diff --git a/features/votes/vote.go b/features/votes/vote.go index cf6b169f..b8906f40 100644 --- a/features/votes/vote.go +++ b/features/votes/vote.go @@ -52,9 +52,9 @@ func (h *handler) doVote(c *gin.Context, vote db.Vote, contentType string, uid s var content contentMatcher if contentType == "comment" { - content = contentMatcher{fieldName: "comment_id", id: vote.CommentID, model: &db.Comment{}} + content = contentMatcher{fieldName: "comment_id", id: &vote.CommentID.Val, model: &db.Comment{}} } else if contentType == "post" { - content = contentMatcher{fieldName: "post_id", id: vote.PostID, model: &db.Post{}} + content = contentMatcher{fieldName: "post_id", id: &vote.PostID.Val, model: &db.Post{}} } else { tx.Rollback() return invalidValue @@ -189,7 +189,7 @@ func (h *handler) doVote(c *gin.Context, vote db.Vote, contentType string, uid s go fcm.New(h.fb.MsgClient). ToTokens(tokens). WithMsg(builders.VoteOnCommentNoti(vote.Vote, votes.Upvote-votes.Downvote)). - WithData(builders.VoteOnCommentData(*vote.CommentID)). + WithData(builders.VoteOnCommentData(vote.CommentID.Val)). Send(*h.db) } } else if vote.PostID != nil { @@ -206,7 +206,7 @@ func (h *handler) doVote(c *gin.Context, vote db.Vote, contentType string, uid s go fcm.New(h.fb.MsgClient). ToTokens(tokens). WithMsg(builders.VoteOnPostNoti(vote.Vote, votes.Upvote-votes.Downvote)). - WithData(builders.VoteOnCommentData(*vote.PostID)). + WithData(builders.VoteOnCommentData(vote.PostID.Val)). Send(*h.db) } } @@ -238,9 +238,9 @@ func (h *handler) handleVote(c *gin.Context) { vote.UserID = token.UID vote.Vote = int(*req.Value) if req.ContentType == "post" { - vote.PostID = &unmaskedId + vote.PostID = &db.MaskedID{Val: unmaskedId} } else if req.ContentType == "comment" { - vote.CommentID = &unmaskedId + vote.CommentID = &db.MaskedID{Val: unmaskedId} } else { // should never happen with validated struct, but to be defensive response.New(http.StatusBadRequest).Err(fmt.Sprintf("invalid content type")).Send(c) diff --git a/middleware/firebase_auth.go b/middleware/firebase_auth.go index d083abdb..ee633a00 100644 --- a/middleware/firebase_auth.go +++ b/middleware/firebase_auth.go @@ -164,7 +164,7 @@ func RetrySyncPostgresAccountCreation(c *gin.Context, token *auth.Token) error { } // else, add the email to the user - user.SchoolID = school.ID.Val + user.SchoolID = school.ID err = tx.Create(&user).Error if err != nil { From 7bb305f30ede42c4555bfeef7439c234fdbdd1cb Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 20:05:32 -0700 Subject: [PATCH 07/10] fix: hotfix --- db/models.go | 2 +- features/comments/requests.http | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/models.go b/db/models.go index f38ef566..f46d972e 100644 --- a/db/models.go +++ b/db/models.go @@ -228,7 +228,7 @@ func (c Comment) MarshalJSON() ([]byte, error) { return json.Marshal(&struct { Hash string `json:"h_id"` ParentRootHash *string `json:"h_parent_root_id"` - PostID string `json:"post_id"` + PostID string `json:"h_post_id"` *Alias }{ Hash: encryption.Hash(c.ID.Val), diff --git a/features/comments/requests.http b/features/comments/requests.http index b9ddc8e0..9a6d4f77 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -6,8 +6,8 @@ Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ { - "post_id": "SOME MASK", - "parent_comment_id": "SOME MASK", + "post_id": "DrKEMpzSzc2WfC7kUf6xKdm_", + "parent_comment_id": null, "content": "thanks dude" } From 851b30749825989a4aeba0d08ec1fe8921e12227 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 10 Aug 2023 23:01:58 -0700 Subject: [PATCH 08/10] feat: cleanup of masked/hashed ids --- db/models.go | 301 ++++++++++------------- features/admin/hide.go | 4 +- features/admin/requests.http | 30 +-- features/auth/requests.http | 6 +- features/comments/create.go | 2 +- features/comments/requests.http | 18 +- features/drafts/requests.http | 8 +- features/feedback/requests.http | 2 +- features/hide_log/requests.http | 4 +- features/notifications/requests.http | 8 +- features/posts/requests.http | 24 +- features/reports/create.go | 4 +- features/reports/requests.http | 6 +- features/saves/requests.http | 8 +- features/saves/save.go | 4 +- features/saves/unsave.go | 4 +- features/schools/get_schools_by_query.go | 7 +- features/schools/requests.http | 24 +- features/schools/router.go | 9 +- features/schools/unwatch_school.go | 2 +- features/schools/watch_school.go | 2 +- features/user/requests.http | 16 +- features/votes/requests.http | 2 +- features/votes/vote.go | 4 +- 24 files changed, 233 insertions(+), 266 deletions(-) diff --git a/db/models.go b/db/models.go index f46d972e..2c00c2a0 100644 --- a/db/models.go +++ b/db/models.go @@ -13,19 +13,24 @@ import ( "gorm.io/datatypes" ) -type MaskedID struct { +type EncryptedID struct { Val uint } -func (mu MaskedID) MarshalJSON() ([]byte, error) { +func (mu EncryptedID) MarshalJSON() ([]byte, error) { masked, err := encryption.Mask(mu.Val) if err != nil { return nil, err } - return json.Marshal(masked) + hashed := encryption.Hash(mu.Val) + data := map[string]interface{}{ + "masked": masked, // volatile, reversible + "hash": hashed, // consistent, not reversible + } + return json.Marshal(data) } -func (mu *MaskedID) Scan(value interface{}) error { +func (mu *EncryptedID) Scan(value interface{}) error { if value == nil { return nil } @@ -39,44 +44,33 @@ func (mu *MaskedID) Scan(value interface{}) error { return nil } -func (mu MaskedID) Value() (driver.Value, error) { +func (mu EncryptedID) Value() (driver.Value, error) { strValue := uint(mu.Val) return strValue, nil } type ModLevel struct { - ID MaskedID `gorm:"primaryKey" json:"id"` - Mod string `gorm:"column:mod" json:"mod"` + ID EncryptedID `gorm:"primaryKey" json:"id"` + Mod string `gorm:"column:mod" json:"mod"` } type School struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - Name string `json:"name"` - Abbr string `json:"abbr"` - Lat float32 `json:"lat"` - Lon float32 `json:"lon"` - DailyHottests int `json:"daily_hottests"` - Domain string `json:"domain"` - ImgUrl string `json:"img_url"` - Website string `json:"website"` -} - -func (s School) MarshalJSON() ([]byte, error) { - type Alias School - return json.Marshal(&struct { - Hash string `json:"h_id"` - *Alias - }{ - Hash: encryption.Hash(s.ID.Val), - Alias: (*Alias)(&s), - }) + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + Name string `json:"name"` + Abbr string `json:"abbr"` + Lat float32 `json:"lat"` + Lon float32 `json:"lon"` + DailyHottests int `json:"daily_hottests"` + Domain string `json:"domain"` + ImgUrl string `json:"img_url"` + Website string `json:"website"` } type Faculty struct { - ID MaskedID `gorm:"primaryKey" json:"id"` + ID EncryptedID `gorm:"primaryKey" json:"id"` Faculty null.String `gorm:"column:faculty" json:"faculty"` } @@ -98,24 +92,24 @@ func (FcmTopicPref) TableName() string { // ! Very important some fields are NOT serialized (json:"-") type FcmTopicPref struct { - ID MaskedID `gorm:"primaryKey" json:"id"` - UserID string `gorm:"column:user_id" json:"-"` - DailyHottest bool `gorm:"column:daily_hottest" json:"daily_hottest"` - Trending bool `gorm:"column:trending" json:"trending"` - RepliesToYourComments bool `gorm:"column:replies_to_your_comments" json:"replies_to_your_comments"` - CommentsOnYourPosts bool `gorm:"column:comments_on_your_posts" json:"comments_on_your_posts"` - VotesOnYourComments bool `gorm:"column:votes_on_your_comments" json:"votes_on_your_comments"` - VotesOnYourPosts bool `gorm:"column:votes_on_your_posts" json:"votes_on_your_posts"` - QuotesOfYourPosts bool `gorm:"column:quotes_of_your_posts" json:"quotes_of_your_posts"` + ID EncryptedID `gorm:"primaryKey" json:"id"` + UserID string `gorm:"column:user_id" json:"-"` + DailyHottest bool `gorm:"column:daily_hottest" json:"daily_hottest"` + Trending bool `gorm:"column:trending" json:"trending"` + RepliesToYourComments bool `gorm:"column:replies_to_your_comments" json:"replies_to_your_comments"` + CommentsOnYourPosts bool `gorm:"column:comments_on_your_posts" json:"comments_on_your_posts"` + VotesOnYourComments bool `gorm:"column:votes_on_your_comments" json:"votes_on_your_comments"` + VotesOnYourPosts bool `gorm:"column:votes_on_your_posts" json:"votes_on_your_posts"` + QuotesOfYourPosts bool `gorm:"column:quotes_of_your_posts" json:"quotes_of_your_posts"` } // ! Very important some fields are NOT serialized (json:"-") type FcmToken struct { - ID MaskedID `gorm:"primaryKey" json:"id"` - UserID *string `gorm:"column:user_id" json:"-"` - Token string `gorm:"column:token" json:"token"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + ID EncryptedID `gorm:"primaryKey" json:"id"` + UserID *string `gorm:"column:user_id" json:"-"` + Token string `gorm:"column:token" json:"token"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` } func (FcmToken) TableName() string { @@ -123,8 +117,8 @@ func (FcmToken) TableName() string { } type PostCategory struct { - ID MaskedID `gorm:"primaryKey" json:"id"` - Name string `gorm:"column:name" json:"name"` + ID EncryptedID `gorm:"primaryKey" json:"id"` + Name string `gorm:"column:name" json:"name"` } func (PostCategory) TableName() string { @@ -136,49 +130,38 @@ func (Draft) TableName() string { } type User struct { - ID string `gorm:"primaryKey" json:"-"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - YearOfStudyID *MaskedID `gorm:"column:year_of_study_id" json:"-"` - YearOfStudy YearOfStudy `gorm:"foreignKey:YearOfStudyID" json:"year_of_study"` - FacultyID *MaskedID `gorm:"column:faculty_id" json:"-"` - Faculty Faculty `gorm:"foreignKey:FacultyID" json:"faculty"` - SchoolID MaskedID `gorm:"column:school_id" json:"-"` - School School `gorm:"foreignKey:SchoolID" json:"school"` - IsLimited bool `gorm:"is_limited" json:"-"` + ID string `gorm:"primaryKey" json:"-"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + YearOfStudyID *EncryptedID `gorm:"column:year_of_study_id" json:"-"` + YearOfStudy YearOfStudy `gorm:"foreignKey:YearOfStudyID" json:"year_of_study"` + FacultyID *EncryptedID `gorm:"column:faculty_id" json:"-"` + Faculty Faculty `gorm:"foreignKey:FacultyID" json:"faculty"` + SchoolID EncryptedID `gorm:"column:school_id" json:"-"` + School School `gorm:"foreignKey:SchoolID" json:"school"` + IsLimited bool `gorm:"is_limited" json:"-"` } // ! Very important some fields are NOT serialized (json:"-") type SchoolFollow struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - UserID string `gorm:"column:user_id" json:"-"` - SchoolID MaskedID `gorm:"column:school_id" json:"school_id"` -} - -func (p Post) MarshalJSON() ([]byte, error) { - type Alias Post - return json.Marshal(&struct { - Hash string `json:"h_id"` - *Alias - }{ - Hash: encryption.Hash(p.ID.Val), - Alias: (*Alias)(&p), - }) + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + UserID string `gorm:"column:user_id" json:"-"` + SchoolID EncryptedID `gorm:"column:school_id" json:"school_id"` } // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Post struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` UserID string `gorm:"column:user_id" json:"-"` - SchoolID MaskedID `gorm:"column:school_id" json:"-"` + SchoolID EncryptedID `gorm:"column:school_id" json:"-"` School School `gorm:"foreignKey:SchoolID" json:"school"` - FacultyID *MaskedID `gorm:"column:faculty_id" json:"-"` + FacultyID *EncryptedID `gorm:"column:faculty_id" json:"-"` Faculty Faculty `gorm:"foreignKey:FacultyID" json:"faculty"` - YearOfStudyID *MaskedID `gorm:"column:year_of_study_id" json:"-"` + YearOfStudyID *EncryptedID `gorm:"column:year_of_study_id" json:"-"` YearOfStudy YearOfStudy `gorm:"foreignKey:YearOfStudyID" json:"year_of_study"` Title string `gorm:"column:title" json:"title"` Content string `gorm:"column:content" json:"content"` @@ -192,19 +175,19 @@ type Post struct { ReportCount uint `gorm:"column:report_count" json:"-"` ReviewedByMod bool `gorm:"column:reviewed_by_mod" json:"-"` Edited bool `gorm:"column:edited" json:"edited"` - CategoryID MaskedID `gorm:"column:category_id" json:"-"` + CategoryID EncryptedID `gorm:"column:category_id" json:"-"` Category PostCategory `gorm:"foreignKey:CategoryID" json:"category"` CommentCount uint `gorm:"column:comment_count" json:"comment_count"` } // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Draft struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - UserID string `gorm:"column:user_id" json:"-"` - Title string `gorm:"column:title" json:"title"` - Content string `gorm:"column:content" json:"content"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + UserID string `gorm:"column:user_id" json:"-"` + Title string `gorm:"column:title" json:"title"` + Content string `gorm:"column:content" json:"content"` } func (p *Post) CensorPost() Post { @@ -218,48 +201,28 @@ func (c *Comment) CensorComment() Comment { return *c } -func (c Comment) MarshalJSON() ([]byte, error) { - type Alias Comment - var parentRootHash *string - if c.ParentRoot != nil { - hash := encryption.Hash(c.ParentRoot.Val) - parentRootHash = &hash - } - return json.Marshal(&struct { - Hash string `json:"h_id"` - ParentRootHash *string `json:"h_parent_root_id"` - PostID string `json:"h_post_id"` - *Alias - }{ - Hash: encryption.Hash(c.ID.Val), - ParentRootHash: parentRootHash, - PostID: encryption.Hash(c.PostID.Val), - Alias: (*Alias)(&c), - }) -} - // ! Very important that SOME FIELDS ARE NOT EVER SERIALIZED TO PROTECT SENSATIVE DATA (json:"-") type Comment struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - PostID MaskedID `gorm:"column:post_id" json:"post_id"` - NumericalUser *uint `gorm:"column:numerical_user" json:"numerical_user"` // this is a pointer because it can be null - NumericalReplyingUser *uint `gorm:"column:numerical_replying_user" json:"numerical_replying_user"` // this is a pointer because it can be null - NumericalUserIsOp *bool `gorm:"column:numerical_user_is_op" json:"numerical_user_is_op"` // this is a pointer because it can be null - NumericalReplyingUserIsOp *bool `gorm:"column:numerical_replying_user_is_op" json:"numerical_replying_user_is_op"` // this is a pointer because it can be null - ParentRoot *MaskedID `gorm:"column:parent_root" json:"parent_root"` - ChildrenCount uint `gorm:"column:children_count" json:"children_count"` - UserID string `gorm:"column:user_id" json:"-"` - Content string `gorm:"column:content" json:"content"` - Downvote uint `gorm:"column:downvote" json:"downvote"` - Upvote uint `gorm:"column:upvote" json:"upvote"` - VoteScore int `gorm:"column:vote_score" json:"-"` // redundant to return to the user - TrendingScore float64 `gorm:"column:trending_score" json:"trending_score"` - Hidden bool `gorm:"column:hidden" json:"hidden"` - ReportCount uint `gorm:"column:report_count" json:"-"` - ReviewedByMod bool `gorm:"column:reviewed_by_mod" json:"-"` - Edited bool `gorm:"column:edited" json:"edited"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + PostID EncryptedID `gorm:"column:post_id" json:"post_id"` + NumericalUser *uint `gorm:"column:numerical_user" json:"numerical_user"` // this is a pointer because it can be null + NumericalReplyingUser *uint `gorm:"column:numerical_replying_user" json:"numerical_replying_user"` // this is a pointer because it can be null + NumericalUserIsOp *bool `gorm:"column:numerical_user_is_op" json:"numerical_user_is_op"` // this is a pointer because it can be null + NumericalReplyingUserIsOp *bool `gorm:"column:numerical_replying_user_is_op" json:"numerical_replying_user_is_op"` // this is a pointer because it can be null + ParentRoot *EncryptedID `gorm:"column:parent_root" json:"parent_root_id"` + ChildrenCount uint `gorm:"column:children_count" json:"children_count"` + UserID string `gorm:"column:user_id" json:"-"` + Content string `gorm:"column:content" json:"content"` + Downvote uint `gorm:"column:downvote" json:"downvote"` + Upvote uint `gorm:"column:upvote" json:"upvote"` + VoteScore int `gorm:"column:vote_score" json:"-"` // redundant to return to the user + TrendingScore float64 `gorm:"column:trending_score" json:"trending_score"` + Hidden bool `gorm:"column:hidden" json:"hidden"` + ReportCount uint `gorm:"column:report_count" json:"-"` + ReviewedByMod bool `gorm:"column:reviewed_by_mod" json:"-"` + Edited bool `gorm:"column:edited" json:"edited"` } func (c *Comment) ObscureIfHidden() Comment { @@ -334,44 +297,44 @@ const ( // ! Important not to serialize some fields!! type Vote struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - Vote int `db:"vote" json:"vote"` - UserID string `db:"user_id" json:"-"` - PostID *MaskedID `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint - CommentID *MaskedID `db:"comment_id" gorm:"default:NULL" json:"comment_id"` // is that exactly one of them is a valid FK + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + Vote int `db:"vote" json:"vote"` + UserID string `db:"user_id" json:"-"` + PostID *EncryptedID `db:"post_id" gorm:"default:NULL" json:"post_id"` // Either one of these FKs can be null, but the constraint + CommentID *EncryptedID `db:"comment_id" gorm:"default:NULL" json:"comment_id"` // is that exactly one of them is a valid FK } // ! Important not to serialize some fields!! type SavedPost struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - UserID string `gorm:"column:user_id" json:"-"` - PostID MaskedID `gorm:"column:post_id" json:"post_id"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + UserID string `gorm:"column:user_id" json:"-"` + PostID EncryptedID `gorm:"column:post_id" json:"post_id"` } // ! Important not to serialize some fields!! type SavedComment struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - UserID string `gorm:"column:user_id" json:"-"` - CommentID MaskedID `gorm:"column:comment_id" json:"comment_id"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + UserID string `gorm:"column:user_id" json:"-"` + CommentID EncryptedID `gorm:"column:comment_id" json:"comment_id"` } // ! Important not to serialize some fields!! type Feedback struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` UserID string `gorm:"column:user_id" json:"-"` Content string `gorm:"column:content" json:"content"` Type *FeedbackType `gorm:"foreignKey:TypeID" json:"type,omitempty"` // Use "omitempty" here - TypeID MaskedID `gorm:"column:type_id" json:"-"` // references the feedback_type table + TypeID EncryptedID `gorm:"column:type_id" json:"-"` // references the feedback_type table } type ReportType struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - Type string `gorm:"column:type" json:"type"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + Type string `gorm:"column:type" json:"type"` } func (ReportType) TableName() string { @@ -379,12 +342,12 @@ func (ReportType) TableName() string { } type FeedbackType struct { - ID MaskedID `gorm:"primary_key;column:id" json:"id"` - Type string `gorm:"column:type" json:"type"` + ID EncryptedID `gorm:"primary_key;column:id" json:"id"` + Type string `gorm:"column:type" json:"type"` } type YearOfStudy struct { - ID MaskedID `gorm:"primaryKey;column:id" json:"id"` + ID EncryptedID `gorm:"primaryKey;column:id" json:"id"` Name null.String `gorm:"column:name" json:"type"` } @@ -397,16 +360,16 @@ func (FeedbackType) TableName() string { } type HideLog struct { - ID MaskedID `gorm:"primaryKey;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - PostID *MaskedID `db:"post_id" gorm:"default:NULL" json:"-"` - Post *Post `gorm:"foreignKey:PostID" json:"post,omitempty"` // Use "omitempty" here - CommentID *MaskedID `db:"comment_id" gorm:"default:NULL" json:"-"` - Comment *Comment `gorm:"foreignKey:CommentID" json:"comment,omitempty"` // Use "omitempty" here - Reason string `gorm:"column:reason" json:"reason"` - Removed bool `gorm:"column:removed" json:"removed"` - UserID string `gorm:"column:user_id" json:"-"` + ID EncryptedID `gorm:"primaryKey;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + PostID *EncryptedID `db:"post_id" gorm:"default:NULL" json:"-"` + Post *Post `gorm:"foreignKey:PostID" json:"post,omitempty"` // Use "omitempty" here + CommentID *EncryptedID `db:"comment_id" gorm:"default:NULL" json:"-"` + Comment *Comment `gorm:"foreignKey:CommentID" json:"comment,omitempty"` // Use "omitempty" here + Reason string `gorm:"column:reason" json:"reason"` + Removed bool `gorm:"column:removed" json:"removed"` + UserID string `gorm:"column:user_id" json:"-"` } func (HideLog) TableName() string { @@ -415,23 +378,23 @@ func (HideLog) TableName() string { // ! Important not to serialize some fields!! type Report struct { - ID MaskedID `gorm:"primaryKey;column:id" json:"id"` - CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` - UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` - ReportedBy string `gorm:"column:reported_by" json:"-"` - Description string `gorm:"column:description" json:"description"` - TypeID MaskedID `gorm:"column:type_id" json:"-"` // references the report_type table - ReportType *ReportType `gorm:"foreignKey:TypeID" json:"report_type"` - Result *string `gorm:"column:result" json:"result"` // can be null - HasBeenRemoved bool `gorm:"column:has_been_removed" json:"has_been_removed"` - PostID *MaskedID `db:"post_id" gorm:"default:NULL" json:"-"` - Post *Post `gorm:"foreignKey:PostID" json:"post,omitempty"` // Use "omitempty" here - CommentID *MaskedID `db:"comment_id" gorm:"default:NULL" json:"-"` - Comment *Comment `gorm:"foreignKey:CommentID" json:"comment,omitempty"` // Use "omitempty" here + ID EncryptedID `gorm:"primaryKey;column:id" json:"id"` + CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt TimeMicros `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` + ReportedBy string `gorm:"column:reported_by" json:"-"` + Description string `gorm:"column:description" json:"description"` + TypeID EncryptedID `gorm:"column:type_id" json:"-"` // references the report_type table + ReportType *ReportType `gorm:"foreignKey:TypeID" json:"report_type"` + Result *string `gorm:"column:result" json:"result"` // can be null + HasBeenRemoved bool `gorm:"column:has_been_removed" json:"has_been_removed"` + PostID *EncryptedID `db:"post_id" gorm:"default:NULL" json:"-"` + Post *Post `gorm:"foreignKey:PostID" json:"post,omitempty"` // Use "omitempty" here + CommentID *EncryptedID `db:"comment_id" gorm:"default:NULL" json:"-"` + Comment *Comment `gorm:"foreignKey:CommentID" json:"comment,omitempty"` // Use "omitempty" here } type CronJob struct { - ID MaskedID `gorm:"primaryKey;column:id" json:"id"` + ID EncryptedID `gorm:"primaryKey;column:id" json:"id"` CreatedAt TimeMicros `gorm:"column:created_at;autoCreateTime" json:"created_at"` Ran datatypes.Date `gorm:"column:ran" json:"ran"` Type string `gorm:"column:type" json:"type"` diff --git a/features/admin/hide.go b/features/admin/hide.go index 4d3bbcc9..c24bea1c 100644 --- a/features/admin/hide.go +++ b/features/admin/hide.go @@ -47,11 +47,11 @@ func (h *handler) handleHideContent(c *gin.Context) { var table string if req.ContentType == "comment" { table = "comments" - hideLogEntry.CommentID = &db.MaskedID{Val: unmaskedContentId} + hideLogEntry.CommentID = &db.EncryptedID{Val: unmaskedContentId} commentOrPostIdMatcher = "comment_id" } else if req.ContentType == "post" { table = "posts" - hideLogEntry.PostID = &db.MaskedID{Val: unmaskedContentId} + hideLogEntry.PostID = &db.EncryptedID{Val: unmaskedContentId} commentOrPostIdMatcher = "post_id" } else { response.New(http.StatusBadRequest).Err(invalidValue.Error()).Send(c) diff --git a/features/admin/requests.http b/features/admin/requests.http index 1c7f5061..f32d1228 100644 --- a/features/admin/requests.http +++ b/features/admin/requests.http @@ -2,7 +2,7 @@ PATCH http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmw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VrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "standing": "banned", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOn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dmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "user_id": "sP1D8MZAQpZspd1O7tufLPBFq9v1" @@ -24,14 +24,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/admin/daily-hottest-cron?day=2023-08-03 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydW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kZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Manually trigger clear expired fcm tokens cron job # day format: YYYY-MM-DD for selecting when to run the cron job. POST http://127.0.0.1:8080/api/v1/admin/expire-fcm-tokens?day=2023-06-21 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC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6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### List the successfully ran cron jobs, by type @@ -40,7 +40,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/crons?next=1687422462194 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZ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x2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": 1689156632542916, @@ -51,13 +51,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/feedback/SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0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THbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Get Feedback List GET http://127.0.0.1:8080/api/v1/admin/feedback Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlx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_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": 1690284521701105 @@ -67,14 +67,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/report?id=SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_C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HKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### get all reports GET http://127.0.0.1:8080/api/v1/admin/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubY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M2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ +Authorization: Bearer eyJhbGciOiJSUzI1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080/api/v1/admin/reviewed-by-mod Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "content_type": "post", @@ -111,7 +111,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/comments-by-report Content-Type: application/json -Authorization: Bearer eyJ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iOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "purge_cache": true, @@ -124,7 +124,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/posts-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhM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sImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "purge_cache": true, @@ -137,7 +137,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-post Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQ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2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "post_id": "SOME MASK", @@ -149,7 +149,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-comment Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10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CJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "comment_id": "SOME MASK", diff --git a/features/auth/requests.http b/features/auth/requests.http index 8161c084..13cbbc55 100644 --- a/features/auth/requests.http +++ b/features/auth/requests.http @@ -15,7 +15,7 @@ Content-Type: application/json PATCH http://127.0.0.1:8080/api/v1/auth/update-email Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2U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G9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "email": "use0129384r@uvic.ca" @@ -25,13 +25,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ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LXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Send password reset email POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNp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E1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "email": "matthew@gmail.com" diff --git a/features/comments/create.go b/features/comments/create.go index 96ec3b5d..557e669c 100644 --- a/features/comments/create.go +++ b/features/comments/create.go @@ -116,7 +116,7 @@ func (h *handler) handleCreate(c *gin.Context) { // base comment comment := db.Comment{ UserID: token.UID, - PostID: db.MaskedID{Val: unmaskedPostId}, + PostID: db.EncryptedID{Val: unmaskedPostId}, Content: req.Content, } diff --git a/features/comments/requests.http b/features/comments/requests.http index 9a6d4f77..110de7af 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -3,7 +3,7 @@ POST http://127.0.0.1:8080/api/v1/comments/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2U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G9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "post_id": "DrKEMpzSzc2WfC7kUf6xKdm_", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eX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bS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "comment_id": "SOME MASK" @@ -25,10 +25,10 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/roots Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRyd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25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { - "post_id": "Cm1s4tq_LJhc9Kgbbx3DfbAY", + "post_id": "QMBtKsTIn6MzSp2ZoXyh1gwe", "sort": "new", "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8" @@ -38,7 +38,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/replies Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5Mj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jdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "parent_root": "SOME MASK", @@ -49,19 +49,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/comments/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2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ldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Fetch a comment by id GET http://127.0.0.1:8080/api/v1/comments/comment?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9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InVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Fetch your comments GET http://127.0.0.1:8080/api/v1/comments/your-comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1J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oxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": 168899127721647912 @@ -71,7 +71,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU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AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "comment_id": "SOME MASKED ID", diff --git a/features/drafts/requests.http b/features/drafts/requests.http index 5fc78b6d..dd925e00 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/drafts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MT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WZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "title": "next blah this is a title 5", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/drafts/your-drafts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzI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ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": 123123123123 @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/drafts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21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kBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "draft_id": "SOME MASKED ID", @@ -37,7 +37,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/drafts/delete Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnR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mlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "draft_id": "SOME MASKED ID" diff --git a/features/feedback/requests.http b/features/feedback/requests.http index b950bef9..7412fa73 100644 --- a/features/feedback/requests.http +++ b/features/feedback/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/feedback/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZ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0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "message": "WOAH THIS WAS SUCH AN AMAZING APP I CAN'T BELEIVE YOU DID IT!", diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index 71591060..4306251a 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -3,7 +3,7 @@ GET http://127.0.0.1:8080/api/v1/hide-log/your-hide-log Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7Iml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9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": 1689647419058834 @@ -14,4 +14,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOl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NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA diff --git a/features/notifications/requests.http b/features/notifications/requests.http index 15a0f430..201277d0 100644 --- a/features/notifications/requests.http +++ b/features/notifications/requests.http @@ -2,7 +2,7 @@ DELETE http://127.0.0.1:8080/api/v1/notifications/token Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5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qEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "token": "eUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -12,7 +12,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/notifications/token-uid Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWx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sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "token": "pd12dqUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -31,13 +31,13 @@ Content-Type: application/json GET http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzOD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kZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Set topic prefs PUT http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF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Ch_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "daily_hottest": true, diff --git a/features/posts/requests.http b/features/posts/requests.http index f7950a42..b4438138 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -2,10 +2,10 @@ POST http://127.0.0.1:8080/api/v1/posts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5f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EhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { - "title": "race condition test 8", + "title": "MY TEST DUDE", "body": "this is some body", "category": "events" } @@ -14,19 +14,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-04&profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ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VVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Fetch a post by id GET http://127.0.0.1:8080/api/v1/posts/post?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaH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35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Fetch posts GET http://127.0.0.1:8080/api/v1/posts/posts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTm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oRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "sort": "new", @@ -40,19 +40,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/posts/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYb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fMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Sentiment anaylsis for posts by ID GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBI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I5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": 1688460277629001 @@ -62,7 +62,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImN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sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "post_id": "SOME MASKED ID" @@ -72,11 +72,11 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5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2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { - "post_id": "SOME MASKED ID", - "title": "yo i guess boring anger", + "post_id": "yL6hmKItzvwAfEswClt2nVNj", + "title": "LUKES AGAIN", "body": "body ah" } diff --git a/features/reports/create.go b/features/reports/create.go index fd25bdfb..643241af 100644 --- a/features/reports/create.go +++ b/features/reports/create.go @@ -50,10 +50,10 @@ func (h *handler) handleCreateReport(c *gin.Context) { var modelMatcher interface{} report := db.Report{} if req.ContentType == "post" { - report.PostID = &db.MaskedID{Val: unmaskedId} + report.PostID = &db.EncryptedID{Val: unmaskedId} modelMatcher = &db.Post{} } else if req.ContentType == "comment" { - report.CommentID = &db.MaskedID{Val: unmaskedId} + report.CommentID = &db.EncryptedID{Val: unmaskedId} modelMatcher = &db.Comment{} } else { // should never happen... but to be defensive diff --git a/features/reports/requests.http b/features/reports/requests.http index b562b43c..80fb8daf 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/reports/report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmL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8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "content_id": "SOME MASKED ID", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTm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oRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": null @@ -25,6 +25,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/report?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2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CzUf1RlyZqjEBzWvgA diff --git a/features/saves/requests.http b/features/saves/requests.http index 48d4f089..713ee2bb 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/saves/save Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2L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Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/saves/unsave Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG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6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/postsain Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ +Authorization: Bearer eyJhbGciOiJS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api/v1/saves/comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "next": null diff --git a/features/saves/save.go b/features/saves/save.go index 4406a32a..a7249264 100644 --- a/features/saves/save.go +++ b/features/saves/save.go @@ -22,13 +22,13 @@ func (h *handler) saveContent(c *gin.Context, token *auth.Token, req validation. if req.ContentType == "post" { savedPost := db.SavedPost{ UserID: token.UID, - PostID: db.MaskedID{Val: unmaskedId}, + PostID: db.EncryptedID{Val: unmaskedId}, } err = h.db.Create(&savedPost).Error } else if req.ContentType == "comment" { savedComment := db.SavedComment{ UserID: token.UID, - CommentID: db.MaskedID{Val: unmaskedId}, + CommentID: db.EncryptedID{Val: unmaskedId}, } err = h.db.Create(&savedComment).Error } else { diff --git a/features/saves/unsave.go b/features/saves/unsave.go index 0f551c24..80155251 100644 --- a/features/saves/unsave.go +++ b/features/saves/unsave.go @@ -17,13 +17,13 @@ func (h *handler) unsaveContent(c *gin.Context, token *auth.Token, req validatio if req.ContentType == "post" { savedPost := db.SavedPost{ UserID: token.UID, - PostID: db.MaskedID{Val: unmaskedId}, + PostID: db.EncryptedID{Val: unmaskedId}, } err = h.db.Delete(&savedPost, "user_id = ? AND post_id = ?", savedPost.UserID, savedPost.PostID).Error } else if req.ContentType == "comment" { savedComment := db.SavedComment{ UserID: token.UID, - CommentID: db.MaskedID{Val: unmaskedId}, + CommentID: db.EncryptedID{Val: unmaskedId}, } err = h.db.Delete(&savedComment, "user_id = ? AND comment_id = ?", savedComment.UserID, savedComment.CommentID).Error } else { diff --git a/features/schools/get_schools_by_query.go b/features/schools/get_schools_by_query.go index 27461bbf..24596017 100644 --- a/features/schools/get_schools_by_query.go +++ b/features/schools/get_schools_by_query.go @@ -4,6 +4,7 @@ import ( "confesi/config" "confesi/lib/response" "confesi/lib/utils" + "fmt" "net/http" "github.com/gin-gonic/gin" @@ -47,11 +48,15 @@ func (h *handler) handleGetSchoolsByQuery(c *gin.Context) { // Execute the query with the search query as a parameter var schools []SchoolDetail - if err := h.DB.Raw(sqlQuery, token.UID, query, query, token.UID, query, query, config.QueryForSchoolsBySearchFloorSimilarityMatchValue, query, query, config.QueryForSchoolsBySearchPageSize).Scan(&schools).Error; err != nil { + if err := h.DB. + Raw(sqlQuery, token.UID, query, query, token.UID, query, query, config.QueryForSchoolsBySearchFloorSimilarityMatchValue, query, query, config.QueryForSchoolsBySearchPageSize). + Scan(&schools).Error; err != nil { response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c) return } + fmt.Println(schools) + // loop through schools for i := range schools { schoolDetail := &schools[i] diff --git a/features/schools/requests.http b/features/schools/requests.http index 160680df..8c700397 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -2,29 +2,29 @@ GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&school=uvicasdsad Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob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WgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&radius=5000 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIs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b2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Get a school by query GET http://127.0.0.1:8080/api/v1/schools/search?query=university&lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOn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jb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Watch a school POST http://127.0.0.1:8080/api/v1/schools/watch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOj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VU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "school_id": "SfQLOaiYKxo4OOVeYb5paos=" @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/unwatch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJ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iIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "school_id": "SOME MASKED ID" @@ -44,7 +44,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/watched?lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3Fp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3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "include_home_school": true @@ -54,10 +54,10 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/rank? Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaW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tY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { - "purge_cache": false, + "purge_cache": true, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "include_users_school": true, "start_view_date": "2023-07-05" @@ -67,11 +67,11 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQ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lhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Get a random school -GET http://127.0.0.1:8080/api/v1/schools/random?without-school=SOMEMASKEDID +GET http://127.0.0.1:8080/api/v1/schools/random?without-school=oXzuIl6Z-VACSogbQkOLVuo= Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdO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2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA diff --git a/features/schools/router.go b/features/schools/router.go index b2459e0d..563d8405 100644 --- a/features/schools/router.go +++ b/features/schools/router.go @@ -28,10 +28,10 @@ type handler struct { // value that gets sent back to client for each of their watched schools type SchoolDetail struct { - db.School - Home bool `json:"home"` - Watched bool `json:"watched"` - Distance *float64 `json:"distance"` + db.School `json:"school"` + Home bool `json:"home"` + Watched bool `json:"watched"` + Distance *float64 `json:"distance"` } type Coordinate struct { @@ -40,7 +40,6 @@ type Coordinate struct { radius float64 } -// todo: could use this in future: https://socketloop.com/tutorials/golang-find-location-by-ip-address-and-display-with-google-map // Algo from: // https://stackoverflow.com/a/365853 func (c *Coordinate) getDistance(dest db.School) float64 { diff --git a/features/schools/unwatch_school.go b/features/schools/unwatch_school.go index eccb5cc1..8ef2086d 100644 --- a/features/schools/unwatch_school.go +++ b/features/schools/unwatch_school.go @@ -15,7 +15,7 @@ import ( func (h *handler) unwatchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool, unmaskedId uint) error { school := db.SchoolFollow{ UserID: token.UID, - SchoolID: db.MaskedID{Val: unmaskedId}, + SchoolID: db.EncryptedID{Val: unmaskedId}, } err := h.DB.Delete(&school, "user_id = ? AND school_id = ?", school.UserID, school.SchoolID).Error if err != nil { diff --git a/features/schools/watch_school.go b/features/schools/watch_school.go index 0252caf6..7df2b5f0 100644 --- a/features/schools/watch_school.go +++ b/features/schools/watch_school.go @@ -17,7 +17,7 @@ import ( func (h *handler) watchSchool(c *gin.Context, token *auth.Token, req validation.WatchSchool, unmaskedId uint) error { school := db.SchoolFollow{ UserID: token.UID, - SchoolID: db.MaskedID{Val: unmaskedId}, + SchoolID: db.EncryptedID{Val: unmaskedId}, } err := h.DB.Create(&school).Error if err != nil { diff --git a/features/user/requests.http b/features/user/requests.http index a5ea3a7a..0203afaa 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -2,25 +2,25 @@ GET http://127.0.0.1:8080/api/v1/user/user Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5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MStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### get user standing GET http://127.0.0.1:8080/api/v1/user/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH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XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Clear user faculty DELETE http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDut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-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Set user faculty PATCH http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59W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NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MjAyMjAsInVzZXJfaWQiOiJyQm5LcERKS3FpZ05kNTNTY1JBQktIbXR3VGoxIiwic3ViIjoickJuS3BESktxaWdOZDUzU2NSQUJLSG10d1RqMSIsImlhdCI6MTY5MTcyMDIyMCwiZXhwIjoxNjkxNzIzODIwLCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.E5zknFo9migg0gWskE8pjIyQ5Ijx7zVCi29gQYvXyN3rr4LhJs2YCTOARB6golk_JaHH32gV6xFj1WFuH2Zm3FWNaqYWjD0JDlaS6IHtSAIUq1FlHv3D5uUJNdD_4OuRlIboR3O-_vNEGZlxH4AM51uWAmLgaJJmzxt041Ccnklbgh13AZ_CSDBXIuQ-8RCTmESbDutBVob27hYbVBokD1L1RHOte61U4nsQG5s8Zv2ctdut_RhINMThC_31Q2de_Qg1mm8sKQqEDNTXpXajoRVjXnpjULKIUA2LtjGUx-iTQBIFpmhlwj963xeNy9rkPubYDc8KG3jJ0x59Wgu4AQ +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA ### Set user year of study PATCH http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJ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Oi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "year_of_study": "One" @@ -47,7 +47,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/user/school Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ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LXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "school_id": "SOME MASKED ID" @@ -59,4 +59,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/user/user-stats Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5Mjk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dXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA diff --git a/features/votes/requests.http b/features/votes/requests.http index d527cdd7..309018d5 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -2,7 +2,7 @@ PUT http://127.0.0.1:8080/api/v1/votes/vote Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10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CJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA { "content_id": "SOME MASKED ID", diff --git a/features/votes/vote.go b/features/votes/vote.go index b8906f40..f29fe52f 100644 --- a/features/votes/vote.go +++ b/features/votes/vote.go @@ -238,9 +238,9 @@ func (h *handler) handleVote(c *gin.Context) { vote.UserID = token.UID vote.Vote = int(*req.Value) if req.ContentType == "post" { - vote.PostID = &db.MaskedID{Val: unmaskedId} + vote.PostID = &db.EncryptedID{Val: unmaskedId} } else if req.ContentType == "comment" { - vote.CommentID = &db.MaskedID{Val: unmaskedId} + vote.CommentID = &db.EncryptedID{Val: unmaskedId} } else { // should never happen with validated struct, but to be defensive response.New(http.StatusBadRequest).Err(fmt.Sprintf("invalid content type")).Send(c) From 6ab65ccf889973acfdde532f298dd17c365fc531 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 11 Aug 2023 00:26:33 -0700 Subject: [PATCH 09/10] fix: hotfix for redis syntax errors in NOT IN sql --- features/admin/requests.http | 30 +++++++++++----------- features/auth/requests.http | 6 ++--- features/comments/load_initial_comments.go | 11 +++++--- features/comments/requests.http | 18 ++++++------- features/drafts/requests.http | 8 +++--- features/feedback/requests.http | 2 +- features/hide_log/requests.http | 4 +-- features/notifications/requests.http | 8 +++--- features/posts/requests.http | 18 ++++++------- features/reports/requests.http | 6 ++--- features/saves/requests.http | 8 +++--- features/schools/requests.http | 20 +++++++-------- features/user/requests.http | 16 ++++++------ features/votes/requests.http | 2 +- 14 files changed, 81 insertions(+), 76 deletions(-) diff --git a/features/admin/requests.http b/features/admin/requests.http index f32d1228..cd8e5f69 100644 --- a/features/admin/requests.http +++ b/features/admin/requests.http @@ -2,7 +2,7 @@ PATCH http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ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HVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "standing": "banned", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYX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kZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "user_id": "sP1D8MZAQpZspd1O7tufLPBFq9v1" @@ -24,14 +24,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/admin/daily-hottest-cron?day=2023-08-03 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7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JwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Manually trigger clear expired fcm tokens cron job # day format: YYYY-MM-DD for selecting when to run the cron job. POST http://127.0.0.1:8080/api/v1/admin/expire-fcm-tokens?day=2023-06-21 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdml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-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### List the successfully ran cron jobs, by type @@ -40,7 +40,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/crons?next=1687422462194 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF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MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": 1689156632542916, @@ -51,13 +51,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/feedback/SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWy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61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Get Feedback List GET http://127.0.0.1:8080/api/v1/admin/feedback Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWs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KEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": 1690284521701105 @@ -67,14 +67,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/report?id=SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQH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R3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### get all reports GET http://127.0.0.1:8080/api/v1/admin/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA +Authorization: Bearer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4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "content_type": "post", @@ -99,7 +99,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/reviewed-by-mod Content-Type: application/json -Authorization: Bearer eyJhbGci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eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "content_type": "post", @@ -111,7 +111,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/comments-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4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lzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "purge_cache": true, @@ -124,7 +124,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/posts-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJ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NvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "purge_cache": true, @@ -137,7 +137,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-post Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6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XNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "post_id": "SOME MASK", @@ -149,7 +149,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-comment Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmN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TE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "comment_id": "SOME MASK", diff --git a/features/auth/requests.http b/features/auth/requests.http index 13cbbc55..9f4e0eeb 100644 --- a/features/auth/requests.http +++ b/features/auth/requests.http @@ -15,7 +15,7 @@ Content-Type: application/json PATCH http://127.0.0.1:8080/api/v1/auth/update-email Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWU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OiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "email": "use0129384r@uvic.ca" @@ -25,13 +25,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4u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3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Send password reset email POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQ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I6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "email": "matthew@gmail.com" diff --git a/features/comments/load_initial_comments.go b/features/comments/load_initial_comments.go index f2b62ad0..8a769295 100644 --- a/features/comments/load_initial_comments.go +++ b/features/comments/load_initial_comments.go @@ -31,9 +31,14 @@ const ( func fetchComments(postID uint, gm *gorm.DB, excludedIDs []string, sort string, uid string, h handler, c *gin.Context, commentSpecificKey string) ([]CommentThreadGroup, error) { var comments []CommentDetail - excludedIDQuery := "" + var possibleExclusion string if len(excludedIDs) > 0 { - excludedIDQuery = "AND comments.id NOT IN (" + strings.Join(excludedIDs, ",") + ")" + cleanedIds := make([]string, len(excludedIDs)) + for i, id := range excludedIDs { + cleanedIds[i] = strings.Trim(id, "{}") // remove curly braces + } + idsStr := strings.Join(cleanedIds, ", ") // convert the cleaned ids slice to a comma-separated string + possibleExclusion = "AND comments.id NOT IN ( " + idsStr + " )" } var sortField string @@ -54,7 +59,7 @@ func fetchComments(postID uint, gm *gorm.DB, excludedIDs []string, sort string, SELECT * FROM comments WHERE parent_root IS NULL AND post_id = ? - `+excludedIDQuery+` + `+possibleExclusion+` ORDER BY `+sortField+` LIMIT ? ), ranked_replies AS ( diff --git a/features/comments/requests.http b/features/comments/requests.http index 110de7af..67b19164 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -3,7 +3,7 @@ POST http://127.0.0.1:8080/api/v1/comments/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQby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0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "post_id": "DrKEMpzSzc2WfC7kUf6xKdm_", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1k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wF72uls4lTFvxvIiEmIEgVKbw { "comment_id": "SOME MASK" @@ -25,12 +25,12 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/roots Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn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p2ZoXyh1gwe", "sort": "new", - "purge_cache": true, + "purge_cache": false, "session_key": "6ba7b810-9dad-11d1-80b4-00c04fd430c8" } @@ -38,7 +38,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/replies Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPr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lTFvxvIiEmIEgVKbw { "parent_root": "SOME MASK", @@ -49,19 +49,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/comments/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL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EmIEgVKbw ### Fetch a comment by id GET http://127.0.0.1:8080/api/v1/comments/comment?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Fetch your comments GET http://127.0.0.1:8080/api/v1/comments/your-comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4Z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zcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": 168899127721647912 @@ -71,7 +71,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJK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vbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "comment_id": "SOME MASKED ID", diff --git a/features/drafts/requests.http b/features/drafts/requests.http index dd925e00..44d4dfb1 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/drafts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnR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WQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "title": "next blah this is a title 5", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/drafts/your-drafts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9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dXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": 123123123123 @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/drafts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiL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drSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "draft_id": "SOME MASKED ID", @@ -37,7 +37,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/drafts/delete Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJh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3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "draft_id": "SOME MASKED ID" diff --git a/features/feedback/requests.http b/features/feedback/requests.http index 7412fa73..600f6a0e 100644 --- a/features/feedback/requests.http +++ b/features/feedback/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/feedback/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZ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MZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "message": "WOAH THIS WAS SUCH AN AMAZING APP I CAN'T BELEIVE YOU DID IT!", diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index 4306251a..5f9f689f 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -3,7 +3,7 @@ GET http://127.0.0.1:8080/api/v1/hide-log/your-hide-log Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMz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5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": 1689647419058834 @@ -14,4 +14,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp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TY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw diff --git a/features/notifications/requests.http b/features/notifications/requests.http index 201277d0..6b3818fb 100644 --- a/features/notifications/requests.http +++ b/features/notifications/requests.http @@ -2,7 +2,7 @@ DELETE http://127.0.0.1:8080/api/v1/notifications/token Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVox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2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "token": "eUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -12,7 +12,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/notifications/token-uid Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLC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wic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "token": "pd12dqUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -31,13 +31,13 @@ Content-Type: application/json GET http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXN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sInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Set topic prefs PUT http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1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xNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "daily_hottest": true, diff --git a/features/posts/requests.http b/features/posts/requests.http index b4438138..9e8ca4af 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/posts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGx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wuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "title": "MY TEST DUDE", @@ -14,19 +14,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-04&profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3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iOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Fetch a post by id GET http://127.0.0.1:8080/api/v1/posts/post?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIj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iOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Fetch posts GET http://127.0.0.1:8080/api/v1/posts/posts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDV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Ya7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "sort": "new", @@ -40,19 +40,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/posts/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJ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_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Sentiment anaylsis for posts by ID GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0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dYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Fetch your posts GET http://127.0.0.1:8080/api/v1/posts/your-posts Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxY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Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "post_id": "yL6hmKItzvwAfEswClt2nVNj", diff --git a/features/reports/requests.http b/features/reports/requests.http index 80fb8daf..8043ae06 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/reports/report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtp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5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": null @@ -25,6 +25,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/report?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtp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eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw diff --git a/features/saves/requests.http b/features/saves/requests.http index 713ee2bb..db588b79 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/saves/save Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMm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G9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "content_id": "SOME MASKED ID", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/saves/unsave Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6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lci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "content_id": "SOME MASKED ID", @@ -24,7 +24,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/postsain Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2Vj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YiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": null @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJ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SUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "next": null diff --git a/features/schools/requests.http b/features/schools/requests.http index 8c700397..060b93f7 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -2,29 +2,29 @@ GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&school=uvicasdsad Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJ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ic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&radius=5000 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMi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wiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW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zd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Get a school by query GET http://127.0.0.1:8080/api/v1/schools/search?query=university&lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ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zlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Watch a school POST http://127.0.0.1:8080/api/v1/schools/watch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8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FIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "school_id": "SfQLOaiYKxo4OOVeYb5paos=" @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/unwatch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWs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KEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "school_id": "SOME MASKED ID" @@ -44,7 +44,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/watched?lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjn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CjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "include_home_school": true @@ -54,7 +54,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/rank? Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8Q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ge_cache": true, @@ -67,11 +67,11 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxY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.1:8080/api/v1/schools/random?without-school=oXzuIl6Z-VACSogbQkOLVuo= Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrIWyoWE6i-7u0_uBQzGEVVU2eqEhZhtfSHjx2yDw_tuV9LqP_-ErdJBz1ivsiLQ0DVgTHbAI_l9KVNKhicjWUeJTok0Pe-nor214aTf95Cr1b6MnC8Fr4DbJ35XxMokLnzs-BFCMWsyhZvsdHyRhR4H7EFxRbQbyjnDAaGVfa9AFpQHegA9sK9l1kD5iOPrz83SHSlvL_Gc2Q4bR8QluGXxMLRfFVwxYOJUn31_3BHKOC62ZWMfDeXIoRiP-UQWgaxfMUE1_YmPf9Vw5c9baNujR8yJdkCzUf1RlyZqjEBzWvgA +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw diff --git a/features/user/requests.http b/features/user/requests.http index 0203afaa..60180d04 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -2,25 +2,25 @@ GET http://127.0.0.1:8080/api/v1/user/user Content-Type: application/json -Authorization: Bearer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QiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### get user standing GET http://127.0.0.1:8080/api/v1/user/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsIm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Jjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Clear user faculty DELETE http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3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xWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Set user faculty PATCH http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXh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sImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "faculty": "ENG" @@ -30,14 +30,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25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sibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw ### Set user year of study PATCH http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJv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RFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "year_of_study": "One" @@ -47,7 +47,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/user/school Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_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qtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "school_id": "SOME MASKED ID" @@ -59,4 +59,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/user/user-stats Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNz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yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw diff --git a/features/votes/requests.http b/features/votes/requests.http index 309018d5..2abf5e75 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -2,7 +2,7 @@ PUT http://127.0.0.1:8080/api/v1/votes/vote Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3MzMzNzgsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczMzM3OCwiZXhwIjoxNjkxNzM2OTc4LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.Qu0ZF8XtoybtGxXJ_NLDVCh_QdsrMStOjf8eJSlrI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OZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw { "content_id": "SOME MASKED ID", From d3a661bd96c23f3540625e60232a4d143e6512f7 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 11 Aug 2023 07:03:20 -0700 Subject: [PATCH 10/10] chore: savepoint --- features/admin/requests.http | 30 +++++++++++++-------------- features/auth/requests.http | 6 +++--- features/comments/requests.http | 16 +++++++------- features/drafts/requests.http | 8 +++---- features/feedback/requests.http | 2 +- features/hide_log/requests.http | 4 ++-- features/notifications/requests.http | 8 +++---- features/posts/requests.http | 18 ++++++++-------- features/reports/requests.http | 6 +++--- features/saves/requests.http | 8 +++---- features/schools/get_random_school.go | 18 ++++++++++------ features/schools/requests.http | 20 +++++++++--------- features/user/requests.http | 16 +++++++------- features/votes/requests.http | 4 ++-- 14 files changed, 85 insertions(+), 79 deletions(-) diff --git a/features/admin/requests.http b/features/admin/requests.http index cd8e5f69..f6e7ca20 100644 --- a/features/admin/requests.http +++ b/features/admin/requests.http @@ -2,7 +2,7 @@ PATCH http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVz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ImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "standing": "banned", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic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pbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "user_id": "sP1D8MZAQpZspd1O7tufLPBFq9v1" @@ -24,14 +24,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/admin/daily-hottest-cron?day=2023-08-03 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3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2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Manually trigger clear expired fcm tokens cron job # day format: YYYY-MM-DD for selecting when to run the cron job. POST http://127.0.0.1:8080/api/v1/admin/expire-fcm-tokens?day=2023-06-21 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJl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OnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### List the successfully ran cron jobs, by type @@ -40,7 +40,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/crons?next=1687422462194 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIi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C5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": 1689156632542916, @@ -51,13 +51,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/feedback/SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIj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d29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Get Feedback List GET http://127.0.0.1:8080/api/v1/admin/feedback Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwph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GAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": 1690284521701105 @@ -67,14 +67,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/report?id=SOMEMASK Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB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CkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### get all reports GET http://127.0.0.1:8080/api/v1/admin/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9p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vrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "type": "all", @@ -85,7 +85,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKE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99,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/admin/reviewed-by-mod Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1g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ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/comments-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw +Authorization: Bearer eyJhbGciOiJSUzI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/v1/admin/posts-by-report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "purge_cache": true, @@ -137,7 +137,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-post Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1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b2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "post_id": "SOME MASK", @@ -149,7 +149,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/admin/reports-for-comment Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1O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8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "comment_id": "SOME MASK", diff --git a/features/auth/requests.http b/features/auth/requests.http index 9f4e0eeb..410f1e94 100644 --- a/features/auth/requests.http +++ b/features/auth/requests.http @@ -15,7 +15,7 @@ Content-Type: application/json PATCH http://127.0.0.1:8080/api/v1/auth/update-email Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI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yb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "email": "use0129384r@uvic.ca" @@ -25,13 +25,13 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4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HBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Send password reset email POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS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XJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "email": "matthew@gmail.com" diff --git a/features/comments/requests.http b/features/comments/requests.http index 67b19164..08609589 100644 --- a/features/comments/requests.http +++ b/features/comments/requests.http @@ -3,7 +3,7 @@ POST http://127.0.0.1:8080/api/v1/comments/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNl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wic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "post_id": "DrKEMpzSzc2WfC7kUf6xKdm_", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUi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VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "comment_id": "SOME MASK" @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/roots Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjF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wIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "post_id": "QMBtKsTIn6MzSp2ZoXyh1gwe", @@ -38,7 +38,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/comments/replies Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViI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6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "parent_root": "SOME MASK", @@ -49,19 +49,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/comments/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJU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xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Fetch a comment by id GET http://127.0.0.1:8080/api/v1/comments/comment?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdm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NpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Fetch your comments GET http://127.0.0.1:8080/api/v1/comments/your-comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.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IPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": 168899127721647912 @@ -71,7 +71,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/comments/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6M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USaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "comment_id": "SOME MASKED ID", diff --git a/features/drafts/requests.http b/features/drafts/requests.http index 44d4dfb1..baabb98c 100644 --- a/features/drafts/requests.http +++ b/features/drafts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/drafts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvN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Yov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "title": "next blah this is a title 5", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/drafts/your-drafts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_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vDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": 123123123123 @@ -25,7 +25,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/drafts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJk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9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "draft_id": "SOME MASKED ID", @@ -37,7 +37,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/drafts/delete Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFX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LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "draft_id": "SOME MASKED ID" diff --git a/features/feedback/requests.http b/features/feedback/requests.http index 600f6a0e..a3fa4bb5 100644 --- a/features/feedback/requests.http +++ b/features/feedback/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/feedback/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIx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PSPCw { "message": "WOAH THIS WAS SUCH AN AMAZING APP I CAN'T BELEIVE YOU DID IT!", diff --git a/features/hide_log/requests.http b/features/hide_log/requests.http index 5f9f689f..6c836310 100644 --- a/features/hide_log/requests.http +++ b/features/hide_log/requests.http @@ -3,7 +3,7 @@ GET http://127.0.0.1:8080/api/v1/hide-log/your-hide-log Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEb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UIXJuPSPCw { "next": 1689647419058834 @@ -14,4 +14,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/hide-log/hide-log?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jY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ications/requests.http index 6b3818fb..4717bcbb 100644 --- a/features/notifications/requests.http +++ b/features/notifications/requests.http @@ -2,7 +2,7 @@ DELETE http://127.0.0.1:8080/api/v1/notifications/token Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFv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LLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -12,7 +12,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT POST http://127.0.0.1:8080/api/v1/notifications/token-uid Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVT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i8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "token": "pd12dqUMvIr2LwUunrtBhcWE0dQ:APA91bHA7wxFCx7xNNAJyR07XGw3cuzXcmU3MvjX4IC4-_KLLK0G5I8ZPXvR_i8lVk2h14REe8DzM7C64o-CSbBawLXTTjsdaJCL0NvuXTaJn95QZUujt7yuyhkGr5gashoV9DwiErLJ" @@ -31,13 +31,13 @@ Content-Type: application/json GET http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJ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F9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Set topic prefs PUT http://127.0.0.1:8080/api/v1/notifications/topic-prefs Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "daily_hottest": true, diff --git a/features/posts/requests.http b/features/posts/requests.http index 9e8ca4af..705c2a87 100644 --- a/features/posts/requests.http +++ b/features/posts/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/posts/create Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw +Authorization: Bearer ey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T GET http://127.0.0.1:8080/api/v1/posts/hottest?day=2023-08-04&profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Fetch a post by id GET http://127.0.0.1:8080/api/v1/posts/post?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzk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I6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Fetch posts GET http://127.0.0.1:8080/api/v1/posts/posts?profanity=false Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2x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NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "sort": "new", @@ -40,19 +40,19 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/posts/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLX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DdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Sentiment anaylsis for posts by ID GET http://127.0.0.1:8080/api/v1/posts/sentiment?id=TqGRLQZ-BRO5ieESwaRA7Hf0 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJES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Tc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Fetch your posts GET http://127.0.0.1:8080/api/v1/posts/your-posts Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbC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1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": 1688460277629001 @@ -62,7 +62,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/hide Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZ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5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "post_id": "SOME MASKED ID" @@ -72,7 +72,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/posts/edit Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOns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u9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "post_id": "yL6hmKItzvwAfEswClt2nVNj", diff --git a/features/reports/requests.http b/features/reports/requests.http index 8043ae06..6b672f7b 100644 --- a/features/reports/requests.http +++ b/features/reports/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/reports/report Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbW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OHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "content_id": "SOME MASKED ID", @@ -15,7 +15,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/reports Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd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Ip18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": null @@ -25,6 +25,6 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/reports/report?id=SOMEMASKEDID Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7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VgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw diff --git a/features/saves/requests.http b/features/saves/requests.http index db588b79..2714fca3 100644 --- a/features/saves/requests.http +++ b/features/saves/requests.http @@ -2,7 +2,7 @@ POST http://127.0.0.1:8080/api/v1/saves/save Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1Mvvp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ZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "content_id": "SOME MASKED ID", @@ -13,7 +13,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/saves/unsave Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzAT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3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "content_id": "SOME MASKED ID", @@ -24,7 +24,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/postsain Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOM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q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "next": null @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/saves/comments Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgew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XJuPSPCw { "next": null diff --git a/features/schools/get_random_school.go b/features/schools/get_random_school.go index d2abcbf1..894c2583 100644 --- a/features/schools/get_random_school.go +++ b/features/schools/get_random_school.go @@ -11,13 +11,19 @@ import ( ) func (h *handler) handleGetRandomSchool(c *gin.Context) { + schoolDetail := SchoolDetail{} withoutSchoolId := c.Query("without-school") - unmaskedId, err := encryption.Unmask(withoutSchoolId) - if err != nil { - response.New(http.StatusBadRequest).Err("invalid id").Send(c) - return + + var unmaskedId *uint + if withoutSchoolId != "" { + unmasked, err := encryption.Unmask(withoutSchoolId) + unmaskedId = &unmasked + if err != nil { + response.New(http.StatusBadRequest).Err("invalid id").Send(c) + return + } } token, err := utils.UserTokenFromContext(c) @@ -43,7 +49,7 @@ func (h *handler) handleGetRandomSchool(c *gin.Context) { ` // modify the query if without-school parameter is provided - if unmaskedId > 0 { + if unmaskedId != nil { query += "WHERE s.id != ?" } @@ -52,7 +58,7 @@ func (h *handler) handleGetRandomSchool(c *gin.Context) { // prepare arguments for the query args := []interface{}{token.UID, token.UID} - if unmaskedId > 0 { + if unmaskedId != nil { args = append(args, unmaskedId) } diff --git a/features/schools/requests.http b/features/schools/requests.http index 060b93f7..6b11125e 100644 --- a/features/schools/requests.http +++ b/features/schools/requests.http @@ -2,29 +2,29 @@ GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&school=uvicasdsad Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp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iZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10&radius=5000 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx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OlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### GET http://127.0.0.1:8080/api/v1/schools?offset=1&limit=10 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW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agh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Get a school by query GET http://127.0.0.1:8080/api/v1/schools/search?query=university&lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNi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ov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Watch a school POST http://127.0.0.1:8080/api/v1/schools/watch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_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MPrT3PKTHtV8FUIXJuPSPCw { "school_id": "SfQLOaiYKxo4OOVeYb5paos=" @@ -34,7 +34,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/unwatch Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0B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id": "SOME MASKED ID" @@ -44,7 +44,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/watched?lat=48.465900&long=-123.328652 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97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bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/schools/rank? Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgV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TQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/schools/purge?session-key=6ba7b810-9dad-11d1-80b4-00c04fd430c8 Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJDWAhjI-FHAxyJkCUMVYAvFpSrOMsmu7svnrFbp7oWnv-if3QH1k7ZFXq9pOlaVTdYe84X_cVGjk_K_ehBEbgewFIxolRrAa2J0BJI68L1tXky_etgyKEo7jYeuV29h4-97Kd0zuYF0SCjlvFe4L9mqPuR3rbHR1gAwF72uls4lTFvxvIiEmIEgVKbw +Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Get a random school GET http://127.0.0.1:8080/api/v1/schools/random?without-school=oXzuIl6Z-VACSogbQkOLVuo= Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsIm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yI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw diff --git a/features/user/requests.http b/features/user/requests.http index 60180d04..7f382f54 100644 --- a/features/user/requests.http +++ b/features/user/requests.http @@ -2,25 +2,25 @@ GET http://127.0.0.1:8080/api/v1/user/user Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiL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NvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3NTg4NjksInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### get user standing GET http://127.0.0.1:8080/api/v1/user/user-standing Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZ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ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTc1ODg2OSwiZXhwIjoxNjkxNzYyNDY5LCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Clear user faculty DELETE http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5Vnlq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tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Set user faculty PATCH http://127.0.0.1:8080/api/v1/user/faculty Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlI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zd29yZCJ9fQ.AsMgSgkPu9P6Y2MVOYHh1CkcVdCBqyFbkm3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "faculty": "ENG" @@ -30,14 +30,14 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT DELETE http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbk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km3sOHlvCbC2JHENV2gADbjY-VMagh0BSL7Ez8COIjO3Y8yliaTIp18Lm6_K4cIPwWDOZ7PtAU6YS7XBQ-x6f82xlgckGAhVgNtt7PLKTqTiXUSaqwq_h9wIZ08Q7igAIBDUCkLKoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw ### Set user year of study PATCH http://127.0.0.1:8080/api/v1/user/year-of-study Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQ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KoWMUA659DYov_CdB1UFiN9BZvJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "year_of_study": "One" @@ -47,7 +47,7 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT PATCH http://127.0.0.1:8080/api/v1/user/school Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_y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Skg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { "school_id": "SOME MASKED ID" @@ -59,4 +59,4 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OT GET http://127.0.0.1:8080/api/v1/user/user-stats Content-Type: application/json X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1Mvvpa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vJEJ5CUmj93o5LRL9MyLUxvDgs1fSkg9Sd1ioZady3egGkgo2qeiI-pJ_S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw diff --git a/features/votes/requests.http b/features/votes/requests.http index 2abf5e75..f01437b1 100644 --- a/features/votes/requests.http +++ b/features/votes/requests.http @@ -2,10 +2,10 @@ PUT http://127.0.0.1:8080/api/v1/votes/vote Content-Type: application/json -Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImNmM2I1YWRhM2NhMzkxNTQ4ZDM1OTJiMzU5MjkyM2UzNjAxMmI5MTQiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE2OTE3Mzg2NDMsInVzZXJfaWQiOiJESDdrSUlQRHp5WjFZVTlWeWowd0xkbE1ya1AyIiwic3ViIjoiREg3a0lJUER6eVoxWVU5VnlqMHdMZGxNcmtQMiIsImlhdCI6MTY5MTczODY0MywiZXhwIjoxNjkxNzQyMjQzLCJlbWFpbCI6Imx1a2VtY2xlb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibHVrZW1jbGVvbkBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.FQlxOTtMKxjHNHGZQkkFhLYZk7dGwphQ7_fX0aRMsuMhw6MDaJlqne9gRFG-e5wIjE-dnwB1yQS0tV5OvNiXWw0Sx1MvvpaxRSQJzlqtGYYa7FGrpibS9_nIxp_yESROOZ61yfoqzATsVZc0yLYewbHRpAeJ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S6y0DNjjJ0GnF9B82JPDO0jeYw3q06Pl60ruaPD6NWueZRVZSbuCEY7_LNZvrbWwi8vwMnMPrT3PKTHtV8FUIXJuPSPCw { - "content_id": "SOME MASKED ID", + "content_id": "tfEJ3VdHPTZ_jbWfG_6XVAYl", "value": 1, "content_type": "post" } \ No newline at end of file