Skip to content

Commit

Permalink
Added matching_priority field to API config
Browse files Browse the repository at this point in the history
Closes #68
  • Loading branch information
AndrewDryga committed Mar 20, 2018
1 parent 9b200b1 commit e640ad1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions app/common/containers/forms/ApiForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import styles from './styles.scss';
request: {
scheme: 'http',
},
matching_priority: '1'
},
validate: reduxFormValidate({
name: {
Expand Down Expand Up @@ -82,18 +83,16 @@ export default class ApiForm extends React.Component {

<div className={classnames(styles.row, styles['row--name'])}>
<div className={styles.row__field}><Field name="name" labelText="Name *" component={FieldInput} /></div>
<div className={styles.row__field}><Field name="description" labelText="Description" component={FieldInput} /></div>
<div className={styles.row__field}><Field name="matching_priority" labelText="Matching priority" component={FieldInput} /></div>
</div>

<div className={classnames(styles.row, styles['row--small'])}>
<Field
name="docs_url"
labelText="Documentation URL"
placeholder="eg. https://docs.annon.apiary.io"
component={FieldInput}
/>
</div>
<Line width="280" />

<div className={classnames(styles.row, styles['row--name'])}>
<div className={styles.row__field}><Field name="docs_url" labelText="Documentation URL" placeholder="eg. https://docs.annon.apiary.io" component={FieldInput}/></div>
<div className={styles.row__field}><Field name="description" labelText="Description" component={FieldInput} /></div>
</div>

<div className={classnames(styles.row, styles['row--small'])}>
<Field
name="health"
Expand All @@ -108,14 +107,14 @@ export default class ApiForm extends React.Component {
]}
/>
</div>

<div className={classnames(styles.row, styles['row--small'])}>
<Field
name="disclose_status"
labelText="Disclose API status"
component={FieldCheckbox}
/>
</div>
<Line width="280" />

<H3>Request</H3>

Expand Down

0 comments on commit e640ad1

Please sign in to comment.