重定向

list of redirects

get

Get all redirects

授权
Authorizationstring必填

Enter token in format (Bearer )

响应
200

success

application/json
get
/redirect
200

success

create redirect

post
授权
Authorizationstring必填

Enter token in format (Bearer )

请求体
urlstring可选

URL

Example: www.example.com
destinationstring可选

Destination URL

Example: https://www.google.com
destinationsarray[string]可选

More Destinations

Example: []
typestring可选

Type

Example: 301
forward_pathboolean可选

whether forwarding slug to destination

Example: false
forward_queryboolean可选

whether forwarding query params to destination

Example: false
响应
200

success

application/json
post
/redirect
200

success

Get details about a specific redirect by id

get
授权
Authorizationstring必填

Enter token in format (Bearer )

路径参数
idstring · string必填

redirect id

Example: 1639562002248499321
响应
200

success

application/json
get
/redirect/{id}
200

success

update redirect

put
授权
Authorizationstring必填

Enter token in format (Bearer )

路径参数
idstring · string必填

redirect id

Example: 1639562002248499321
请求体
urlstring可选

URL

Example: www.example.com
destinationstring可选

Destination URL

Example: https://www.google.com
destinationsarray[string]可选

More Destinations

Example: []
typestring可选

Type

Example: 301
forward_pathboolean可选

whether forwarding slug to destination

Example: false
forward_queryboolean可选

whether forwarding query params to destination

Example: false
响应
200

success

application/json
put
/redirect/{id}
200

success

delete redirect

delete
授权
Authorizationstring必填

Enter token in format (Bearer )

路径参数
idstring · string必填

redirect id

Example: 1639562002248499321
响应
200

success

application/json
delete
/redirect/{id}
200

success

这有帮助吗?