Endpoints
Foo exposes a public REST API for management of pages on to be audited by Lighthouse. Before proceeding you may want to first read the below sections.
Page Endpoints#
Below are endpoints for managing Page resources.
findPages#
Returns a collection of pages belonging to the authenticated account.
findPages Parameters#
Supports all common optional parameters as query parameters.
findPages Example Response#
createPage#
Creates a new page belonging to the authenticated account.
createPage Payload#
The below fields should populate the request body as documented. For details about what each field means, see Page resource documentation.
createPage Example Response#
updatePage#
Updates a page by id belonging to the authenticated account.
updatePage Parameters#
The below parameters are "path" parameters.
updatePage Payload#
The below fields should populate the request body as documented. For details about what each field means, see Page resource documentation.
updatePage Example Response#
removePage#
Removes a page by id belonging to the authenticated account.
removePage Parameters#
The below parameters are "path" parameters.
removePage Example Response#
Note: the below response represents the page that was deleted.
Queue Endpoints#
Below are endpoints for managing QueueItem resources.
findPageQueueItems#
Returns all queue items for a page (by page id) belonging to the authenticated account.
findPageQueueItems Parameters#
The below parameters are "path" parameters. id is for the page.
Note: this endpoint does not support common optional parameters as it returns data from an ephemeral storage and will never return large amounts of data to justify sorting, paginating, etc.
findPageQueueItems Example Response#
createPageQueueItem#
Adds a new item to the queue for a page (by page id) belonging to the authenticated account.
createPageQueueItem Parameters#
The below parameters are "path" parameters.
createPageQueueItem Payload#
The below fields should populate the request body as documented. For details about what each field means, see QueuItem resource documentation.
createPageQueueItem Example Response#
Note the index and waitSeconds fields are calculated after creation and are therefore not available in the createPageQueueItem response.
Lighthouse Audit Endpoints#
Below are endpoints for managing LighthouseAudit resources.
findPageLighthouseAudits#
Returns a collection of Lighthouse audits for a page (by page id) belonging to the authenticated account.
findPageLighthouseAudits Parameters#
Supports all common optional parameters as query parameters. The below parameters are "path" parameters. id is for the page.
findPageLighthouseAudits Example Response#
updateLighthouseAudit#
Updates a Lighthouse audit by id belonging to the authenticated account.
updateLighthouseAudit Parameters#
The below parameters are "path" parameters.
updateLighthouseAudit Payload#
The below fields should populate the request body as documented. For details about what each field means, see LighthouseAudit resource documentation.
updateLighthouseAudit Example Response#
removeLighthouseAudit#
Removes a Lighthouse audit by id belonging to the authenticated account.
removeLighthouseAudit Parameters#
The below parameters are "path" parameters.
removeLighthouseAudit Example Response#
Note: the below response represents the Lighthouse audit that was deleted.