Are you tired of weighty testing frameworks? Yapitest is simple. Provide data to send to the endpoint, and assert data that comes as response. A test looks as simple as this:
```
test-create-and-get-post:
setup: create-user
steps:
- path: /api/post/create
id: create-post
method: POST
headers:
API-Token: $setup.token
data:
title: Some Title
body: Some message
assert:
status-code: 201
- path: /api/post/$create-post.response.post_id
assert:
body:
title: "Some Title"
body: "Some message"
```
More features (regex support, timing assertions) coming soon!
cd-4•1h ago
``` test-create-and-get-post: setup: create-user steps: - path: /api/post/create id: create-post method: POST headers: API-Token: $setup.token data: title: Some Title body: Some message assert: status-code: 201 - path: /api/post/$create-post.response.post_id assert: body: title: "Some Title" body: "Some message" ```
More features (regex support, timing assertions) coming soon!