Container containing different tools for Contract/API First approach. Mounting you current filesystem folder into container workspace.
Create alias on your machine:
alias apit="docker run --rm -it -v $(pwd):/opt/workspace dsauer/api-tooling:latest"
Navigate in your local folder where you want to work with API files, and execute your alias apit
.
After which you folder will be mounded into Docker volume in workspace
folder.
api
main command for working with you APIs Useapi help
to list all available commans.
Other useful tools available in the container
curl
,jq
,mtr
,httpie
,git
,zsh
,vim
,npm
- add openjdk, maven
- implement
api
predefined commands- add OpenAPI project template
make local-build
build latest image locallymake local-dev
will enter the container and mounttemplate
andtooling
folders, so they can be edited on your machine, not in the container. This is handy when creating and testing newapi
commands.make apit
Start API tool container inout
folder as Workspace.