# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: go-httpbin
spec:
    description: |
        go-httpbin is a Go reimplementation of httpbin, the HTTP request and response testing service. Provides endpoints for testing HTTP methods, status codes, redirects, cookies, authentication, and more — all with a built-in Swagger UI for interactive exploration.
    coverImage: https://avatars.githubusercontent.com/u/10251060
    icon: https://avatars.githubusercontent.com/u/10251060
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access go-httpbin
    tags:
        - Tool
        - Developer Tools
    readme: |
        # go-httpbin

        HTTP request and response testing service. A Go reimplementation of the classic httpbin with full API compatibility and built-in documentation.

        ## What You Can Do After Deployment

        1. **Open the web UI** — visit your domain to see the interactive API documentation
        2. **Test HTTP methods** — send GET, POST, PUT, PATCH, DELETE requests and inspect responses
        3. **Test status codes** — use `/status/{code}` to get any HTTP status code response
        4. **Inspect requests** — `/anything` echoes back everything about your request
        5. **Test redirects** — use `/redirect/{n}` to test redirect chains

        ## Key Features

        - Full httpbin API compatibility
        - Interactive Swagger UI documentation
        - Request inspection (headers, body, args, origin IP)
        - HTTP method testing (GET, POST, PUT, DELETE, PATCH)
        - Status code responses
        - Redirect testing
        - Cookie handling
        - Authentication testing (Basic, Bearer, Digest)
        - Response format testing (JSON, HTML, XML, robots.txt)
        - Delay and timeout simulation
        - Image and binary response testing

        ## License

        ISC — [GitHub](https://github.com/postmanlabs/httpbin)

        > This template uses [go-httpbin](https://github.com/mccutchen/go-httpbin), a maintained Go reimplementation with full API compatibility.
    services:
        - name: httpbin
          icon: https://avatars.githubusercontent.com/u/10251060
          template: PREBUILT_V2
          spec:
            source:
                image: mccutchen/go-httpbin:2.21.0
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            env:
                PORT:
                    default: "8080"
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            go-httpbin es una reimplementación en Go de httpbin, el servicio de pruebas HTTP. Proporciona endpoints para probar métodos HTTP, códigos de estado, redirecciones, cookies, autenticación y más, con Swagger UI integrado.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a go-httpbin
        readme: |
            # go-httpbin

            Servicio de pruebas de solicitudes y respuestas HTTP. Reimplementación en Go de httpbin con compatibilidad API completa y documentación integrada.

            ## Qué puedes hacer después del despliegue

            1. **Abre la interfaz web** — visita tu dominio para ver la documentación interactiva
            2. **Prueba métodos HTTP** — envía GET, POST, PUT, PATCH, DELETE y examina las respuestas
            3. **Prueba códigos de estado** — usa `/status/{code}` para obtener cualquier código HTTP
            4. **Inspecciona solicitudes** — `/anything` devuelve todos los detalles de tu solicitud
            5. **Prueba redirecciones** — usa `/redirect/{n}` para probar cadenas de redirección

            ## Licencia

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
    id-ID:
        description: |
            go-httpbin adalah reimplementasi Go dari httpbin, layanan pengujian HTTP. Menyediakan endpoint untuk menguji metode HTTP, kode status, redirect, cookie, autentikasi, dan lainnya dengan Swagger UI bawaan.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses go-httpbin
        readme: |
            # go-httpbin

            Layanan pengujian permintaan dan respons HTTP. Reimplementasi Go dari httpbin dengan kompatibilitas API penuh dan dokumentasi bawaan.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka UI web** — kunjungi domain untuk melihat dokumentasi API interaktif
            2. **Uji metode HTTP** — kirim GET, POST, PUT, PATCH, DELETE dan periksa respons
            3. **Uji kode status** — gunakan `/status/{code}` untuk mendapatkan kode status HTTP apa pun
            4. **Periksa permintaan** — `/anything` mengembalikan semua detail permintaan Anda
            5. **Uji redirect** — gunakan `/redirect/{n}` untuk menguji rantai redirect

            ## Lisensi

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
    ja-JP:
        description: |
            go-httpbin は httpbin の Go 言語再実装で、HTTPリクエスト・レスポンステストサービスです。HTTPメソッド、ステータスコード、リダイレクト、Cookie、認証などのテスト用エンドポイントを提供し、Swagger UIを内蔵。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: go-httpbin にアクセスするためのドメイン
        readme: |
            # go-httpbin

            HTTPリクエスト・レスポンステストサービス。httpbin の Go 再実装で完全なAPI互換性と組み込みドキュメントを提供。

            ## デプロイ後にできること

            1. **Web UIを開く** — ドメインにアクセスしてインタラクティブなAPIドキュメントを確認
            2. **HTTPメソッドテスト** — GET, POST, PUT, PATCH, DELETE リクエストを送信してレスポンスを確認
            3. **ステータスコードテスト** — `/status/{code}` で任意のHTTPステータスコードを取得
            4. **リクエスト確認** — `/anything` でリクエストの全詳細をエコーバック
            5. **リダイレクトテスト** — `/redirect/{n}` でリダイレクトチェーンをテスト

            ## ライセンス

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
    ko-KR:
        description: |
            go-httpbin은 httpbin의 Go 언어 재구현으로, HTTP 요청 및 응답 테스트 서비스입니다. HTTP 메서드, 상태 코드, 리다이렉트, 쿠키, 인증 등의 테스트 엔드포인트와 Swagger UI를 제공합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: go-httpbin에 접속할 도메인
        readme: |
            # go-httpbin

            HTTP 요청 및 응답 테스트 서비스. httpbin의 Go 재구현으로 완전한 API 호환성과 내장 문서를 제공합니다.

            ## 배포 후 할 수 있는 것

            1. **웹 UI 열기** — 도메인에 접속하여 대화형 API 문서 확인
            2. **HTTP 메서드 테스트** — GET, POST, PUT, PATCH, DELETE 요청 전송 및 응답 확인
            3. **상태 코드 테스트** — `/status/{code}`로 원하는 HTTP 상태 코드 응답 받기
            4. **요청 확인** — `/anything`이 요청의 모든 세부 정보를 에코
            5. **리다이렉트 테스트** — `/redirect/{n}`으로 리다이렉트 체인 테스트

            ## 라이선스

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
    th-TH:
        description: |
            go-httpbin เป็นการ reimplementation ภาษา Go ของ httpbin บริการทดสอบ HTTP มี endpoint สำหรับทดสอบ HTTP method, status code, redirect, cookie, authentication และอื่นๆ พร้อม Swagger UI ในตัว
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง go-httpbin
        readme: |
            # go-httpbin

            บริการทดสอบ HTTP request และ response เป็น Go reimplementation ของ httpbin ที่เข้ากันได้กับ API เดิมทั้งหมดพร้อมเอกสารในตัว

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            1. **เปิด Web UI** — เข้าโดเมนเพื่อดูเอกสาร API แบบ interactive
            2. **ทดสอบ HTTP method** — ส่ง GET, POST, PUT, PATCH, DELETE แล้วตรวจสอบ response
            3. **ทดสอบ status code** — ใช้ `/status/{code}` เพื่อรับ HTTP status code ใดก็ได้
            4. **ตรวจสอบ request** — `/anything` จะส่งรายละเอียดทั้งหมดของ request กลับมา
            5. **ทดสอบ redirect** — ใช้ `/redirect/{n}` เพื่อทดสอบ redirect chain

            ## สัญญาอนุญาต

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
    zh-CN:
        description: |
            go-httpbin 是 httpbin 的 Go 语言重新实现，HTTP 请求与响应测试服务。提供测试 HTTP 方法、状态码、重定向、Cookie、认证等端点，内置 Swagger UI 交互式文档。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 go-httpbin 的域名
        readme: |
            # go-httpbin

            HTTP 请求与响应测试服务。经典 httpbin 的 Go 语言重新实现，完全 API 兼容并内置交互式文档。

            ## 部署后可以做什么

            1. **打开网页 UI** — 浏览域名查看交互式 API 文档
            2. **测试 HTTP 方法** — 发送 GET、POST、PUT、PATCH、DELETE 请求并查看响应
            3. **测试状态码** — 使用 `/status/{code}` 获取任意 HTTP 状态码响应
            4. **查看请求** — `/anything` 会返回你的请求所有细节
            5. **测试重定向** — 使用 `/redirect/{n}` 测试重定向链

            ## 授权

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
    zh-TW:
        description: |
            go-httpbin 是 httpbin 的 Go 語言重新實作，HTTP 請求與回應測試服務。提供測試 HTTP 方法、狀態碼、重導向、Cookie、驗證等端點，內建 Swagger UI 互動式文件。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 go-httpbin 的網域
        readme: |
            # go-httpbin

            HTTP 請求與回應測試服務。經典 httpbin 的 Go 語言重新實作，完全 API 相容並內建互動式文件。

            ## 部署後可以做什麼

            1. **開啟網頁 UI** — 瀏覽網域查看互動式 API 文件
            2. **測試 HTTP 方法** — 發送 GET、POST、PUT、PATCH、DELETE 請求並檢視回應
            3. **測試狀態碼** — 使用 `/status/{code}` 取得任意 HTTP 狀態碼回應
            4. **檢視請求** — `/anything` 會回傳你的請求所有細節
            5. **測試重導向** — 使用 `/redirect/{n}` 測試重導向鏈

            ## 授權

            ISC — [GitHub](https://github.com/postmanlabs/httpbin)
