는 : GET /project/{projectIdOrKey}이 같은 결과를 얻을 수 있습니다 :
{
"expand": "description,lead,url,projectKeys",
"self": "http://www.example.com/jira/rest/api/2/project/EX",
"id": "10000",
"key": "EX",
"description": "This project was created as an example for REST.",
"lead": {
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"name": "fred",
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"displayName": "Fred F. User",
"active": false
},
...
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/projectavatar?size=large&pid=10000",
"24x24": "http://www.example.com/jira/secure/projectavatar?size=small&pid=10000",
"16x16": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
"32x32": "http://www.example.com/jira/secure/projectavatar?size=medium&pid=10000"
},
"projectCategory": {
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000",
"id": "10000",
"name": "FIRST",
"description": "First Project Category"
}
}
avatarUrls 부분 개의 다른 해상도에서 프로젝트 아이콘의 URL을 언급한다.
하에서 avatarUrls 섹션 이어질 수도 있다는 것을
참고. 여기에는 프로젝트 책임자의 아바타에 대한 URL이 나와 있습니다.
고마워, 아래 API를 사용하여 프로젝트 아바타를 얻었습니다. /rest/api/2/project/{ProjectKey}/ –
이 URL은 브라우저에서 작동하지만 코드에서 GET 요청을 사용하여 이미지 데이터를 다운로드 한 다음 데이터를 이미지로 변환해야합니다. 정확한 이미지 URL이 아니므로이 이미지 URL을 imageView에 할당 할 수 없습니다. –
projectId (pid)가 있으면 url 아래의 pid 값을 대체하여 아바타를 얻을 수 있습니다. http://www.example.com/jira/secure/projectavatar?pid=10000 –