Get available issue templates for a repository
GET
/repos/{owner}/{repo}/issue_templates
const url = 'https://gitea.com/api/v1/repos/example/example/issue_templates';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/repos/example/example/issue_templates \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
Responses
Section titled “ Responses ”IssueTemplates
Media typeapplication/json
Array<object>
IssueTemplateRepresents an issue template for a repository
object
about
string
assignees
IssueTemplateStringSlice
Array<string>
body
Array<object>
IssueFormFieldRepresents a form field
object
attributes
object
key
additional properties
id
string
type
string
validations
object
key
additional properties
visible
Array<string>
content
string
file_name
string
labels
IssueTemplateStringSlice
Array<string>
name
string
ref
string
title
string
Example
[ { "body": [ { "type": "markdown", "visible": [ "form" ] } ] }]APINotFound is a not found empty response