Skip to content

Commit fe67bf7

Browse files
update number and search
1 parent a997ca4 commit fe67bf7

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

launcher-csharp/Common/RequestItemsService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ public string IdentifyApiOfCodeExample(string eg)
289289
{
290290
currentApiType = ExamplesApiType.WebForms.ToString();
291291
}
292+
else if (eg.Contains(ExamplesApiType.Notary.ToKeywordString()))
293+
{
294+
currentApiType = ExamplesApiType.Notary.ToString();
295+
}
292296
else
293297
{
294298
currentApiType = ExamplesApiType.ESignature.ToString();

launcher-csharp/Notary/Controllers/Neg001SendWithThirdPartyNotaryController.cs renamed to launcher-csharp/Notary/Controllers/Neg004SendWithThirdPartyNotaryController.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="Neg001SendWithThirdPartyNotaryController.cs" company="DocuSign">
1+
// <copyright file="Neg004SendWithThirdPartyNotaryController.cs" company="DocuSign">
22
// Copyright (c) DocuSign. All rights reserved.
33
// </copyright>
44

@@ -10,10 +10,10 @@ namespace DocuSign.CodeExamples.Controllers
1010
using Microsoft.AspNetCore.Mvc;
1111

1212
[Area("Notary")]
13-
[Route("neg001")]
14-
public class Neg001SendWithThirdPartyNotaryController : EgController
13+
[Route("neg004")]
14+
public class Neg004SendWithThirdPartyNotaryController : EgController
1515
{
16-
public Neg001SendWithThirdPartyNotaryController(DsConfiguration dsConfig,
16+
public Neg004SendWithThirdPartyNotaryController(DsConfiguration dsConfig,
1717
LauncherTexts launcherTexts,
1818
IRequestItemsService requestItemsService)
1919
: base(dsConfig, launcherTexts, requestItemsService)
@@ -22,7 +22,7 @@ public Neg001SendWithThirdPartyNotaryController(DsConfiguration dsConfig,
2222
this.ViewBag.title = this.CodeExampleText.ExampleName;
2323
}
2424

25-
public override string EgName => "neg001";
25+
public override string EgName => "neg004";
2626

2727
[HttpPost]
2828
[SetViewBag]

launcher-csharp/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public Startup(IConfiguration configuration)
9393

9494
this.apiTypes.Add(ExamplesApiType.Maestro, new List<string> { "signature", "aow_manage" });
9595

96-
this.apiTypes.Add(ExamplesApiType.Notary, new List<string> { "signature" });
96+
this.apiTypes.Add(ExamplesApiType.Notary, new List<string> { "signature", "organization_read", "notary_read", "notary_write" });
9797
}
9898

9999
public IConfiguration Configuration { get; }

launcher-csharp/wwwroot/js/search.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
ADMIN: 'admin',
88
CONNECT: 'connect',
99
MAESTRO: 'maestro',
10-
WEBFORMS: 'webforms'
10+
WEBFORMS: 'webforms',
11+
NOTARY: 'notary'
1112
};
1213

1314
let processJSONData = function () {
@@ -131,6 +132,8 @@
131132
return "mae";
132133
case API_TYPES.WEBFORMS:
133134
return "web";
135+
case API_TYPES.NOTARY:
136+
return "neg";
134137
}
135138
}
136139

0 commit comments

Comments
 (0)