You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/auth.v1.yaml
+154-1Lines changed: 154 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -405,7 +405,7 @@ paths:
405
405
get:
406
406
operationId: VerifyDeviceToken
407
407
summary: Verify Device Token
408
-
description: "Checks the validity of Apple's DeviceCheck token by calling Apple's server to verify it. For more details, see Apple's [developer documentation](https://developer.apple.com/documentation/devicecheck)."
408
+
description: 'Checks the validity of Apple''s DeviceCheck token by calling Apple''s server to verify it. For more details, see Apple''s [developer documentation](https://developer.apple.com/documentation/devicecheck).'
description: Retrieves the list of all different consent types and their content. By default returns only the latest version for each consent type. This can be override by setting the `version` query parameter to `all`
696
+
requestBody:
697
+
content: {}
698
+
parameters:
699
+
- schema:
700
+
type: string
701
+
enum:
702
+
- latest
703
+
- all
704
+
default: latest
705
+
in: query
706
+
name: version
707
+
description: Whether to return all versions or only the most recent one.
708
+
parameters: []
709
+
'/v1/consents/{type}':
710
+
parameters:
711
+
- schema:
712
+
type: string
713
+
name: type
714
+
in: path
715
+
required: true
716
+
get:
717
+
summary: Get Latest Consent By Type
718
+
tags: []
719
+
responses:
720
+
'200':
721
+
description: OK
722
+
content:
723
+
application/json:
724
+
schema:
725
+
$ref: ./auth/models/consent/consent.v1.yaml
726
+
operationId: GetLatestConsentByType
727
+
description: Returns the latest consent version for the given type
728
+
'/v1/consent/{type}/versions':
729
+
parameters:
730
+
- schema:
731
+
type: string
732
+
name: type
733
+
in: path
734
+
required: true
735
+
get:
736
+
summary: Get Consent Versions
737
+
tags: []
738
+
responses:
739
+
'200':
740
+
description: OK
741
+
content:
742
+
application/json:
743
+
schema:
744
+
$ref: ./auth/models/consent/consents.v1.yaml
745
+
operationId: GetConentVersions
746
+
description: Returns a list of all consent versions for a given type
747
+
'/v1/users/{userId}/consents':
748
+
parameters:
749
+
- schema:
750
+
type: string
751
+
name: userId
752
+
in: path
753
+
required: true
754
+
get:
755
+
summary: Get User Consent Records
756
+
tags: []
757
+
responses:
758
+
'200':
759
+
description: OK
760
+
content:
761
+
application/json:
762
+
schema:
763
+
$ref: ./auth/models/consent/records.v1.yaml
764
+
operationId: GetUserConsentRecords
765
+
description: Returns a list of all user consent records. By default only the most recent consent record for a given consent type will be returned. This can be overriden by setting the `version` query parameter to `all`.
766
+
parameters:
767
+
- schema:
768
+
type: string
769
+
enum:
770
+
- latest
771
+
- all
772
+
default: latest
773
+
in: query
774
+
name: version
775
+
description: Whether to return all versions or only the most recent one.
776
+
- schema:
777
+
type: string
778
+
in: query
779
+
name: type
780
+
post:
781
+
summary: Create User Consent Record
782
+
operationId: CreateUserConsentRecord
783
+
responses:
784
+
'201':
785
+
description: Created
786
+
content:
787
+
application/json:
788
+
schema:
789
+
$ref: ./auth/models/consent/record.v1.yaml
790
+
description: Creates a user consent record
791
+
requestBody:
792
+
content:
793
+
application/json:
794
+
schema:
795
+
$ref: ./auth/models/consent/recordcreate.v1.yaml
796
+
'/v1/users/{userId}/consents/{recordId}':
797
+
parameters:
798
+
- schema:
799
+
type: string
800
+
name: userId
801
+
in: path
802
+
required: true
803
+
- schema:
804
+
type: string
805
+
name: recordId
806
+
in: path
807
+
required: true
808
+
get:
809
+
summary: Get User Consent Record
810
+
tags: []
811
+
responses:
812
+
'200':
813
+
description: OK
814
+
content:
815
+
application/json:
816
+
schema:
817
+
$ref: ./auth/models/consent/record.v1.yaml
818
+
operationId: GetUserConsentRecord
819
+
description: Retrieves a consent record by ID for a given user.
0 commit comments