Skip to content

Commit 9ac26e5

Browse files
authored
Merge pull request #176 from netlify/doc/add-description
Add `description` field
2 parents 57f527d + 0606b4e commit 9ac26e5

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

swagger.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@ info:
55
termsOfService: https://www.netlify.com/legal/terms-of-use/
66
externalDocs:
77
url: https://www.netlify.com/docs/api/
8-
description: Netlify API online documentation
8+
description: >-
9+
Netlify is a hosting service for the programmable web. It understands your
10+
documents and provides an API to handle atomic deploys of websites, manage
11+
form submissions, inject JavaScript snippets, and much more. This is a
12+
REST-style API that uses JSON for serialization and OAuth 2 for
13+
authentication.
14+
15+
16+
This document is an OpenAPI reference for the Netlify API that you can
17+
explore. For more detailed instructions for common uses, please visit the
18+
[online documentation](https://www.netlify.com/docs/api/). Visit our
19+
Community forum to join the conversation about
20+
[understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).
21+
22+
23+
Additionally, we have two API clients for your convenience:
24+
25+
- [Go Client](https://github.com/netlify/open-api#go-client)
26+
27+
- [JS Client](https://github.com/netlify/js-client)
928
securityDefinitions:
1029
netlifyAuth:
1130
type: oauth2

test/snapshots/main.js.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,13 @@ Generated by [AVA](https://ava.li).
19501950
},
19511951
},
19521952
externalDocs: {
1953-
description: 'Netlify API online documentation',
1953+
description: `Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.␊
1954+
1955+
This document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).␊
1956+
1957+
Additionally, we have two API clients for your convenience:␊
1958+
- [Go Client](https://github.com/netlify/open-api#go-client)␊
1959+
- [JS Client](https://github.com/netlify/js-client)`,
19541960
url: 'https://www.netlify.com/docs/api/',
19551961
},
19561962
host: 'api.netlify.com',

test/snapshots/main.js.snap

453 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)