You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+30-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Install from nuget
6
6
7
7
## Usage
8
8
9
-
Add this package to your main ASP.Net project, and it will add an Info endpoint with three methods, giving you the version of the main assembly in semver format.
9
+
Add this package to your main ASP.Net project, and it will add an Info endpoint with five methods, giving you the version of the main assembly in semver format.
10
10
11
11
### Get version as a string
12
12
@@ -17,10 +17,20 @@ returns
17
17
1.2.3
18
18
```
19
19
20
+
### Get product version as a string
21
+
22
+
```cs
23
+
Route:/api/info/productversion
24
+
25
+
returns
26
+
1.2.3-rc.1
27
+
```
28
+
29
+
20
30
### Get version as a [shields.io](https://shields.io/) structure
21
31
22
32
```cs
23
-
Route:/api/info
33
+
Route:/api/info/shields/version
24
34
25
35
returnsshieldsiostructurefor use in a [shields endpoint](https://shields.io/endpoint) call.
0 commit comments