jeudi 20 avril 2017

Cannot add extra information to documentation snippet with Spring RestDoc

I try to add additional column to the snippet with Spring RestDoc, snippet generated, but column not added.

It's test with generate snippet:

.andDo(document("get-new-tokens-by-refresh-token",
                    requestHeaders(
                            headerWithName(CONTENT_TYPE).attributes(key("Value").value("application/x-www-form-urlencoded")).description("aaa"))));

Method attributes add extra information.

It's generated snippet:

|===
|Name|Description

|`Content-Type`
|aaa
|===

What am I doing wrong?

|===
|Name|Description

|`Value`
|application/x-www-form-urlencoded
|`Content-Type`
|aaa

|===

I will be glad to any help!)

Aucun commentaire:

Enregistrer un commentaire