-
Notifications
You must be signed in to change notification settings - Fork 21
feat(specs): create new methods #974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c7057af
feat(predict): create predict user profile endpoints
bengreenbank 9728fb4
feat(predict): delete user profile method
bengreenbank 4a669c2
Merge branch 'main' into feat/predict
bengreenbank def5558
chore(predict): rename user profiles directory
bengreenbank 6964554
chore(predict): create fetch all user profiles method
bengreenbank 840b76f
chore(specs): move parameter descriptions
bengreenbank 72d1082
Merge branch 'main' into feat/predict
bengreenbank 320da29
Merge branch 'main' into feat/predict
bengreenbank 1bf4740
chore(tests): add predict tests
bengreenbank 8681dd6
Merge branch 'main' into feat/predict
bengreenbank 4eba161
chore(tests): amend predict tests
bengreenbank 8a52722
Merge branch 'main' into feat/predict
bengreenbank fc6d509
fix(tests): fix predict tests body
bengreenbank 5b080c6
Merge branch 'main' into feat/predict
bengreenbank 3784248
fix(tests): remove unnecessary param requirements
bengreenbank fc0c4cb
chore(specs): update userprofile requirements
bengreenbank c1cfe7e
chore(specs): update predict fetchall params name
bengreenbank b57ee9e
chore(specs): require predict deleteduntil param
bengreenbank 1a3ca77
chore(specs): require predict user profile segments
bengreenbank b0a5eff
Merge branch 'main' into feat/predict
shortcuts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 | ||
bengreenbank marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.