mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 02:06:15 -06: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
7
generateswagger.sh
Executable file
7
generateswagger.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
SWAGGER_FILE="docs/api/swagger.yaml"
|
||||
GTS_VERSION="$(cat version)"
|
||||
|
||||
swagger generate spec -o "${SWAGGER_FILE}" --scan-models
|
||||
sed -i "s/REPLACE_ME/${GTS_VERSION}/" "${SWAGGER_FILE}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue