Getting started
-
Install the CLI (Linux):
Terminal window curl -fsSL https://raw.githubusercontent.com/1rowvy/outry/master/install.sh | shThe desktop app and other platforms are covered in Installation.
-
Create a project in your repository:
Terminal window cd my-serviceoutry initThis creates
api/env.tomlwithdevandprodenvironments and an example requestapi/health.outry. -
Point
baseat your API inapi/env.toml:api/env.toml default = "dev"[env.dev]base = "http://localhost:8080"[env.prod]base = "https://api.example.com" -
Write a request. The name comes before the method, the path is appended to
base:api/users/list.outry ListUsers: GET /users {query { page: 1 }expect {status == 200body.items.length > 0}}The smallest request is one line:
GET /health. -
Run it:
Terminal window outry run api/users/list.outryoutry run ListUsers # by nameoutry run api # every *.outry and *.http under api/, in alphabetical orderoutry run api --env prod # another environment✓ api/users/list.outry ListUsers GET http://localhost:8080/users?page=1 200 OK 12ms 532B✓ status == 200✓ body.items.length > 0
Have a Go service? outry import go . writes a request for every chi, gin or net/http route, and
outry check then tells you when the code and the requests drift apart — see
Import routes from Go.
Already have .http files? outry convert api/ rewrites them into .outry — see
.http files.
Next steps
Section titled “Next steps”- Example project — a Gin service that uses every feature
- .outry format — the full reference
- Calling requests and checks
- Variables and environments
- Running Outry in CI