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
| { | |
| "id": 1, | |
| "name": "Gandalf", | |
| "employees": [ | |
| "Frodo::ring bearer", | |
| "Bilbo::burglar" | |
| ], | |
| "_links": { | |
| "self": { | |
| "href": "http://localhost:8080/managers/1" |
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
| { | |
| "firstName" : "Frodo", | |
| "lastName" : "Baggins", | |
| "name" : "Frodo Baggins", | |
| "_links" : { | |
| "self" : { | |
| "href" : "/customers/1" | |
| } | |
| } | |
| } |
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
| @Data | |
| @JsonIgnoreProperties(ignoreUnknown = true) | |
| public class Customer { | |
| private String firstName; | |
| private String lastName; | |
| public void setName(String wholeName) { | |
| String[] parts = wholeName.split(" "); | |
| this.firstName = parts[0]; |
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
| { | |
| "name" : "Frodo Baggins", | |
| "_links" : { | |
| "self" : { | |
| "href" : "/customers/1" | |
| } | |
| } | |
| } |
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
| @Data | |
| @JsonIgnoreProperties(ignoreUnknown = true) | |
| public class Customer { | |
| private String name; | |
| } |
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
| requiredFieldsFilledOut() { | |
| return this.state.required.filter(field => this.state[field]).length === this.state.required.length | |
| } |
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.requiredFieldsFilledOut() ? | |
| <li className={this.tabStatus('status')} onClick={this.handleStatus}> | |
| <a id="status-link" className="tabs__link">Install</a> | |
| </li> | |
| : | |
| <li className={this.tabStatus('status')}> | |
| <a className="tabs__link">Install</a> | |
| </li> | |
| } |
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
| // Fixed constant stuffed inside the state | |
| this.state['required'] = [ | |
| this.state.api, | |
| this.state.email, | |
| this.state.password, | |
| this.state.services, | |
| this.state.primaryAccount, | |
| this.state.domain, | |
| 'all.namespace' | |
| ] |
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
| return (<li className='control-group'> | |
| {this.props.settings.required.includes(this.props.name) && !this.props.settings[this.props.name] ? | |
| <label className={labelLayout}>{this.props.label} <span className='required'>(*required)</span></label> | |
| : | |
| <label className={labelLayout}>{this.props.label}</label> | |
| } | |
| {optional} | |
| <input className={inputLayout} type="text" | |
| placeholder={this.props.placeHolder} | |
| name={this.props.name} |
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
| <CheckboxInput label="OAuth?" | |
| name={this.props.settings.oauthEnabled} | |
| handleChange={this.handleChange} | |
| settings={this.props.settings} /> |