Skip to content

Commit

Permalink
deploy: abe3330
Browse files Browse the repository at this point in the history
  • Loading branch information
Prateek-Thakare committed Jan 3, 2024
1 parent e795741 commit 9b280ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions new-scanner-integrations/new-scanner-integration-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h1 id="add-a-new-api-scanner-class"><a class="header" href="#add-a-new-api-scan
<p>Now that we have a clear understanding of the expected input and output from the tool, let's begin the process of creating the scanner class. As previously indicated <a href="/./mantis/basics-mantis-code/scanner-base-class.html">here</a>, we are required to implement three functions:</p>
<ul>
<li>get_api_calls()</li>
<li>parse_reponse()</li>
<li>parse_response()</li>
<li>db_operations()</li>
</ul>
<h2 id="creating-the-api-class"><a class="header" href="#creating-the-api-class">Creating the API Class</a></h2>
Expand Down Expand Up @@ -210,7 +210,7 @@ <h2 id="implementing-get_api_calls"><a class="header" href="#implementing-get_ap
<h2 id="implementing-parse_response"><a class="header" href="#implementing-parse_response">Implementing parse_response()</a></h2>
<p>This function is required to parse what the API outputs and insert it into the database. In this context, a list of certificates and its contextual information is extrated and inserted into the database.</p>
<pre><code class="language-python">
def parse_reponse(self, response):
def parse_response(self, response):
output_dict_list = []
response_json = response.json()
for every_cert in response_json:
Expand Down
4 changes: 2 additions & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ <h2 id="implementing-db_operations"><a class="header" href="#implementing-db_ope
<p>Now that we have a clear understanding of the expected input and output from the tool, let's begin the process of creating the scanner class. As previously indicated <a href="new-scanner-integrations//./mantis/basics-mantis-code/scanner-base-class.html">here</a>, we are required to implement three functions:</p>
<ul>
<li>get_api_calls()</li>
<li>parse_reponse()</li>
<li>parse_response()</li>
<li>db_operations()</li>
</ul>
<h2 id="creating-the-api-class"><a class="header" href="#creating-the-api-class">Creating the API Class</a></h2>
Expand Down Expand Up @@ -1387,7 +1387,7 @@ <h2 id="implementing-get_api_calls"><a class="header" href="#implementing-get_ap
<h2 id="implementing-parse_response"><a class="header" href="#implementing-parse_response">Implementing parse_response()</a></h2>
<p>This function is required to parse what the API outputs and insert it into the database. In this context, a list of certificates and its contextual information is extrated and inserted into the database.</p>
<pre><code class="language-python">
def parse_reponse(self, response):
def parse_response(self, response):
output_dict_list = []
response_json = response.json()
for every_cert in response_json:
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 9b280ac

Please sign in to comment.