import { ApiCheck, AssertionBuilder } from 'checkly/constructs' // API checks send an HTTP request to a URL endpoint and validate the response. Read more at: // https://www.checklyhq.com/docs/api-checks/ new ApiCheck('books-api-check-1', { name: 'Books API', alertChannels: [], degradedResponseTime: 10000, // milliseconds maxResponseTime: 20000, request: { url: 'https://danube-web.shop/api/books', method: 'GET', followRedirects: true, skipSSL: false, assertions: [ AssertionBuilder.statusCode().equals(200), AssertionBuilder.jsonBody('$[0].id').isNotNull(), ], }, runParallel: false, })