Skip to content

Commit 878b34e

Browse files
committed
Minor doc fix
1 parent d23e65e commit 878b34e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/api_doc/index.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,12 @@ GET https://{{ packagist_host }}/statistics.json
449449
<section class="col-d-12">
450450
<h3 id="list-security-advisories">{{ 'api_doc.list_security_advisory'|trans }} <span class="badge bg-success">Anonymous</span></h3>
451451

452-
<p>This endpoint provides a list of security advisories. Either a list of packages as query or request parameter or a timestamp as updatedSince query parameter need to be passed.</p>
452+
<p>This endpoint provides a list of security advisories. Either a list of packages as query or request parameter OR a timestamp as updatedSince query parameter needs to be passed.</p>
453453

454454
<p>When querying with a list of packages, known packages will be included in the response with an empty array if they don't have any listed vulnerability. Package names which are not known to have no vulnerability will not be included at all to show that we do not have data on those.</p>
455455

456456
<pre>
457-
GET https://{{ packagist_host }}/api/security-advisories/?updatedSince=[timestamp]&amp;packages[]=[vendor/package]
457+
GET https://{{ packagist_host }}/api/security-advisories/?packages[]=[vendor/package]
458458
<code>
459459
{
460460
"advisories": {

0 commit comments

Comments
 (0)