spring-restdocs

    0熱度

    2回答

    我開始使用Spring REST Docs,但我錯過了一個不錯的功能......「試用它!」按鈕,其中包含一個HTML表單來測試API。我得到捲曲鏈接確定;但我通常使用放蕩形式。 在Spring REST Docs中有這樣一個簡單的方法嗎? 謝謝

    1熱度

    1回答

    使用gradle生成asciidoctor文檔,您需要在命令行中輸入gradle asciidoctor,此文檔由此任務生成。 有了maven,我可以用mvn package生成asciidoctor文檔。但是這個包裹了所有的項目。有沒有辦法只使用mvn來生成文檔而不打包所有項目?

    0熱度

    1回答

    我是Spring REST Docs的新手,並使用最新的1.2.1.Release。我有工作RESTful控制器,我有一堆工作測試。現在我正在介紹文檔方面,以便爲即將登場的新開發人員記錄這些文檔。 我已經pom.xml中配置這樣的: <dependency> <groupId>org.springframework.restdocs</groupId> <artifactI

    0熱度

    1回答

    如何在創建stub from a producer with restdocs時使用stubsPerConsumer功能? 如果這不被支持,是否有可能從groovy DSL合同生成asciidoc片段? 更新 它看起來像baseClassMappings使用帶有restdocs彈簧雲的合同時,不支持。有沒有人找到一個聰明的方式來使用程序集插件(不需要爲每個消費者進行大量手動設置)來使用它?

    1熱度

    1回答

    下午好, 我一直在試圖讓spring-asciidoctor-extensions與我的文檔一起工作,但由於某些原因,maven找不到依賴關係。 後,我的體型嘗試,我得到了錯誤: Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.5:process-asciidoc (generate-docs) on proj

    1熱度

    1回答

    The documentation對於org.springframework.restdocs.RestDocumentation表明它已被棄用。 我想使用這個類在這樣的JUnit測試: @Rule public RestDocumentation restDocumentation = new RestDocumentation("target/generated-snippets");

    1熱度

    1回答

    當使用REST Assured和REST Docs時,我有一個問題,請求的端口已更新,但響應中的所有HATEOAS鏈接指向任何解決測試運行。 從REST文檔的文檔,我看到如何使用預處理器更新的要求: .addFilter(document("{class-name}/{method-name}/{step}", preprocessRequest( modifyUris().scheme(

    -1熱度

    1回答

    我有以下asciidoc我想要有多個節標題。 = REST API == Token Tokens are used for making authenticated requests to the API. === Getting a token This is how you get a token 但它最終看起來像這樣,第二部分標題(令牌)沒有工作。

    1熱度

    1回答

    文檔的URL我使用彈簧安置文件,我可以看到我的.adoc文件在我裏面有 public JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("target/generated-snippets"); 指定的路徑正確生成,現在我想看看它在我啓動服務器時處於行動狀態。 我MockMvc這個樣子 thi

    1熱度

    1回答

    我正在使用Spring Rest Doc,並且正在使用mvn:install生成文檔的HTML文件。 現在我被要求在沒有maven的情況下生成這個文件,在我們的項目中我們不打算使用它。 有沒有什麼辦法可以在沒有Maven安裝任務的情況下生成它? 謝謝