mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-18 13:24:15 +00:00
fix: remove swagger.json and swagger.yaml files
This commit is contained in:
parent
2ac55eec07
commit
eda99213a7
@ -148,7 +148,7 @@ COPY src/docs/add_v1_receive_schemas.go /tmp/signal-cli-rest-api-src/docs/add_v1
|
|||||||
RUN ls -la /tmp/signal-cli-rest-api-src
|
RUN ls -la /tmp/signal-cli-rest-api-src
|
||||||
|
|
||||||
# build the docs
|
# build the docs
|
||||||
RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefault
|
RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefault --outputTypes go
|
||||||
|
|
||||||
# manually add the json schemas for the receive V1 endpoint to the docs
|
# manually add the json schemas for the receive V1 endpoint to the docs
|
||||||
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
|
|||||||
@ -15,11 +15,11 @@ Regenerate the files with your local source code changes.
|
|||||||
1. Run swag to generate the docs
|
1. Run swag to generate the docs
|
||||||
* Option 1, via docker
|
* Option 1, via docker
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init --requiredByDefault
|
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init --requiredByDefault --outputTypes go
|
||||||
```
|
```
|
||||||
* Option 2, install swag and run the command line tool
|
* Option 2, install swag and run the command line tool
|
||||||
```bash
|
```bash
|
||||||
swag init --requiredByDefault
|
swag init --requiredByDefault --outputTypes go
|
||||||
```
|
```
|
||||||
1. Set the current working dir to `src/docs`
|
1. Set the current working dir to `src/docs`
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user