@@ -357,6 +357,65 @@ paths:
357357 message :
358358 type : string
359359 example : Report created on user {email_adress}.
360+ /profile/view/{uid} :
361+ get :
362+ summary : View a profile
363+ operationId : viewProfile
364+ tags :
365+ - Profile
366+ parameters :
367+ - name : uid
368+ in : path
369+ required : true
370+ description : The id of the user to view. Either username, email or id
371+ schema :
372+ type : string
373+ responses :
374+ " 404 " :
375+ $ref : ' #/components/responses/NotFound'
376+ " 200 " :
377+ description : Returned user to view
378+ content :
379+ application/json :
380+ schema :
381+ type : object
382+ properties :
383+ success :
384+ type : boolean
385+ description : If the request is a success
386+ example : true
387+ code :
388+ type : integer
389+ description : The status code
390+ example : 200
391+ profile :
392+ $ref : ' #/components/schemas/User'
393+ /profile/views :
394+ get :
395+ summary : Get your profile views
396+ operationId : getProfileViews
397+ tags :
398+ - Profile
399+ responses :
400+ " 200 " :
401+ description : Returned list of views
402+ content :
403+ application/json :
404+ schema :
405+ type : object
406+ properties :
407+ success :
408+ type : boolean
409+ description : If the request is a success
410+ example : true
411+ code :
412+ type : integer
413+ description : The status code
414+ example : 200
415+ views :
416+ type : array
417+ items :
418+ $ref : ' #/components/schemas/View'
360419
361420servers :
362421 - url : https://api.matcha.com
@@ -531,13 +590,15 @@ components:
531590 gender :
532591 type : string
533592 enum : ["male", "female", "other"]
593+ example : other
534594 birthdate :
535595 type : date
536596 example : 06/04/1998
537597 description : Formatted as DAY/MONTH/YEAR
538598 orientation :
539599 type : string
540600 enum : ["heterosexual", "homosexual", "bisexual", "other"]
601+ example : heterosexual
541602 bio :
542603 type : string
543604 example : I like running around on horses
@@ -559,13 +620,15 @@ components:
559620 gender :
560621 type : string
561622 enum : ["male", "female", "other"]
623+ example : male
562624 birthdate :
563625 type : date
564626 example : 06/04/1998
565627 description : Formatted as DAY/MONTH/YEAR
566628 orientation :
567629 type : string
568630 enum : ["heterosexual", "homosexual", "bisexual", "other"]
631+ example : other
569632 bio :
570633 type : string
571634 example : I like running around on horses
@@ -578,6 +641,185 @@ components:
578641 reason :
579642 type : string
580643 enum : ["harassment", "bot", "spam", "inappropriate content"]
644+ example : spam
581645 details :
582646 type : string
583647 example : He spammed me of dick pics
648+ # TODO: Add descriptions
649+ User :
650+ type : object
651+ properties :
652+ id :
653+ type : integeer
654+ example : 1
655+ first_name :
656+ type : string
657+ example : Foo
658+ last_name :
659+ type : string
660+ example : Bar
661+ username :
662+ type : string
663+ example : FooBar
664+ email :
665+ type : string
666+ example : foo@example.org
667+ bio :
668+ type : string
669+ example : Lorem Ipsum is the single greatest threat. We are not - we are not keeping up with other websites. Lorem Ipsum best not make any more threats to your website. It will be met with fire and fury like the world has never seen. Does everybody know that pig named Lorem Ipsum? An ‘extremely credible source’ has called my office and told me that Barack Obama’s placeholder text is a fraud.
670+ birthdate :
671+ type : date
672+ example : Mon, 06 Apr 1998 00:00:00 GMT
673+ gender :
674+ type : string
675+ enum : ["male", "female", "other"]
676+ example : male
677+ orientation :
678+ type : string
679+ enum : [ "heterosexual", "homosexual", "bisexual", "other" ]
680+ example : heterosexual
681+ geohash :
682+ type : string
683+ example : u09whv25xgzn
684+ heat_score :
685+ type : integer
686+ example : 123
687+ confirmed_on :
688+ type : date
689+ example : Wed, 16 Sep 2020 15:20:02 GMT
690+ date_joined :
691+ type : date
692+ example : Wed, 16 Sep 2020 15:18:02 GMT
693+ date_lastseen :
694+ type : date
695+ example : Wed, 19 Sep 2020 19:24:02 GMT
696+ is_confirmed :
697+ type : boolean
698+ example : true
699+ is_online :
700+ type : boolean
701+ example : true
702+ is_profile_completed :
703+ type : boolean
704+ example : true
705+ likes :
706+ type : object
707+ properties :
708+ sent :
709+ type : array
710+ items :
711+ $ref : ' #/components/schemas/Like'
712+ uniqueItems : true
713+ received :
714+ type : array
715+ items :
716+ $ref : ' #/components/schemas/Like'
717+ uniqueItems : true
718+ reports :
719+ type : object
720+ properties :
721+ sent :
722+ type : array
723+ items :
724+ $ref : ' #/components/schemas/Report'
725+ uniqueItems : true
726+ received :
727+ type : array
728+ items :
729+ $ref : ' #/components/schemas/Report'
730+ uniqueItems : true
731+ tags :
732+ type : array
733+ items :
734+ $ref : ' #/components/schemas/Tag'
735+ uniqueItems : true
736+ Like :
737+ type : object
738+ properties :
739+ dt_liked :
740+ type : date
741+ example : Wed, 16 Sep 2020 15:38:15 GMT
742+ description : When was the like created
743+ id :
744+ type : integer
745+ example : 1
746+ description : The unique identifier of the like
747+ is_superlike :
748+ type : boolean
749+ example : false
750+ description : Is this like a superlike
751+ liked_id :
752+ type : integer
753+ example : 1
754+ description : The user id of the person who was liked
755+ liker_id :
756+ type : integer
757+ example : 2
758+ description : The user id of the person who liked
759+ Report :
760+ type : object
761+ properties :
762+ id :
763+ type : integer
764+ example : 1
765+ description : The unique identifier of the report
766+ reporter_id :
767+ type : integer
768+ example : 2
769+ description : The user id of who reported
770+ reported_id :
771+ type : integer
772+ example : 3
773+ description : The user id of who was reported
774+ dt_reported :
775+ type : date
776+ example : Wed, 16 Sep 2020 15:38:15 GMT
777+ description : When was the report created
778+ details :
779+ type : string
780+ example : He is spamming me
781+ description : The report detail
782+ reason :
783+ type : string
784+ enum : ['harassment', 'bot', 'spam', 'inappropriate content']
785+ example : spam
786+ description : Type of report
787+ status :
788+ type : string
789+ enum : ['processing request', 'insufficient evidence', 'convicted and banned']
790+ example : processing request
791+ description : The status of the report
792+ Tag :
793+ type : object
794+ properties :
795+ id :
796+ type : integer
797+ example : 1
798+ description : Unique identifier of this tag
799+ name :
800+ type : string
801+ example : Food
802+ description : The tag content
803+ user_id :
804+ type : string
805+ example : 1
806+ description : The user id to who belongs the tag
807+ View :
808+ type : object
809+ properties :
810+ id :
811+ type : integer
812+ example : 1
813+ description : Unique identifier of this tag
814+ dt_seeen :
815+ type : date
816+ example : Thu, 17 Sep 2020 00:00:00 GMT
817+ description : When was the profile seen
818+ profile_id :
819+ type : integer
820+ example : 2
821+ description : The user id of the profile that was viewed
822+ viewer_id :
823+ type : string
824+ example : 3
825+ description : The user id to who viewed the profile
0 commit comments