Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit e64b58b

Browse files
authored
2.0.1 Release (#223)
1 parent 499de90 commit e64b58b

File tree

12 files changed

+153
-59
lines changed

12 files changed

+153
-59
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ from the Introducing Spring Auto REST Docs talk at Spring IO 2017 are also avail
2222

2323
## Documentation
2424

25-
[Current 2.0.0 release](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v2.0.0/docs/index.html) reference guide (based on Spring REST Docs 2.x).
25+
[Current 2.0.1 release](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v2.0.1/docs/index.html) reference guide (based on Spring REST Docs 2.x).
2626

27-
[Current 1.0.12 release](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v1.0.12/docs/index.html) reference guide (based on Spring REST Docs 1.x).
27+
[Current 1.0.13 release](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v1.0.13/docs/index.html) reference guide (based on Spring REST Docs 1.x).
2828

29-
Latest master [2.0.1-SNAPSHOT](https://scacap.github.io/spring-auto-restdocs) reference guide.
29+
Latest master [2.0.2-SNAPSHOT](https://scacap.github.io/spring-auto-restdocs) reference guide.
3030

31-
Older releases:
31+
Older releases:
32+
[2.0.0](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v2.0.0/docs/index.html),
33+
[1.0.12](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v1.0.12/docs/index.html),
3234
[1.0.11](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v1.0.11/docs/index.html),
3335
[1.0.10](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v1.0.10/docs/index.html),
3436
[1.0.9](https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/v1.0.9/docs/index.html),

docs/index.html

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@
432432
<h1>Spring Auto REST Docs</h1>
433433
<div class="details">
434434
<span id="author" class="author">Scalable Capital</span><br>
435-
<span id="revnumber">version 2.0.1-SNAPSHOT</span>
435+
<span id="revnumber">version 2.0.1</span>
436436
</div>
437437
<div id="toc" class="toc2">
438438
<div id="toctitle">Table of Contents</div>
@@ -602,7 +602,7 @@ <h3 id="gettingstarted-usage"><a class="link" href="#gettingstarted-usage">Usage
602602
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
603603
&lt;groupId&gt;capital.scalable&lt;/groupId&gt;
604604
&lt;artifactId&gt;spring-auto-restdocs-core&lt;/artifactId&gt;
605-
&lt;version&gt;2.0.0&lt;/version&gt;
605+
&lt;version&gt;2.0.1&lt;/version&gt;
606606
&lt;scope&gt;test&lt;/scope&gt; <i class="conum" data-value="1"></i><b>(1)</b>
607607
&lt;/dependency&gt;
608608

@@ -639,7 +639,7 @@ <h3 id="gettingstarted-usage"><a class="link" href="#gettingstarted-usage">Usage
639639
&lt;docletArtifact&gt;
640640
&lt;groupId&gt;capital.scalable&lt;/groupId&gt;
641641
&lt;artifactId&gt;spring-auto-restdocs-json-doclet&lt;/artifactId&gt;
642-
&lt;version&gt;2.0.0&lt;/version&gt;
642+
&lt;version&gt;2.0.1&lt;/version&gt;
643643
&lt;/docletArtifact&gt;
644644
&lt;destDir&gt;generated-javadoc-json&lt;/destDir&gt; <i class="conum" data-value="3"></i><b>(3)</b>
645645
&lt;reportOutputDirectory&gt;${project.build.directory}&lt;/reportOutputDirectory&gt; <i class="conum" data-value="3"></i><b>(3)</b>
@@ -684,8 +684,8 @@ <h3 id="gettingstarted-usage"><a class="link" href="#gettingstarted-usage">Usage
684684
}
685685

686686
dependencies {
687-
testCompile group: 'capital.scalable', name: 'spring-auto-restdocs-core', version: '2.0.0' <i class="conum" data-value="1"></i><b>(1)</b>
688-
jsondoclet group: 'capital.scalable', name: 'spring-auto-restdocs-json-doclet', version: '2.0.0'
687+
testCompile group: 'capital.scalable', name: 'spring-auto-restdocs-core', version: '2.0.1' <i class="conum" data-value="1"></i><b>(1)</b>
688+
jsondoclet group: 'capital.scalable', name: 'spring-auto-restdocs-json-doclet', version: '2.0.1'
689689
}
690690

691691
task jsonDoclet(type: Javadoc, dependsOn: compileJava) {
@@ -1235,6 +1235,18 @@ <h4 id="_configuration_4"><a class="link" href="#_configuration_4">Configuration
12351235
</div>
12361236
<div class="sect2">
12371237
<h3 id="snippets-section"><a class="link" href="#snippets-section">Section snippet</a></h3>
1238+
<div class="admonitionblock note">
1239+
<table>
1240+
<tr>
1241+
<td class="icon">
1242+
<i class="fa icon-note" title="Note"></i>
1243+
</td>
1244+
<td class="content">
1245+
Section snippets only work if AsciiDoc is used. Markdown is not supported, because Markdown has no includes.
1246+
</td>
1247+
</tr>
1248+
</table>
1249+
</div>
12381250
<div class="paragraph">
12391251
<p>The section snippet combines most common snippets into one convenient file.
12401252
It helps you being even more lazy, because a single line of AsciiDoc is sufficient to document one endpoint.
@@ -1252,14 +1264,14 @@ <h3 id="snippets-section"><a class="link" href="#snippets-section">Section snipp
12521264
<pre class="highlightjs highlight"><code class="language-asciidoc hljs" data-lang="asciidoc">[[resources-{{link}}]]
12531265
=== {{title}}
12541266

1255-
include::{snippets}/{{path}}/auto-method-path.adoc[]
1267+
include::auto-method-path.adoc[]
12561268

1257-
include::{snippets}/{{path}}/auto-description.adoc[]
1269+
include::auto-description.adoc[]
12581270
{{#sections}}
12591271

12601272
==== {{header}}
12611273

1262-
include::{snippets}/{{path}}/{{fileName}}.adoc[]
1274+
include::{{fileName}}.adoc[]
12631275
{{/sections}}</code></pre>
12641276
</div>
12651277
</div>
@@ -1848,8 +1860,8 @@ <h4 id="contributing-building-build"><a class="link" href="#contributing-buildin
18481860
</div>
18491861
<div id="footer">
18501862
<div id="footer-text">
1851-
Version 2.0.1-SNAPSHOT<br>
1852-
Last updated 2018-03-23 17:48:09 CET
1863+
Version 2.0.1<br>
1864+
Last updated 2018-03-29 11:56:38 CEST
18531865
</div>
18541866
</div>
18551867
<link rel="stylesheet" href="highlight/styles/github.min.css">

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>capital.scalable</groupId>
77
<artifactId>spring-auto-restdocs-parent</artifactId>
8-
<version>2.0.1-SNAPSHOT</version>
8+
<version>2.0.1</version>
99
<packaging>pom</packaging>
1010

1111
<name>Spring Auto REST Docs Parent POM</name>

samples/java-webmvc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ apply plugin: "io.spring.dependency-management"
1818
apply plugin: "org.asciidoctor.convert"
1919

2020
group = "capital.scalable"
21-
version = "2.0.1-SNAPSHOT"
21+
version = "2.0.1"
2222

2323
description = """Spring Auto REST Docs Example Project"""
2424

samples/java-webmvc/generated-docs/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="generator" content="Asciidoctor 1.5.6.1">
8-
<title>Example API Documentation</title>
8+
<title>Java Web MVC Example API Documentation</title>
99
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
1010
<style>
1111
/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */
@@ -427,7 +427,7 @@
427427
</head>
428428
<body class="book toc2 toc-right">
429429
<div id="header">
430-
<h1>Example API Documentation</h1>
430+
<h1>Java Web MVC Example API Documentation</h1>
431431
<div id="toc" class="toc2">
432432
<div id="toctitle">Table of Contents</div>
433433
<ul class="sectlevel0">
@@ -1129,7 +1129,7 @@ <h4 id="_example_request"><a class="anchor" href="#_example_request"></a><a clas
11291129
<div class="content">
11301130
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">$ curl 'http://localhost:8080/items' -i -X POST \
11311131
-H 'Content-Type: application/json' \
1132-
-H 'Authorization: Bearer e9f9040c-925f-482b-8bf6-3601a1693407' \
1132+
-H 'Authorization: Bearer 23d918a4-653f-4e61-9b46-b5e72fd2ba7c' \
11331133
-d '{"description":"Hot News"}'</code></pre>
11341134
</div>
11351135
</div>
@@ -1366,7 +1366,7 @@ <h4 id="_example_request_2"><a class="anchor" href="#_example_request_2"></a><a
13661366
<div class="content">
13671367
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">$ curl 'http://localhost:8080/items/1' -i -X PUT \
13681368
-H 'Content-Type: application/json' \
1369-
-H 'Authorization: Bearer e9f9040c-925f-482b-8bf6-3601a1693407' \
1369+
-H 'Authorization: Bearer 23d918a4-653f-4e61-9b46-b5e72fd2ba7c' \
13701370
-d '{"description":"Hot News"}'</code></pre>
13711371
</div>
13721372
</div>
@@ -1472,7 +1472,7 @@ <h4 id="_example_request_3"><a class="anchor" href="#_example_request_3"></a><a
14721472
<div class="listingblock">
14731473
<div class="content">
14741474
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">$ curl 'http://localhost:8080/items/1' -i -X DELETE \
1475-
-H 'Authorization: Bearer e9f9040c-925f-482b-8bf6-3601a1693407'</code></pre>
1475+
-H 'Authorization: Bearer 23d918a4-653f-4e61-9b46-b5e72fd2ba7c'</code></pre>
14761476
</div>
14771477
</div>
14781478
</div>
@@ -1961,25 +1961,25 @@ <h4 id="_example_response_5"><a class="anchor" href="#_example_response_5"></a><
19611961
"sorted" : false,
19621962
"unsorted" : true
19631963
},
1964+
"offset" : 0,
19641965
"pageSize" : 20,
19651966
"pageNumber" : 0,
1966-
"offset" : 0,
19671967
"paged" : true,
19681968
"unpaged" : false
19691969
},
19701970
"total" : 1,
1971-
"last" : true,
1972-
"totalPages" : 1,
19731971
"totalElements" : 1,
1974-
"first" : true,
1972+
"totalPages" : 1,
1973+
"last" : true,
1974+
"size" : 20,
1975+
"number" : 0,
1976+
"numberOfElements" : 1,
19751977
"sort" : {
19761978
"orders" : [ ],
19771979
"sorted" : false,
19781980
"unsorted" : true
19791981
},
1980-
"numberOfElements" : 1,
1981-
"size" : 20,
1982-
"number" : 0
1982+
"first" : true
19831983
}</code></pre>
19841984
</div>
19851985
</div>
@@ -2554,7 +2554,7 @@ <h4 id="_example_request_response_3"><a class="anchor" href="#_example_request_r
25542554
</div>
25552555
<div id="footer">
25562556
<div id="footer-text">
2557-
Last updated 2018-01-16 08:44:06 CET
2557+
Last updated 2018-03-29 11:51:15 CEST
25582558
</div>
25592559
</div>
25602560
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">

samples/java-webmvc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3737
<start-class>capital.scalable.restdocs.example.Application</start-class>
3838
<spring-restdocs.version>2.0.0.RELEASE</spring-restdocs.version>
39-
<spring-auto-restdocs.version>2.0.1-SNAPSHOT</spring-auto-restdocs.version>
39+
<spring-auto-restdocs.version>2.0.1</spring-auto-restdocs.version>
4040
</properties>
4141

4242
<dependencies>

0 commit comments

Comments
 (0)