You are on page 1of 9

Request number #01

Type POST
Task Adaugare bug
URL http://localhost:8080/rest/api/2/issue
Headers Content-Type application/json
Cookie JSESSIONID=CF9D9C9DA33F66FF57F399319929FB7A

Body {
    "fields": {
        "project": {
            "key": "HEL"
        },
        "summary": "Ceva de facut",
        "description": "Caroce, fa!",
        "issuetype": {
            "name": "Ошибка"
        },
        "priority": {
            "name": "Medium"
        },
        "labels": [
            "Trebuie!"
        ]

    }
}

Response

{
    "id": "10001",
    "key": "HEL-2",
    "self": "http://localhost:8080/rest/api/2/issue/10001"
}

Proof
Request number #02
Type POST
Task Adaugarea comentariilor
URL http://localhost:8080/rest/api/2/issue/HEL-1/comment
Headers Content-Type application/json
Cookie JSESSIONID=CF9D9C9DA33F66FF57F399319929FB7A

Body {
    "body": "Trebuie de facut cit mai repede! Cum am vorbit in meeting 
=)"
}

Response
Proof
Request number #03
Type PUT
Task Asignam task-ul
URL http://localhost:8080/rest/api/2/issue/HEL-2/assignee
Headers Content-Type application/json
Cookie JSESSIONID=CF9D9C9DA33F66FF57F399319929FB7A

Body {
    "name": "mereuta.ana"
}

Response 201 Created


Proof

Request number #04


Type GET
Task Preia toate comentariile
URL http://localhost:8080/rest/api/2/issue/HEL-2/comment
Headers Content-Type application/json
Cookie JSESSIONID=CF9D9C9DA33F66FF57F399319929FB7A

Body {
    "name":"ana"
}
Response 204 No Content
Proof {
    "startAt": 0,
    "maxResults": 1048576,
    "total": 1,
    "comments": [
        {
            "self": "http://localhost:8080/rest/api/2/issue/10001/
comment/10002",
            "id": "10002",
            "author": {
                "self": "http://localhost:8080/rest/api/2/user?
username=mereuta.ana",
                "name": "mereuta.ana",
                "key": "JIRAUSER10000",
                "emailAddress": "mereuta.ana@isa.utm.md",
                "avatarUrls": {
                    "48x48": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=48",
                    "24x24": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=24",
                    "16x16": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=16",
                    "32x32": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=32"
                },
                "displayName": "mereuta.ana@isa.utm.md",
                "active": true,
                "timeZone": "EET"
            },
            "body": "Trebuie de facut cit mai repede! Cum am vorbit in 
meeting =)",
            "updateAuthor": {
                "self": "http://localhost:8080/rest/api/2/user?
username=mereuta.ana",
                "name": "mereuta.ana",
                "key": "JIRAUSER10000",
                "emailAddress": "mereuta.ana@isa.utm.md",
Request number #05
Type PUT
Task Editare comentariu dupa id
URL http://localhost:8080/rest/api/2/issue/HEL-2/comment/10002
Headers Content-Type application/json
Cookie JSESSIONID=CF9D9C9DA33F66FF57F399319929FB7A

Body {
    "body":"Facem cum am discutat =)"
}

Response 204 No Content


Proof
Request number #06
Type GET
Task Preia un anumit comentariu dupa id
URL http://localhost:8080/rest/api/2/issue/HEL-2/comment/10002
Headers Content-Type application/json
Response 200 OK
Proof {
    "self": "http://localhost:8080/rest/api/2/issue/10001/comment/
10002",
    "id": "10002",
    "author": {
        "self": "http://localhost:8080/rest/api/2/user?
username=mereuta.ana",
        "name": "mereuta.ana",
        "key": "JIRAUSER10000",
        "emailAddress": "mereuta.ana@isa.utm.md",
        "avatarUrls": {
            "48x48": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=48",
            "24x24": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=24",
            "16x16": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=16",
            "32x32": "https://www.gravatar.com/avatar/
56ebd82d2459eb8dadf15323fd345ff9?d=mm&s=32"
        },
        "displayName": "mereuta.ana@isa.utm.md",
        "active": true,
        "timeZone": "EET"
    },
    "body": "Facem cum am discutat =)",
    "updateAuthor": {
Request number #07
Type DELETE
Task Stergerea unui anumit comentariu dupa id
URL http://localhost:8080/rest/api/2/issue/HEL-2/comment/10002
Headers Content-Type application/json
Response 204 no content
Proof
Request number #08
Type DELETE
Task Delete watcher ‘Ana’ under LLTS-2
URL http://localhost:8080/rest/api/2/issue/HEL-2/
Headers Content-Type application/json
Cookie JSESSIONID=C973587E4BFF761529E39DB1F40E600F
Response 204 No
Content
Proof
Request number #09
Type DELETE
Task Delete issue LLTS-2
URL http://localhost:8080/rest/api/2/issue/TSLLVP-14
Headers Content-Type application/json
Cookie JSESSIONID=C973587E4BFF761529E39DB1F40E600F
Body
Response 204 No Content
Proof

You might also like