Skip to content

Commit 1882bcd

Browse files
committed
Mirror Repo
0 parents  commit 1882bcd

File tree

6 files changed

+1327
-0
lines changed

6 files changed

+1327
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/.DS_Store
2+
**/.idea
3+
*.iml
4+
5+
# build files
6+
out/
7+
.vscode

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
PWD := $(shell eval pwd)
2+
validate:
3+
# Validate conformance to the OpenAPI specification
4+
docker run --rm -v ${PWD}/spec/openapi.yaml:/local/openapi.yaml openapitools/openapi-generator-cli validate -i file:///local/openapi.yaml --recommend
5+
6+
ui:
7+
echo "running spec via swagger-ui accessible at http://localhost:9500"
8+
`pwd`/util/open-ui.sh "http://localhost:9500" &
9+
docker run --rm -p 9500:8080 -v `pwd`/spec/openapi.yaml:/usr/share/nginx/html/openapi.yaml -e API_URL=openapi.yaml swaggerapi/swagger-ui

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# WiseTime Connect API Spec
2+
3+
The WiseTime Connect API allows you to connect your systems to WiseTime. The API is specified using the [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification), version [3.0.1](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md). The spec is available in this repository at [spec/openapi.yaml](spec/openapi.yaml).
4+
5+
We provide a web UI that you can use to browse the API at [https://wisetime.com/docs/connect/api/](https://wisetime.com/docs/connect/api/).
6+
7+
## Generating WiseTime Connect API Client Libraries
8+
9+
While you can consume the WiseTime Connect API directly via HTTP, you also have the option of generating client libraries for various languages and frameworks.
10+
11+
To do that, you can use a tool called [openapi-generator](https://github.com/OpenAPITools/openapi-generator). For example, to generate a Go client library via an openapi-generator Docker container:
12+
13+
```sh
14+
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \
15+
-i https://raw.githubusercontent.com/wisetime-io/connect-api-spec/master/spec/openapi.yaml \
16+
-g go \
17+
-o /local/out/go
18+
```

connector-service

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 89baa2716ea681d23f7dbaae30b423db7897b2bd

0 commit comments

Comments
 (0)