매니페스트 검증
curl --request POST \
--url https://api.example.com/v1/data-apps/validate \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps/validate"
payload = {
"manifest": "<string>",
"files": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({manifest: '<string>', files: {}, secrets: {}})
};
fetch('https://api.example.com/v1/data-apps/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/data-apps/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'manifest' => '<string>',
'files' => [
],
'secrets' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps/validate"
payload := strings.NewReader("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/data-apps/validate")
.header("Content-Type", "application/json")
.body("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"card": {}
}Publishing
매니페스트 검증
쓰기 없이 매니페스트 전체 검증. 이슈 목록과 미리보기 카드.
POST
/
v1
/
data-apps
/
validate
매니페스트 검증
curl --request POST \
--url https://api.example.com/v1/data-apps/validate \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps/validate"
payload = {
"manifest": "<string>",
"files": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({manifest: '<string>', files: {}, secrets: {}})
};
fetch('https://api.example.com/v1/data-apps/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/data-apps/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'manifest' => '<string>',
'files' => [
],
'secrets' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps/validate"
payload := strings.NewReader("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/data-apps/validate")
.header("Content-Type", "application/json")
.body("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"card": {}
}POST https://api-datahub.octoparse.com/v1/data-apps/validate
인증: API 키 필요(Authorization: Bearer <API Key>).
2단계 게시의 1단계: 구조, 블록 간 규칙, 자체 게시 가드레일, 코드 패키지 검사, 파일 이름 검사를 모두 검증합니다(게시 시와 같은 규칙). 문제 목록과 미리보기 카드를 반환합니다. 통과 여부를 결정하는 유일한 기준은 이 엔드포인트이며, 문서의 필드 표로 추측하지 마세요.
요청
요청 body
string
필수
YAML 또는 JSON 문자열로 된 매니페스트 원본 텍스트.
object
첨부 파일. 키는 상대 경로, 값은 텍스트입니다(code 유형이거나 README가 있을 때 사용).
object
시크릿 이름과 평문의 맵. 검증 엔드포인트는 이를 저장하지 않습니다.
요청 예시
curl -X POST \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"manifest": "spec_version: \"0.2\"\nidentity:\n app_name: reviews-query\n name: Product review lookup\n …"}' \
"https://api-datahub.octoparse.com/v1/data-apps/validate"
응답
200 성공
{
"data": {
"valid": false,
"errors": [
{
"path": "$",
"message": "'identity' is a required property"
},
{
"path": "$",
"message": "'input' is a required property"
},
"…"
],
"card": null
}
}
data로 감쌉니다. 필드:
boolean
필수
검증 통과 여부.
object
유효하면 미리보기 카드, 유효하지 않으면
null.오류
| HTTP | code | category | 설명 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API 키 누락 또는 무효. |
{"error": {code, category, message, retryable}}입니다. 오류 참고.