콘텐츠로 이동

API 매개변수

Receive rules참고 Scope 의 entry샘플
jsonjson serialization요청 본문&응답`json:“foo”`
경로라우트 매개변수요청 본문`path:“id”`
form해당 항목의 동작과 사용법을 설명합니다.요청 본문`form:“name”`
헤더HTTP Request Receipt Identifier요청 본문`header:“Content-Length”`

:::note Warm reminder

type Foo {
Name string `json:"name" form:"name"`
}

:::

Receive rules참고샘플
optional이 항목은 해당 기능의 사용 방법, 설정, 주의 사항을 설명합니다.`json:“foo,optional”`
옵션Current 매개변수 can 만 receive enumeration value`json:“gender,options=foo|bar”`
기본값Current Argument 기본값`json:“gender,default=male”`
range해당 항목의 동작과 사용법을 설명합니다.`json:“age,range=[0:120]”`

:::note Range expression rules

  1. 이 항목은 해당 기능의 사용 방법, 설정, 주의 사항을 설명합니다. :::