mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:52:24 -05:00
Swagger (#124)
* start experimenting with swagger documentation * further adventures in swagger * do a few more api paths * account paths documented * go fmt * fix up some models * bit o lintin'
This commit is contained in:
parent
eb13faf54f
commit
58dddd86e0
37 changed files with 2355 additions and 169 deletions
9
docs/api/swagger.md
Normal file
9
docs/api/swagger.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# API Documentation
|
||||
|
||||
GoToSocial uses [go-swagger](https://github.com/go-swagger/go-swagger) to generate a V2 [OpenAPI specification](https://swagger.io/specification/v2/) document from code annotations.
|
||||
|
||||
The resulting API documentation is rendered below, for quick reference.
|
||||
|
||||
If you'd like to do more with the spec, you can also view the [swagger.yaml](/api/swagger/swagger.yaml) directly, and then paste it into something like the [Swagger Editor](https://editor.swagger.io/) in order to autogenerate GoToSocial API clients in different languages, convert the doc to JSON or OpenAPI v3 specification, etc. See [here](https://swagger.io/tools/open-source/getting-started/) for more.
|
||||
|
||||
!!swagger swagger.yaml!!
|
||||
1476
docs/api/swagger.yaml
Normal file
1476
docs/api/swagger.yaml
Normal file
File diff suppressed because it is too large
Load diff
4
docs/api/swagger/assets/css/swagger-ui.css
Normal file
4
docs/api/swagger/assets/css/swagger-ui.css
Normal file
File diff suppressed because one or more lines are too long
3
docs/api/swagger/assets/js/swagger-ui-bundle.js
Normal file
3
docs/api/swagger/assets/js/swagger-ui-bundle.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue