Skip to content

Commit

Permalink
a couple of minor docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney committed Jul 4, 2024
1 parent ff015ad commit b207983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Counterfact is three complimentary tools in one:

- a code generator that converts [OpenAPI](https://support.smartbear.com/swaggerhub/docs/tutorials/openapi-3-tutorial.html) to [TypeScript](https://www.typescriptlang.org/)
- a fast and flexible mock server that's optimized around front end dev workflows
- a JavaScript REPL for accessing to the server's internal state at runtime
- a JavaScript REPL for accessing the server's internal state at runtime

## Hello <del>World</del> Pet Store 👋

Expand Down Expand Up @@ -153,7 +153,7 @@ The `$.context` object contains in-memory state and business logic, allowing you
```ts copy
// pet.ts
export const POST: HTTP_POST = ($) => {
return $.response.json($.context.addPet($.body));
return $.response[200].json($.context.addPet($.body));
};
```

Expand Down

0 comments on commit b207983

Please sign in to comment.