Skip to content
Structly Docs
한국어

stly

stly endpoints

On this page

This page is generated from the public contract. Descriptions are shown in the original Korean.

stly endpoints create#

Endpoint 생성

  • HTTP request: POST /api/endpoints
  • Authentication modes: Agent token, User session
  • Changes records: Yes
  • Input JSON (--input) required

Check the input JSON structure with stly schema endpoints create.

Options

NameTypeRequiredDescription
--inputstringYesJSON 원문 파일 또는 stdin(-)
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: api_id, created_at, deprecated, description, examples, external_references, headers, id, method, parameters, path, request_body, responses, security, source, summary, updated_at

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints create --input input.json

stly endpoints delete#

Endpoint 삭제

  • HTTP request: DELETE /api/endpoints/{id}
  • Authentication modes: Agent token, User session
  • Changes records: Yes
  • --if-match required

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--if-matchstringYes상세 GET에서 얻은 단일 strong ETag
--fieldsstringNo응답 최상위 필드, 쉼표로 구분

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints delete 00000000-0000-0000-0000-000000000001 --if-match '"상세 GET의 ETag"'

stly endpoints get#

Endpoint 상세 조회

  • HTTP request: GET /api/endpoints/{id}
  • Authentication modes: Agent token, User session
  • Changes records: No

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: api_id, created_at, deprecated, description, examples, external_references, headers, id, method, parameters, path, request_body, responses, security, source, summary, updated_at

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints get 00000000-0000-0000-0000-000000000001

stly endpoints list#

Endpoint 목록 조회

  • HTTP request: GET /api/endpoints
  • Authentication modes: Agent token, User session
  • Changes records: No

Options

NameTypeRequiredDescription
--apistringNo소속 API ID(선택, 지정 시 해당 API 소속 Endpoint만 조회)
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: api_id, created_at, deprecated, description, examples, external_references, headers, id, method, parameters, path, request_body, responses, security, source, summary, updated_at
--pagestringNo1 이상 정수. page·per-page 중 하나라도 있으면 페이지 모드
--per-pagestringNo1~500 정수, 생략 시 100
--qstringNopath·summary·description 필드 중 하나의 대소문자 구분 리터럴 부분 일치 검색. 본문은 검색하지 않으며 정규식·와일드카드를 지원하지 않습니다
--sortstringNo리소스 기본 필드명 또는 - 접두 역순만 허용

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints list --api 00000000-0000-0000-0000-000000000001 --q "검색어"

stly endpoints release-source#

Endpoint의 스펙 출처 해제

  • HTTP request: POST /api/endpoints/{id}/release-source
  • Authentication modes: Agent token, User session
  • Changes records: Yes
  • --if-match required

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--if-matchstringYes상세 GET에서 얻은 단일 strong ETag
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: api_id, created_at, deprecated, description, examples, external_references, headers, id, method, parameters, path, request_body, responses, security, source, summary, updated_at

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints release-source 00000000-0000-0000-0000-000000000001 --if-match '"상세 GET의 ETag"'

stly endpoints security#

Endpoint 적용 인증 조회

  • HTTP request: GET /api/endpoints/{id}/security
  • Authentication modes: Agent token, User session
  • Changes records: No

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: api_id, endpoint_id, origin, requirements, schemes, state

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints security 00000000-0000-0000-0000-000000000001

stly endpoints update#

Endpoint 수정

  • HTTP request: PUT /api/endpoints/{id}
  • Authentication modes: Agent token, User session
  • Changes records: Yes
  • Input JSON (--input) required
  • --if-match required

Check the input JSON structure with stly schema endpoints update.

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--if-matchstringYes상세 GET에서 얻은 단일 strong ETag
--inputstringYesJSON 원문 파일 또는 stdin(-)
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: api_id, created_at, deprecated, description, examples, external_references, headers, id, method, parameters, path, request_body, responses, security, source, summary, updated_at

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints update 00000000-0000-0000-0000-000000000001 --input input.json --if-match '"상세 GET의 ETag"'

stly endpoints validate#

Endpoint 생성·수정 후보 사전 검증(저장 없음)

  • HTTP request: --operation create POST /api/endpoints/validate, --operation update PUT /api/endpoints/{id}/validate
  • Authentication modes: Agent token, User session
  • Changes records: No
  • Input JSON (--input) required

Check the input JSON structure with stly schema endpoints validate --operation create|update.

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--inputstringYesJSON 원문 파일 또는 stdin(-)
--operationstringYes검증할 작업 종류. 생성 후보는 create, 수정 후보는 update
Values: create, update
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
--if-matchstringNo상세 GET에서 얻은 단일 strong ETag

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Behavior

  1. 실제 서버를 호출해 입력·참조·중복·If-Match를 검사하며 저장하지 않습니다. 도메인 규칙은 서버가 판단합니다.
  2. --operation create: 대상 id·If-Match 금지. update: 대상 id·단일 strong If-Match 필수, 부모 옵션 금지
  3. --dry-run: credential 접근·HTTP 요청·파일 변경 없이 요청 계획만 출력
  4. 성공은 관찰 시점의 유효성으로 저장 성공·ID 예약·충돌 방지를 보장하지 않습니다. 자동 저장·자동 재시도하지 않습니다.

Example

stly endpoints validate --operation create --input input.json
stly endpoints validate 00000000-0000-0000-0000-000000000001 --operation update --input input.json --if-match '"상세 GET의 ETag"'

stly endpoints workflows#

Endpoint 호출 Workflow 목록

  • HTTP request: GET /api/endpoints/{id}/workflows
  • Authentication modes: Agent token, User session
  • Changes records: No

Arguments

  • id: ID

Options

NameTypeRequiredDescription
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: created_at, description, handle, id, name, step_count, steps, summary, updated_at, workflow_key

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly endpoints workflows 00000000-0000-0000-0000-000000000001