Fixed test issue in example-spring-boot-mvc
This commit is contained in:
@@ -93,4 +93,4 @@ The converter allows to build an AsciiDoc or Markdown file via the Builder patte
|
|||||||
String markdown = new MarkdownBuilder().documentTitle("Title")
|
String markdown = new MarkdownBuilder().documentTitle("Title")
|
||||||
.sectionTitleLevel1("Section1").paragraph("Text text")
|
.sectionTitleLevel1("Section1").paragraph("Text text")
|
||||||
.sectionTitleLevel2("Code examples").listing("Code example").toString();
|
.sectionTitleLevel2("Code examples").listing("Code example").toString();
|
||||||
--
|
----
|
||||||
@@ -3,13 +3,14 @@ My Apps API Description
|
|||||||
Version: 1.0
|
Version: 1.0
|
||||||
|
|
||||||
== Create a quota.
|
== Create a quota.
|
||||||
|
----
|
||||||
|
PUT /quotas
|
||||||
|
----
|
||||||
|
|
||||||
=== Description
|
=== Description
|
||||||
:hardbreaks:
|
:hardbreaks:
|
||||||
Create a quota allows bla bla bla bla
|
Create a quota allows bla bla bla bla
|
||||||
|
|
||||||
----
|
|
||||||
PUT /quotas
|
|
||||||
----
|
|
||||||
=== Parameters
|
=== Parameters
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
@@ -20,13 +21,13 @@ body,body,MailStorageQuota,true
|
|||||||
=== Responses
|
=== Responses
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
Code,Description,Schema
|
Code,Description
|
||||||
200,success,com.wordnik.swagger.models.properties.RefProperty@4c4d513a
|
200,success
|
||||||
201,Created,null
|
201,Created
|
||||||
401,Unauthorized,null
|
401,Unauthorized
|
||||||
204,null,null
|
204,null
|
||||||
403,Forbidden,null
|
403,Forbidden
|
||||||
404,Not Found,null
|
404,Not Found
|
||||||
|===
|
|===
|
||||||
|
|
||||||
=== Consumes
|
=== Consumes
|
||||||
@@ -36,13 +37,14 @@ Code,Description,Schema
|
|||||||
* */*
|
* */*
|
||||||
|
|
||||||
== Get a quotas.
|
== Get a quotas.
|
||||||
|
----
|
||||||
|
GET /quotas/quotas/{quotaId}
|
||||||
|
----
|
||||||
|
|
||||||
=== Description
|
=== Description
|
||||||
:hardbreaks:
|
:hardbreaks:
|
||||||
Get a quota allows bla bla bla bla
|
Get a quota allows bla bla bla bla
|
||||||
|
|
||||||
----
|
|
||||||
GET /quotas/quotas/{quotaId}
|
|
||||||
----
|
|
||||||
=== Parameters
|
=== Parameters
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
@@ -53,11 +55,11 @@ quotaId,path,quotaId,true
|
|||||||
=== Responses
|
=== Responses
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
Code,Description,Schema
|
Code,Description
|
||||||
200,success,com.wordnik.swagger.models.properties.RefProperty@38543ec
|
200,success
|
||||||
401,Unauthorized,null
|
401,Unauthorized
|
||||||
403,Forbidden,null
|
403,Forbidden
|
||||||
404,Not Found,null
|
404,Not Found
|
||||||
|===
|
|===
|
||||||
|
|
||||||
=== Consumes
|
=== Consumes
|
||||||
@@ -67,13 +69,14 @@ Code,Description,Schema
|
|||||||
* */*
|
* */*
|
||||||
|
|
||||||
== Delete a quota.
|
== Delete a quota.
|
||||||
|
----
|
||||||
|
DELETE /quotas/quotas/{quotaId}
|
||||||
|
----
|
||||||
|
|
||||||
=== Description
|
=== Description
|
||||||
:hardbreaks:
|
:hardbreaks:
|
||||||
Delete a quotas allows bla bla bla bla
|
Delete a quotas allows bla bla bla bla
|
||||||
|
|
||||||
----
|
|
||||||
DELETE /quotas/quotas/{quotaId}
|
|
||||||
----
|
|
||||||
=== Parameters
|
=== Parameters
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
@@ -84,11 +87,11 @@ quotaId,path,quotaId,true
|
|||||||
=== Responses
|
=== Responses
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
Code,Description,Schema
|
Code,Description
|
||||||
200,success,com.wordnik.swagger.models.properties.RefProperty@d2e9338
|
200,success
|
||||||
401,Unauthorized,null
|
401,Unauthorized
|
||||||
204,No Content,null
|
204,No Content
|
||||||
403,Forbidden,null
|
403,Forbidden
|
||||||
|===
|
|===
|
||||||
|
|
||||||
=== Consumes
|
=== Consumes
|
||||||
@@ -98,13 +101,14 @@ Code,Description,Schema
|
|||||||
* */*
|
* */*
|
||||||
|
|
||||||
== Update a quota.
|
== Update a quota.
|
||||||
|
----
|
||||||
|
POST /quotas/quotas/{quotaId}
|
||||||
|
----
|
||||||
|
|
||||||
=== Description
|
=== Description
|
||||||
:hardbreaks:
|
:hardbreaks:
|
||||||
Update a quota allows bla bla bla bla
|
Update a quota allows bla bla bla bla
|
||||||
|
|
||||||
----
|
|
||||||
POST /quotas/quotas/{quotaId}
|
|
||||||
----
|
|
||||||
=== Parameters
|
=== Parameters
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
@@ -116,13 +120,13 @@ body,body,MailStorageQuota,true
|
|||||||
=== Responses
|
=== Responses
|
||||||
[format="csv", options="header"]
|
[format="csv", options="header"]
|
||||||
|===
|
|===
|
||||||
Code,Description,Schema
|
Code,Description
|
||||||
200,success,com.wordnik.swagger.models.properties.RefProperty@18542940
|
200,success
|
||||||
201,Created,null
|
201,Created
|
||||||
401,Unauthorized,null
|
401,Unauthorized
|
||||||
204,null,null
|
204,null
|
||||||
403,Forbidden,null
|
403,Forbidden
|
||||||
404,Not Found,null
|
404,Not Found
|
||||||
|===
|
|===
|
||||||
|
|
||||||
=== Consumes
|
=== Consumes
|
||||||
|
|||||||
143
example-spring-boot-mvc/src/docs/markdown/example.md
Normal file
143
example-spring-boot-mvc/src/docs/markdown/example.md
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
# My Apps API Title
|
||||||
|
My Apps API Description
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
|
## Create a quota.
|
||||||
|
```
|
||||||
|
PUT /quotas
|
||||||
|
```
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
Create a quota allows bla bla bla bla
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|Name|Located in|Description|Required|
|
||||||
|
|----|----|----|----|
|
||||||
|
|body|body|MailStorageQuota|true|
|
||||||
|
|
||||||
|
|
||||||
|
### Responses
|
||||||
|
|Code|Description|
|
||||||
|
|----|----|
|
||||||
|
|200|success|
|
||||||
|
|201|Created|
|
||||||
|
|401|Unauthorized|
|
||||||
|
|204|null|
|
||||||
|
|403|Forbidden|
|
||||||
|
|404|Not Found|
|
||||||
|
|
||||||
|
|
||||||
|
### Consumes
|
||||||
|
* application/json
|
||||||
|
|
||||||
|
### Produces
|
||||||
|
* */*
|
||||||
|
|
||||||
|
## Get a quotas.
|
||||||
|
```
|
||||||
|
GET /quotas/quotas/{quotaId}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
Get a quota allows bla bla bla bla
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|Name|Located in|Description|Required|
|
||||||
|
|----|----|----|----|
|
||||||
|
|quotaId|path|quotaId|true|
|
||||||
|
|
||||||
|
|
||||||
|
### Responses
|
||||||
|
|Code|Description|
|
||||||
|
|----|----|
|
||||||
|
|200|success|
|
||||||
|
|401|Unauthorized|
|
||||||
|
|403|Forbidden|
|
||||||
|
|404|Not Found|
|
||||||
|
|
||||||
|
|
||||||
|
### Consumes
|
||||||
|
* application/json
|
||||||
|
|
||||||
|
### Produces
|
||||||
|
* */*
|
||||||
|
|
||||||
|
## Delete a quota.
|
||||||
|
```
|
||||||
|
DELETE /quotas/quotas/{quotaId}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
Delete a quotas allows bla bla bla bla
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|Name|Located in|Description|Required|
|
||||||
|
|----|----|----|----|
|
||||||
|
|quotaId|path|quotaId|true|
|
||||||
|
|
||||||
|
|
||||||
|
### Responses
|
||||||
|
|Code|Description|
|
||||||
|
|----|----|
|
||||||
|
|200|success|
|
||||||
|
|401|Unauthorized|
|
||||||
|
|204|No Content|
|
||||||
|
|403|Forbidden|
|
||||||
|
|
||||||
|
|
||||||
|
### Consumes
|
||||||
|
* application/json
|
||||||
|
|
||||||
|
### Produces
|
||||||
|
* */*
|
||||||
|
|
||||||
|
## Update a quota.
|
||||||
|
```
|
||||||
|
POST /quotas/quotas/{quotaId}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
Update a quota allows bla bla bla bla
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|Name|Located in|Description|Required|
|
||||||
|
|----|----|----|----|
|
||||||
|
|quotaId|path|quotaId|true|
|
||||||
|
|body|body|MailStorageQuota|true|
|
||||||
|
|
||||||
|
|
||||||
|
### Responses
|
||||||
|
|Code|Description|
|
||||||
|
|----|----|
|
||||||
|
|200|success|
|
||||||
|
|201|Created|
|
||||||
|
|401|Unauthorized|
|
||||||
|
|204|null|
|
||||||
|
|403|Forbidden|
|
||||||
|
|404|Not Found|
|
||||||
|
|
||||||
|
|
||||||
|
### Consumes
|
||||||
|
* application/json
|
||||||
|
|
||||||
|
### Produces
|
||||||
|
* */*
|
||||||
|
|
||||||
|
## Definitions
|
||||||
|
### MailStorageQuota
|
||||||
|
|Name|Type|Required|
|
||||||
|
|----|----|----|
|
||||||
|
|mailStorageQuotaValue|string|false|
|
||||||
|
|quotaValueType|string|false|
|
||||||
|
|
||||||
|
|
||||||
|
### MailStorageQuotaResponse
|
||||||
|
|Name|Type|Required|
|
||||||
|
|----|----|----|
|
||||||
|
|mailStorageQuota|ref|false|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user