-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): create new methods (#974)
- Loading branch information
1 parent
9281022
commit 80724c1
Showing
10 changed files
with
366 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
delete: | ||
tags: | ||
- profiles | ||
operationId: deleteUserProfile | ||
description: Delete all data and predictions associated with an authenticated user (userID) or an anonymous user (cookieID, sessionID). | ||
summary: Delete user profile. | ||
parameters: | ||
- $ref: '../../common/parameters.yml#/userID' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
title: deleteUserProfileResponse | ||
type: object | ||
required: | ||
- user | ||
- deletedUntil | ||
properties: | ||
user: | ||
type: string | ||
description: The ID of the user that was deleted. | ||
deletedUntil: | ||
type: string | ||
description: The time the same user ID will be imported again when the data is ingested. | ||
'401': | ||
$ref: '../../responses/InvalidCredentials.yml' | ||
'404': | ||
$ref: '../../responses/UserNotFound.yml' | ||
'422': | ||
description: Invalid user ID or application ID. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../../common/schemas/ErrorBase.yml' | ||
'500': | ||
$ref: '../../../common/responses/InternalError.yml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
post: | ||
tags: | ||
- profiles | ||
operationId: fetchUserProfile | ||
description: Get predictions, properties (raw, computed or custom) and segments (computed or custom) for a user profile. | ||
summary: Get user profile. | ||
parameters: | ||
- $ref: '../../common/parameters.yml#/userID' | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../common/schemas/Params.yml#/params' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
title: fetchUserProfileResponse | ||
$ref: '../../common/parameters.yml#/userProfile' | ||
'404': | ||
$ref: '../../responses/UserNotFound.yml' | ||
'405': | ||
$ref: '../../../common/responses/MethodNotAllowed.yml' | ||
'400': | ||
description: ModelsToRetrieve or typesToRetrieve must be set. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../../common/schemas/ErrorBase.yml' |
Oops, something went wrong.