도입사의 테스트와 실제 환경 조회
curl --request GET \
--url https://meterengine.com/v1/organization/environments \
--header 'Authorization: Bearer <token>'const url = 'https://meterengine.com/v1/organization/environments';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"environments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "test"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}업무 환경
도입사의 테스트와 실제 환경 조회
기존 미분류 데이터는 두 환경에 복사하거나 귀속시키지 않는다.
GET
/
v1
/
organization
/
environments
도입사의 테스트와 실제 환경 조회
curl --request GET \
--url https://meterengine.com/v1/organization/environments \
--header 'Authorization: Bearer <token>'const url = 'https://meterengine.com/v1/organization/environments';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"environments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "test"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}