jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61839] Jmeter not taking REST API response of type hal+json, hypermedia data
Date Fri, 01 Dec 2017 11:20:07 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61839

--- Comment #2 from Garima jain <garima.j9@gmail.com> ---
Hi, My Rest API is returning the response like this
{
        "_embedded": {
                "accounts": [{
                                "accountId": "Alias1",
                                "name": "Compte de Mr et Mme Dupont",
                                "usage": "PRIV",
                                "type": "CACC",
                                "Ccy": "EUR",
                                "psuStatus": "Co-account Holder",
                                "_links": {
                                        "balances": {
                                                "href":
"v1/accounts/Alias1/balances"
                                        },
                                        "transactions": {
                                                "href":
"v1/accounts/Alias1/transactions"
                                        }
                                }
                        }
                ]
        },
        "_links": {
                "self": {
                        "href": "v1/accounts"
                },
                "last": {
                        "href": "v1/accounts"
                },
                "next": {
                        "href": "v1/accounts"
                },
                "prev": {
                        "href": "v1/accounts"
                },
                "first": {
                        "href": "v1/accounts"
                }
        }
}

it is a pageable response when i am hitting the api through jmeter i am getting
response like below
{
  "page" : {
    "size" : 10,
    "totalElements" : 0,
    "totalPages" : 0,
    "number" : 0
  }
}
only page info which is json data, JMETER unable to parse embedded
resource/links which is a part of response.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message