0% found this document useful (0 votes)
46 views9 pages

LL4 Testarea Software

The document contains 9 requests made to a JIRA API to create, modify, and delete issues and comments. Request 1 creates a new issue. Requests 2-4 add and retrieve comments for an issue. Requests 5-6 edit and retrieve a specific comment. Requests 7-8 delete a comment and watcher. Request 9 deletes an issue.

Uploaded by

Anya Mr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views9 pages

LL4 Testarea Software

The document contains 9 requests made to a JIRA API to create, modify, and delete issues and comments. Request 1 creates a new issue. Requests 2-4 add and retrieve comments for an issue. Requests 5-6 edit and retrieve a specific comment. Requests 7-8 delete a comment and watcher. Request 9 deletes an issue.

Uploaded by

Anya Mr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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": "[email protected]",
                "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": "[email protected]",
                "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": "[email protected]",
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": "[email protected]",
        "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": "[email protected]",
        "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