I am using Spring's restdocs with asciidoc. My use case is that I want to 
document a top-level map, f.e.:

{
  "param1" : "1",
  "param2" : "2"
}


This is the code snippet I use for documenting:

mockMvc.perform(post("/myUrl/")
        .contentType("someContentType")
        .content(new ObjectMapper().writeValueAsString
                (new HashMap<String, String>() {{
                    put("param1", "1");
                    put("param2", "2");
                }}))
        .header("aHeader"))
        .andExpect(status().isCreated())
        .andDo(document("document_name")
                .withRequestFields(
                        fieldWithPath("???")
                                .description("Description")
                                .type(OBJECT)));


My question is, what do I need to put in filedWithPath(), assuming that 
given url should be able to receive any keys and values?
Any help is greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to