-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EDGPATRON-151 Adding new api contract for Post and get api of LC User…
… registration
- Loading branch information
1 parent
7365c9e
commit 960ac8d
Showing
8 changed files
with
513 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"isEmailVerified": true, | ||
"status": "TIER-1", | ||
"generalInfo": { | ||
"firstName": "John", | ||
"preferredFirstName": "John", | ||
"middleName": "Felix", | ||
"lastName": "Cena" | ||
}, | ||
"addressInfo": { | ||
"addressLine0": "William Morris Endeavor", | ||
"addressLine1": "9601 Wilshire Blvd 3rd Floor", | ||
"city": "Beverly Hills", | ||
"province": "CA", | ||
"zip": "12345", | ||
"country": "USA" | ||
}, | ||
"contactInfo": { | ||
"phone": "555-123456", | ||
"mobilePhone": "55555-66666", | ||
"email": "john_cena@test_folio.com" | ||
}, | ||
"preferredEmailCommunication": [ | ||
"Support", | ||
"Programs", | ||
"Services" | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"username": "jhandey", | ||
"id": "7261ecaae3a74dc68b468e12a70b1aec", | ||
"active": true, | ||
"type": "patron", | ||
"patronGroup": "4bb563d9-3f9d-4e1e-8d1d-04e75666d68f", | ||
"meta": { | ||
"creation_date": "2016-11-05T0723", | ||
"last_login_date": "" | ||
}, | ||
"personal": { | ||
"lastName": "Handey", | ||
"firstName": "Jack", | ||
"preferredFirstName": "Jackie", | ||
"email": "jhandey@biglibrary.org", | ||
"phone": "2125551212" | ||
} | ||
} |
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,4 @@ | ||
{ | ||
"code": 404, | ||
"errorMessage": "USER_ACCOUNT_INACTIVE" | ||
} |
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,26 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "external_patron_error.schema", | ||
"description": "An external_patron user error", | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"type": "integer", | ||
"description": "Error code" | ||
}, | ||
"errorMessage": { | ||
"type": "string", | ||
"description": "Error message text", | ||
"examples": [ | ||
{ | ||
"value": "MULTIPLE_USER_EXISTS", | ||
"description": "Multiple users found with the same email" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"code", | ||
"errorMessage" | ||
] | ||
} |
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,30 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "external_patron_error.schema", | ||
"description": "An external_patron user error", | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"type": "integer", | ||
"description": "Error code" | ||
}, | ||
"errorMessage": { | ||
"type": "string", | ||
"description": "Error message text", | ||
"examples": [ | ||
{ | ||
"value": "USER_ACCOUNT_INACTIVE", | ||
"description": "User is not active" | ||
}, | ||
{ | ||
"value": "USER_NOT_FOUND", | ||
"description": "User does not exist" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"code", | ||
"errorMessage" | ||
] | ||
} |
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,100 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "User Information Schema", | ||
"description": "Schema for staging users", | ||
"type": "object", | ||
"properties": { | ||
"isEmailVerified": { | ||
"description": "A flag to determine if a patron is activated/email verification completed.", | ||
"type": "boolean", | ||
"example": true | ||
}, | ||
"status": { | ||
"description": "Status of the patron, whether TIER-1 or TIER-2.", | ||
"type": "string", | ||
"enum": ["TIER-1", "TIER-2"], | ||
"example": "TIER-1" | ||
}, | ||
"generalInfo": { | ||
"type": "object", | ||
"description": "General info of external patron", | ||
"properties": { | ||
"firstName": { | ||
"description": "First name of the patron", | ||
"type": "string" | ||
}, | ||
"preferredFirstName": { | ||
"description": "Preferred first name of the patron", | ||
"type": "string" | ||
}, | ||
"middleName": { | ||
"description": "Middle name of the patron", | ||
"type": "string" | ||
}, | ||
"lastName": { | ||
"description": "Last name of the patron", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"addressInfo": { | ||
"type": "object", | ||
"description": "Primary address info of external patron", | ||
"properties": { | ||
"addressLine0": { | ||
"description": "First line of the address", | ||
"type": "string" | ||
}, | ||
"addressLine1": { | ||
"description": "Second line of the address", | ||
"type": "string" | ||
}, | ||
"city": { | ||
"description": "City", | ||
"type": "string" | ||
}, | ||
"province": { | ||
"description": "Province/State", | ||
"type": "string" | ||
}, | ||
"zip": { | ||
"description": "Postal/Zip code", | ||
"type": "string" | ||
}, | ||
"country": { | ||
"description": "Country", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"contactInfo": { | ||
"type": "object", | ||
"description": "Contact info of external patron", | ||
"properties": { | ||
"phone": { | ||
"description": "Phone number of the patron", | ||
"type": "string" | ||
}, | ||
"mobilePhone": { | ||
"description": "Mobile phone number of the patron", | ||
"type": "string" | ||
}, | ||
"email": { | ||
"description": "Email of the patron", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"preferredEmailCommunication": { | ||
"type": "array", | ||
"description": "Email communication info of external patron", | ||
"items": { | ||
"type": "string", | ||
"enum": ["Support", "Programs", "Service"] | ||
}, | ||
"maxItems": 3, | ||
"uniqueItems": true | ||
} | ||
}, | ||
"required": ["generalInfo.firstName", "generalInfo.lastName", "contactInfo.email"] | ||
} |
Oops, something went wrong.