-
Notifications
You must be signed in to change notification settings - Fork 26
ENG-2608 - Add new user and report APIs, and introduce method overloads #136
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
25 commits
Select commit
Hold shift + click to select a range
c62afcc
attempt to do overloads
wied03 db867f4
arrays do not work
wied03 d1d39ff
Try doing this with same method instead - works for typescript
wied03 bc5d292
this approach seems to work well
wied03 7376826
Handle Ruby
wied03 a4d313e
Python updates + opt text
wied03 3ae5d21
Most of this openapi stuff should work
wied03 1182789
try deterministic sorting in the right places
wied03 9782902
go generic String->string issue
wied03 e88de1b
.net fixes
wied03 cb8cd3b
typescript fixes
wied03 ec90190
add report method
wied03 1c625ef
Add report method
wied03 8fc9f51
Merge branch 'degroff/ENG-1/issue1' into wied03/ENG-2468/webauthn
wied03 617687f
Explain
wied03 cbbe086
forgot PHP
wied03 425a7f5
use lists when possible, order is significant here
wied03 9e4f4ab
Revert
wied03 16601ca
Remove overload stuff
wied03 a6f502b
cover more java basics
wied03 34ea142
remove more optional stuff
wied03 21838ec
on this flavor, these are not optional
wied03 d2180a5
Correct our generic macros for our use cases
wied03 f6735a0
correct comment
wied03 0b5b166
now that this overload does not have opt params, remove defaults
wied03 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| "javaType": "String" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
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,30 @@ | ||
| { | ||
| "uri": "/api/user", | ||
| "comments": [ | ||
| "Retrieves the user for the loginId, using specific loginIdTypes." | ||
| ], | ||
| "method": "get", | ||
| "methodName": "retrieveUserByLoginIdWithLoginIdTypes", | ||
| "successResponse": "UserResponse", | ||
| "errorResponse": "Errors", | ||
| "params": [ | ||
| { | ||
| "name": "loginId", | ||
| "comments": [ | ||
| "The email or username of the user." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "loginId", | ||
| "javaType": "String" | ||
| }, | ||
| { | ||
| "name": "loginIdTypes", | ||
| "comments": [ | ||
| "the identity types that FusionAuth will compare the loginId to." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "loginIdTypes", | ||
| "javaType": "List<String>" | ||
| } | ||
| ] | ||
| } |
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 |
|---|---|---|
|
|
@@ -46,4 +46,4 @@ | |
| "javaType": "long" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
58 changes: 58 additions & 0 deletions
58
src/main/api/retrieveUserLoginReportByLoginIdAndLoginIdTypes.json
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,58 @@ | ||
| { | ||
| "uri": "/api/report/login", | ||
| "comments": [ | ||
| "Retrieves the login report between the two instants for a particular user by login Id, using specific loginIdTypes. If you specify an application id, it will only return the", | ||
| "login counts for that application." | ||
| ], | ||
| "method": "get", | ||
| "methodName": "retrieveUserLoginReportByLoginIdAndLoginIdTypes", | ||
| "successResponse": "LoginReportResponse", | ||
| "errorResponse": "Errors", | ||
| "params": [ | ||
| { | ||
| "name": "applicationId", | ||
| "comments": [ | ||
| "(Optional) The application id." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "applicationId", | ||
| "javaType": "UUID" | ||
| }, | ||
| { | ||
| "name": "loginId", | ||
| "comments": [ | ||
| "The userId id." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "loginId", | ||
| "javaType": "String" | ||
| }, | ||
| { | ||
| "name": "start", | ||
| "comments": [ | ||
| "The start instant as UTC milliseconds since Epoch." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "start", | ||
| "javaType": "long" | ||
| }, | ||
| { | ||
| "name": "end", | ||
| "comments": [ | ||
| "The end instant as UTC milliseconds since Epoch." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "end", | ||
| "javaType": "long" | ||
| }, | ||
| { | ||
| "name": "loginIdTypes", | ||
| "comments": [ | ||
| "the identity types that FusionAuth will compare the loginId to." | ||
| ], | ||
| "type": "urlParameter", | ||
| "parameterName": "loginIdTypes", | ||
| "javaType": "List<String>" | ||
| } | ||
| ] | ||
| } |
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 |
|---|---|---|
|
|
@@ -33,8 +33,8 @@ | |
| [#case "KeyType"][#return "KeyType?"/] | ||
| [#case "KeyAlgorithm"][#return "KeyAlgorithm?"/] | ||
| [#default] | ||
| [#if type?starts_with("Collection")] | ||
| [#return type?replace("Collection", "List")?replace("UUID", "string")/] | ||
| [#if type?starts_with("Collection") || type?starts_with("List")] | ||
| [#return type?replace("Collection", "List")?replace("UUID", "string")?replace("String", "string")/] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In .NET the collection generic is |
||
| [#else] | ||
| [#return type/] | ||
| [/#if] | ||
|
|
@@ -52,8 +52,8 @@ | |
| [#return "int64"/] | ||
| [#elseif type == "Void"] | ||
| [#return "nil"/] | ||
| [#elseif type?starts_with("Collection")] | ||
| [#return type?replace("Collection", "[]")?replace("UUID", "string")?replace("<", "")?replace(">", "")/] | ||
| [#elseif type?starts_with("Collection<") || type?starts_with("List<")] | ||
| [#return type?replace("Collection", "[]")?replace("List", "[]")?replace("UUID", "string")?replace("<", "")?replace(">", "")?replace("String", "string")/] | ||
| [#elseif type == "String" || type = "UUID" || type == "ZoneId" || type == "URI" || type == "Locale" || type == "LocalDate" || type == "char" || type == "IdentityType" ] | ||
| [#return "string"/] | ||
| [#elseif type == "Object" || type == "D" || type == "T"] | ||
|
|
@@ -97,7 +97,7 @@ | |
| [#case "JWT"][#return "JWT | object"/] | ||
| [#case "Void"][#return "void"/] | ||
| [#default] | ||
| [#if type?starts_with("Collection")] | ||
| [#if type?starts_with("Collection<") || type?starts_with("List<")] | ||
| [#return type?replace("Collection", "Array")?replace("UUID", "string")/] | ||
| [#else] | ||
| [#return type/] | ||
|
|
@@ -132,8 +132,8 @@ | |
| [#case "Object"][#return "any"/] | ||
| [#case "Void"][#return "void"/] | ||
| [#default] | ||
| [#if type?starts_with("Collection")] | ||
| [#return type?replace("Collection", "Array")?replace("UUID", "string")/] | ||
| [#if type?starts_with("Collection<") || type?starts_with("List<")] | ||
| [#return type?replace("Collection", "Array")?replace("List", "Array")?replace("UUID", "string")/] | ||
| [#else] | ||
| [#return type/] | ||
| [/#if] | ||
|
|
@@ -155,7 +155,7 @@ | |
| [#elseif language == "ruby"] | ||
| [#if type == "UUID" || type == "String" || type == "IdentityProviderType" || type == "LambdaType"] | ||
| [#return "string"/] | ||
| [#elseif type?starts_with("Collection")] | ||
| [#elseif type?starts_with("Collection<") || type?starts_with("List<")] | ||
| [#return "Array"/] | ||
| [#elseif type == "boolean" || type == "Boolean"] | ||
| [#return "Boolean"/] | ||
|
|
||
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.