Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jan 28, 2025
1 parent c699288 commit 2edfbfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ box install cbmockdata

Once installed you can leverage it in different ways:

1. **CFC** : Install it into your CFML application, instantiate the `MockData.cfc` and call the `mock` method using the mocking argument DSL: `new cbMockData.models.MockData().mock()`.
1. **Class** : Install it into your application, instantiate the `MockData.cfc` and call the `mock` method using the mocking argument DSL: `new cbMockData.models.MockData().mock()`.
2. **REST Service** : Startup a CommandBox server in the root of the package once installed (`box server start`) and execute it via port: `3000`. You can execute `GET` commands and pass the mocking DSL via the query string or execute a `POST` command with the mocking DSL as the body in JSON.
3. **ColdBox Module** : Install it via CommandBox in a ColdBox app and hit the service via `/cbMockData` with a `GET` using the query string mocking DSL or a `POST` using the mocking DSL as the body in JSON. You can also get access to the mocking instance via the WireBox ID: `MockData@cbMockData` and call the `mock` method using the mocking argument DSL.

Expand Down

0 comments on commit 2edfbfe

Please sign in to comment.