-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add Create API #31
Add Create API #31
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the form validation is working! What is the expected behavior when clicking the "Create API" button? At the moment I get [CreateApiPageComponent] Creating a new (blank) API: {"type":"OpenAPI30","name":"API 1","description":"description of API 1"}
printed to the console. Is there anything that should change on the UI, or is that something that will be implemented in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments.
@@ -0,0 +1,32 @@ | |||
/** | |||
* @license | |||
* Copyright 2017 JBoss Inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably do a find/replace from 2017 to 2020 on all these files. Or else remove the license entirely if we don't need it. I'm never sure. Either way, not something to change for this PR...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point! i created this issue to track it: #37
return axios.request(config) | ||
.then(response => { | ||
let data = response; | ||
console.log('what is the response' + data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this before checkin/merge?
data: stringify | ||
}, ...options} | ||
|
||
console.log('did it make it to the post'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug statement still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - I'm assuming the template stuff will happen in another pass.
thanks for the review, updated @EricWittmann |
Adds the Create API Page
Things to check: