Skip to content

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

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Move the documentation a bit #90

merged 1 commit into from
Feb 8, 2022

Conversation

rumpl
Copy link
Member

@rumpl rumpl commented Feb 8, 2022

This change moves the documentation a bit making different sections for different APIs

@rumpl rumpl requested review from gtardif and felipecruz91 February 8, 2022 09:00
Copy link
Contributor

@gtardif gtardif left a 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

Comment on lines +52 to +75
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));
```
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were already present

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, OK...

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It implements the following interafce
It implements the following interface

@@ -0,0 +1,24 @@
## User notifications
Copy link
Contributor

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?

Copy link
Member Author

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

Comment on lines +6 to +8
```typescript
window.ddClient.toastError("Something went wrong");
```
Copy link
Contributor

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?

Copy link
Member Author

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>
@rumpl rumpl merged commit 3fb8bbd into docker:main Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants