TechQA.

Linked Questions

  • REST's 'resource communication mechanisms' and 'on-the-fly' improvement of a client's knowledge of them
  • Difference between a REST API and a web application
  • RESTful URL design for search
  • Give me a example of non-RESTful design?
  • How to describe part of a sub-resource using RESTful Web Services?
  • How do you implement resource "edit" forms in a RESTful way?
  • How to do REST-ful updates?
  • REST: How best to handle large lists
  • What are RESTful Web Services
  • Can someone explain “Hypertext as engine of application state" in simple terms
  • RESTful actions/services that don't correspond to an entity?
  • What are the best/common RESTful url verbs and actions?
  • REST tools support for development and testing
  • Why do we need anything more than HTTP GET, PUT, POST?
  • Transactions in REST?

Popular Questions

  • Partially applied generic function "cannot be cast to Nothing"
  • Peek and Pop not an option
  • Run JIRA in port 80 as root
  • Agar.io style ripple effect for canvas arcs
  • What is the difference between [ValidateModel] and a check of valid state in ASP.NET?
  • Passing shared_ptr to std::function (member function)
  • UWP location tracking even when the app was suspended
  • Docker – fix service IP addresses
  • Dynamic partition in hive
  • How to enable Indications on Client Configuration descriptor from iOS8

How do I get the value of a key if it contains a "/" in Rest Assured / java?

Asked by Udhay Gajula At 02 June at 04:35
Example json is
{
"model": {
"sub-model": {
"/example/1":"alaska",
"value": "Consistently"
}
}
}

I tried to fetch the value of the key -"/example/1" with the below code and I am getting java.lang.IllegalArgumentException: The parameter "1" was used but not defined. Define parameters using the JsonPath.params(...) function

String keyVal=given()
                .when()
                .get(url)
                .then().extract().path("model.cache.sub-model./example/1");
rest rest-assured
Original Q&A

0 Answers

Related Questions

  • What's the benefit of Connectedness?
  • What is the recommended/effective request payload for a REST PUT method?
  • REST Content-Type: Should it be based on extension or Accept header?
  • Modelling REST with hierarchy
  • Is it RESTful to limit resource properties?
  • RESTful URL design - how to query using OR between parameters
  • RESTful delete strategy
  • Event Based interaction style in REST
  • REST and RESTful - videos or pod casts
  • How would you design a RESTful voting system?
  • Questions on designing RESTful API for an existing web application
  • How do you deal with dynamic resources in a RESTful context?
  • REST Media type explosion
  • What are the best uses of REST services?
  • URL for a resource located on the local machine in REST ROA
  • Privacy
  • Terms
  • Cookies