Skip to content

Commit

Permalink
Swagger Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
networkinss authored and runabol committed Sep 12, 2023
1 parent b227772 commit 2c9f50c
Show file tree
Hide file tree
Showing 11 changed files with 2,909 additions and 1,691 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ tork:
.PHONY: clean
clean:
go clean
rm -f tork
rm -f tork

.PHONY: generate-swagger
generate-swagger:
swag init --parseDependency -g internal/coordinator/api/api.go --output docs/swagger
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,19 @@ Check out the [examples](examples/) folder.

See the [REST API](https://www.tork.run/rest) documentation.

## Web UI
### Swagger Docs

Start Tork in `standalone` or `coordinator` mode.

```shell
go run cmd/main.go run standalone
```

Visit [http://localhost:8000/swagger](http://localhost:8000/swagger)

[Tork Web](https://github.com/runabol/tork-web) is a web based tool for interacting with Tork.
## Web UI

!["Tork Web"](docs/tork-web-v2.png)
[Tork Web](https://www.tork.run/web-ui) is a web based tool for interacting with Tork.

## License

Expand Down
Loading

0 comments on commit 2c9f50c

Please sign in to comment.