[SG-656] Update API endpoint to use RegisterResponseModel #2282
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.
Type of change
Objective
On #2278 I updated the Identity
register
endpoint to return a model, but I did not update the APIregister
endpoint. This was because I was concerned they changes wouldn't be backwards compatible with old clients.Turns out there is a bigger reason to update both register endpoints: those endpoints are still used by all self hosted servers. To keep self hosted registrations working I've updated the API
register
endpoint with the new changes. The changes are still backwards compatible with old clients because old clients will have marked the register endpoint as not having a response and will not try to parse one.Code changes
RegisterResponseModel
classes toCore
to be used by API and Identityregister
endpoint changes to the APIregister
endpointBefore you submit
dotnet format --verify-no-changes
) (required)