RESTAPI_SERVER/postman/REST-API-Collection.json

126 lines
3.2 KiB
JSON

{
"info": {
"name": "REST API Server Collection",
"description": "Oracle DB를 사용하는 REST API 서버 테스트 컬렉션",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:9771",
"type": "string"
}
],
"item": [
{
"name": "Health Check",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/health",
"host": ["{{baseUrl}}"],
"path": ["api", "health"]
},
"description": "서버 상태 확인"
}
},
{
"name": "Get All Data",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/data",
"host": ["{{baseUrl}}"],
"path": ["api", "data"]
},
"description": "모든 데이터 조회"
}
},
{
"name": "Get Data by ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/data/1",
"host": ["{{baseUrl}}"],
"path": ["api", "data", "1"]
},
"description": "특정 ID의 데이터 조회"
}
},
{
"name": "Create Data",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"새로운 데이터\",\n \"description\": \"Postman에서 생성한 테스트 데이터\",\n \"dataValue\": \"{\\\"type\\\": \\\"postman\\\", \\\"created\\\": \\\"{{$timestamp}}\\\"}\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/data",
"host": ["{{baseUrl}}"],
"path": ["api", "data"]
},
"description": "새로운 데이터 생성"
}
},
{
"name": "Update Data",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"수정된 데이터\",\n \"description\": \"Postman에서 수정한 데이터\",\n \"dataValue\": \"{\\\"type\\\": \\\"updated\\\", \\\"modified\\\": \\\"{{$timestamp}}\\\"}\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/data/1",
"host": ["{{baseUrl}}"],
"path": ["api", "data", "1"]
},
"description": "기존 데이터 수정"
}
},
{
"name": "Delete Data",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/data/1",
"host": ["{{baseUrl}}"],
"path": ["api", "data", "1"]
},
"description": "데이터 삭제"
}
},
{
"name": "Server Info",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/",
"host": ["{{baseUrl}}"],
"path": [""]
},
"description": "서버 기본 정보 및 엔드포인트 목록"
}
}
]
}