Skip to content

Commit

Permalink
fixed readme and test
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed May 21, 2020
1 parent 70fdbe6 commit 9013b45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Table of Contents
- [RESTful API](#restful-api)
- [`POST /api/action`: Create action](#post-apiaction-create-action)
- [`DELETE /api/actions/{id}`: Delete action](#delete-apiactionid-delete-action)
- [`GET /api/actions/_getAll`: Get all actions](#get-apiactiongetall-get-all-actions)
- [`GET /api/actions`: Get all actions](#get-apiactiongetall-get-all-actions)
- [`GET /api/actions/{id}`: Get action](#get-apiactionid-get-action)
- [`GET /api/actions/types`: List action types](#get-apiactiontypes-list-action-types)
- [`GET /api/actions/list_action_types`: List action types](#get-apiactiontypes-list-action-types)
- [`PUT /api/actions/{id}`: Update action](#put-apiactionid-update-action)
- [`POST /api/actions/{id}/_execute`: Execute action](#post-apiactionidexecute-execute-action)
- [Firing actions](#firing-actions)
Expand Down Expand Up @@ -182,7 +182,7 @@ Params:
| -------- | --------------------------------------------- | ------ |
| id | The id of the action you're trying to delete. | string |

### `GET /api/actions/_getAll`: Get all actions
### `GET /api/actions`: Get all actions

No parameters.

Expand All @@ -198,7 +198,7 @@ Params:
| -------- | ------------------------------------------ | ------ |
| id | The id of the action you're trying to get. | string |

### `GET /api/actions/types`: List action types
### `GET /api/actions/list_action_types`: List action types

No parameters.

Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/siem/public/cases/containers/api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('Case Configuration API', () => {
});
test('check url, method, signal', async () => {
await getActionLicense(abortCtrl.signal);
expect(fetchMock).toHaveBeenCalledWith(`/api/actions/types`, {
expect(fetchMock).toHaveBeenCalledWith(`/api/actions/list_action_types`, {
method: 'GET',
signal: abortCtrl.signal,
});
Expand Down

0 comments on commit 9013b45

Please sign in to comment.