Skip to content

Commit

Permalink
Add links to libs, add example headings
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortsergent committed Sep 28, 2023
1 parent bb431f0 commit b2bc268
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CRUD refers to the basic operations in a database: Create, Read, Update, and Del
- _Update_: HTTP `PUT`or `PATCH` to change an existing resource.
- _Delete_: HTTP `DELETE` to remove a resource.

This document has two examples, one that uses the core k6 APIs (`k6/http` and `checks`) and another to show the more recent APIs (`httpx` and `k6chaijs`).
This document has two examples, one that uses the core k6 APIs (`k6/http` and `checks`) and another to show the more recent APIs ([`httpx`](/javascript-api/jslib/httpx/) and [`k6chaijs`](/javascript-api/jslib/k6chaijs/)).

## Test steps

Expand All @@ -25,6 +25,8 @@ The steps implemented in the [VU stage](/using-k6/test-lifecycle/#the-vu-stage)
3. _Update_ the name of the "croc" and _read_ the "croc" to confirm the update operation.
4. _Delete_ the "croc" resource.

## Core k6 APIs example

<CodeGroup labels={["api-crud-operations-k6-core-apis.js"]} lineNumbers={[true]}>

```javascript
Expand Down Expand Up @@ -143,6 +145,8 @@ export default (authToken) => {

</CodeGroup>

## httpx and k6chaijs example

<CodeGroup labels={["api-crud-operations-k6-new-apis.js"]} lineNumbers={[true]}>

```javascript
Expand Down

0 comments on commit b2bc268

Please sign in to comment.