graph TD
subgraph クライアント
APP[PC/Mobileアプリ]
end
APP --> GW[APIゲートウェイ]
GW --> ORCH[Agent Orchestrator]
ORCH --> POL[ポリシー/ガードレール]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is fully refered by https://qiita.com/inoue_d/items/e38940fff7a31b8fc7c7 | |
# リージョンは us-east-1 を指定する。As of 2025-09-07 US East (N. Virginia), US West (Oregon), Europe (Frankfurt), Asia Pacific (Sydney) are avaiable | |
set -e -x | |
export AWS_REGION=us-east-1 | |
# アカウントIDの取得 | |
export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text) | |
# 信頼関係 |
Postman CLIでは、コレクション(or フォルダ)配下のテスト実行時に次のように--env-bar
オプションで環境変数の情報を指定できる
postman login --with-api-key <postman-api-key>
postman collection run <Collection ID> -i <Folder ID> --env-var key=value
この機能を利用すれば、もしあるAPIリクエスト設定で秘匿情報を扱う必要がある場合、その秘匿情報(ここではAPIキー)を次のように変数化({{api-key}}
)しておけば、実行時に秘匿情報を外部から注入が可能となる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ディレクトリが指定されていればそれを使用、なければ現在のディレクトリを使用 | |
[ -d "$1" ] && DIR=$1 && shift || DIR=. | |
# ディレクトリを絶対パスに変換 | |
(cd ${DIR}; pwd) | |
# ディレクトリ内のファイルとサブディレクトリをリストアップし、ツリー形式で表示 | |
find "${DIR}" | \ | |
awk -v dir="${DIR}" ' | |
function is_dir(path, cmd, result) { | |
cmd = "test -d \"" dir path "\" && echo 1 || echo 0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Postman Collection | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
env: | |
# OpenAPI file path | |
OPENAPI_FILE: oas/openapi.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: Sample API | |
version: 1.0.0 | |
servers: | |
- url: https://api.example.com | |
paths: | |
/users: | |
get: | |
summary: Get all users |
Project URL: https://github.com/openai/openai-realtime-agents
# Get project
git clone https://github.com/openai/openai-realtime-agents.git
# Get API KEY
open https://platform.openai.com/api-keys
# Set env OPENAI_API_KEY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "cedf3ee2-a25e-4f23-ad84-faab47425225", | |
"name": "PerformanceTesting", | |
"description": "# About this collection\n\nThis collection is designed to help you test the performance of your API endpoints with varying sizes of query parameters. The collection contains pre-built requests that simulate large and small query parameters to assess how well your API handles different loads.\n\nUsing this collection, you can identify potential bottlenecks or performance issues in your API, enabling you to optimize and enhance the overall performance.\n\n## **Using the collection**\n\n**Step 1:** Replace the placeholders in the URLs and parameters with your own API base URLs and relevant query parameters.\n\n**Step 2 (optional):** Modify the sizes of the query parameters to reflect your specific use case better. You can create multiple requests with varying parameter sizes to test your API's performance thoroughly.\n\n**Step 3:** Run the collection using Postman's Collection Runner or Postman |
NewerOlder