Skip to content

Commit

Permalink
Merge pull request #980 from pmcelhaney/more-docs-fixes
Browse files Browse the repository at this point in the history
a couple of minor docs fixes
  • Loading branch information
pmcelhaney authored Jul 4, 2024
2 parents ff015ad + b207983 commit c7b9dae
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 c7b9dae

Please sign in to comment.