aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Swagger/ApiConvention.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-21 23:47:10 +0800
committerGitHub <noreply@github.com>2020-08-21 23:47:10 +0800
commit733b8291855d1498e0ba9bc36a47a1b5f8b612ad (patch)
tree4885b9f7e828ec3f0ae7e2acacf348c9f5c158d9 /Timeline/Swagger/ApiConvention.cs
parentdc363ad8ae654af056c9ffa551008dbbf52b5d57 (diff)
parentf1c70edd559c72dcb47ff647f3f03ba5ae9a56cc (diff)
downloadtimeline-733b8291855d1498e0ba9bc36a47a1b5f8b612ad.tar.gz
timeline-733b8291855d1498e0ba9bc36a47a1b5f8b612ad.tar.bz2
timeline-733b8291855d1498e0ba9bc36a47a1b5f8b612ad.zip
Merge pull request #149 from crupest/swagger
Swagger/OpenAPI
Diffstat (limited to 'Timeline/Swagger/ApiConvention.cs')
-rw-r--r--Timeline/Swagger/ApiConvention.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Timeline/Swagger/ApiConvention.cs b/Timeline/Swagger/ApiConvention.cs
new file mode 100644
index 00000000..dbf0b2fe
--- /dev/null
+++ b/Timeline/Swagger/ApiConvention.cs
@@ -0,0 +1,15 @@
+using Microsoft.AspNetCore.Mvc;
+
+[assembly: ApiConventionType(typeof(Timeline.Controllers.ApiConvention))]
+
+namespace Timeline.Controllers
+{
+ // There is some bug if nullable is enable. So disable it.
+#nullable disable
+ /// <summary>
+ /// My api convention.
+ /// </summary>
+ public static class ApiConvention
+ {
+ }
+}