Skip to content

Commit f1b0e8a

Browse files
committed
Fixed #307 More webapi documentation / samples
1 parent 8c04e4f commit f1b0e8a

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/Exceptionless.Api/Controllers/EventController.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,16 @@ await _eventPostQueue.EnqueueAsync(new EventPostInfo {
836836
/// <code>
837837
/// { "message": "Exceptionless is amazing!" }
838838
/// </code>
839+
///
840+
/// Simple log event with user identity:
841+
/// <code>
842+
/// {
843+
/// "type": "log",
844+
/// "message": "Exceptionless is amazing!",
845+
/// "date":"2020-01-01T12:00:00.0000000-05:00",
846+
/// "@user":{ "identity":"123456789", "name": "Test User" }
847+
/// }
848+
/// </code>
839849
///
840850
/// Multiple events from string content:
841851
/// <code>
@@ -847,6 +857,7 @@ await _eventPostQueue.EnqueueAsync(new EventPostInfo {
847857
/// <code>
848858
/// {
849859
/// "type": "error",
860+
/// "date":"2020-01-01T12:00:00.0000000-05:00",
850861
/// "@simple_error": {
851862
/// "message": "Simple Exception",
852863
/// "type": "System.Exception",

src/Exceptionless.Api/Exceptionless.Api.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</NuGetPackageImportStamp>
2424
<UseGlobalApplicationHostFile />
2525
<TargetFrameworkProfile />
26+
<Use64BitIISExpress />
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2829
<DebugSymbols>true</DebugSymbols>
@@ -145,8 +146,7 @@
145146
<HintPath>..\..\packages\Stripe.net.10.2.0\lib\net45\Stripe.net.dll</HintPath>
146147
</Reference>
147148
<Reference Include="Swashbuckle.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd1bb07a5ac7c7bc, processorArchitecture=MSIL">
148-
<HintPath>..\..\packages\Swashbuckle.Core.5.5.3\lib\net40\Swashbuckle.Core.dll</HintPath>
149-
<Private>True</Private>
149+
<HintPath>..\..\packages\Swashbuckle.Core.5.6.0\lib\net40\Swashbuckle.Core.dll</HintPath>
150150
</Reference>
151151
<Reference Include="System" />
152152
<Reference Include="System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">

src/Exceptionless.Api/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
<package id="SimpleInjector" version="4.0.8" targetFramework="net461" />
3636
<package id="SimpleInjector.Integration.WebApi" version="4.0.8" targetFramework="net461" />
3737
<package id="Stripe.net" version="10.2.0" targetFramework="net461" />
38-
<package id="Swashbuckle.Core" version="5.5.3" targetFramework="net461" />
38+
<package id="Swashbuckle.Core" version="5.6.0" targetFramework="net461" />
3939
<package id="System.Collections.Immutable" version="1.3.1" targetFramework="net461" />
4040
</packages>

0 commit comments

Comments
 (0)