-
Notifications
You must be signed in to change notification settings - Fork 53
Move the documentation a bit #90
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
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 good, just 2 comments
window.ddClient.backend | ||
.post("/some/service", { ... }) | ||
.then((value: any) => console.log(value)); | ||
|
||
window.ddClient.backend | ||
.put("/some/service", { ... }) | ||
.then((value: any) => console.log(value)); | ||
|
||
window.ddClient.backend | ||
.patch("/some/service", { ... }) | ||
.then((value: any) => console.log(value)); | ||
|
||
window.ddClient.backend | ||
.delete("/some/service") | ||
.then((value: any) => console.log(value)); | ||
|
||
window.ddClient.backend | ||
.head("/some/service") | ||
.then((value: any) => console.log(value)); | ||
|
||
window.ddClient.backend | ||
.request({ url: "/url", method: "GET", headers: { 'header-key': 'header-value' }, data: { ... }}) | ||
.then((value: any) => console.log(value)); | ||
``` |
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.
If we want to publish this to the docs site now, we should add these in a separate PR as well
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.
These were already present
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.
Ah, OK...
docs/dev/api/backend.md
Outdated
defined in the [vm section](../../extensions/METADATA.md#vm-section) in the | ||
extensions metadata. The client is already connected to the backend. | ||
|
||
It implements the following interafce |
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.
It implements the following interafce | |
It implements the following interface |
@@ -0,0 +1,24 @@ | |||
## User notifications |
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.
@rumpl Could you include the screenshot that showed the three types of toast messages?
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.
Will do in a followup
```typescript | ||
window.ddClient.toastError("Something went wrong"); | ||
``` |
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.
Shouldn't we include the toast info and warning as well?
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.
In a followup yes
I also got carried away and moved things around a bit. Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This change moves the documentation a bit making different sections for different APIs