File tree Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ Swell is a one-stop shop for sending and monitoring your API requests:
50
50
style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
51
51
52
52
- _ Send Requests Directly to an Endpoint_ : You are able to immediately send a request to an endpoint OR stage a request in your workspace for multi-level testing.
53
- <img src="./ReadMeGifs/Gifs/DirectSendRequest.gif"
54
- style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
55
53
56
54
- _ Scripting in Swell_ : If you favor test-driven development, Swell allows you to write assertion tests to aid defining and testing backend API services.
57
55
<img src="./ReadMeGifs/Gifs/Assertion-Testing.gif"
@@ -60,11 +58,8 @@ Swell is a one-stop shop for sending and monitoring your API requests:
60
58
- _ Workspaces_ : Swell allows you to save workspaces for easier testing of multiple requests.
61
59
62
60
- _ Preview_ : You can now view a rendered preview of certain API responses (HTML)
63
- <img src="./ReadMeGifs/Gifs/AdditionalFeatures.gif"
64
- style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
61
+
65
62
- _ Collection Runner_ : You can also stage requests in the workspace and automate the process of sending off each one. No need to manually press send on each one; instead each request will fire off in the order of staging.
66
- <img src="./ReadMeGifs/Gifs/CollectionTest.gif"
67
- style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
68
63
69
64
## Experimental Features
70
65
Original file line number Diff line number Diff line change @@ -100,14 +100,7 @@ const mapDispatchToProps = (dispatch: AppDispatch) => ({
100
100
101
101
function MainContainer ( props : $TSFixMeObject ) {
102
102
return (
103
- < Box
104
- sx = { {
105
- width : '75%' ,
106
- // overflowY: 'scroll',
107
- // display: 'flex',
108
- // flexDirection: 'column'
109
- } }
110
- >
103
+ < Box sx = { { width : '75%' } } >
111
104
< Split direction = "vertical" gutterSize = { 5 } style = { { height : '100%' } } >
112
105
< Box sx = { { display : 'flex' } } >
113
106
< Routes >
@@ -122,7 +115,10 @@ function MainContainer(props: $TSFixMeObject) {
122
115
< Route path = "/openapi" element = { < OpenAPIComposer { ...props } /> } />
123
116
< Route path = "/webhook" element = { < WebhookComposer { ...props } /> } />
124
117
< Route path = "/trpc" element = { < TRPCComposer { ...props } /> } />
125
- < Route path = "/mockserver" element = { < MockServerComposer { ...props } /> } />
118
+ < Route
119
+ path = "/mockserver"
120
+ element = { < MockServerComposer { ...props } /> }
121
+ />
126
122
</ Routes >
127
123
</ Box >
128
124
< ResponsePaneContainer />
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const TRPCMethodAndEndpointEntryForm = () => {
16
16
const dispatch = useDispatch ( ) ;
17
17
18
18
useEffect ( ( ) => {
19
- const closeDropdown = ( event ) => {
19
+ const closeDropdown = ( event : MouseEvent ) => {
20
20
if ( ! dropdownEl . current . contains ( event . target ) ) {
21
21
setDropdownIsActive ( false ) ;
22
22
}
@@ -48,7 +48,7 @@ const TRPCMethodAndEndpointEntryForm = () => {
48
48
}
49
49
} ;
50
50
51
- const urlChangeHandler = ( e ) => {
51
+ const urlChangeHandler = ( e : React . ChangeEvent < HTMLInputElement > ) => {
52
52
const url : string = e . target . value ;
53
53
54
54
dispatch (
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ const connectionController = {
146
146
// return this.openConnectionArray.find((obj) => (obj.id = id));
147
147
// },
148
148
149
- setReqResConnectionToClosed ( id : number ) : void {
149
+ setReqResConnectionToClosed ( id : string ) : void {
150
150
const reqResArr = Store . getState ( ) . reqRes . reqResArray ;
151
151
152
152
const foundReqRes : ReqRes = JSON . parse (
Original file line number Diff line number Diff line change 5
5
import { createSlice , PayloadAction } from '@reduxjs/toolkit' ;
6
6
import { ReqRes } from '../../../types' ;
7
7
8
+ /**
9
+ * @todo based on current useage type def is innaccurate or incomplete
10
+ * currentReponse stores the last returned ReqRes type
11
+ * in theory currentResponse property is unnessecary as the last element in the
12
+ * reqResArray is the current response but it is used throughout the app
13
+ */
8
14
type ReqResStore = {
9
15
reqResArray : ReqRes [ ] ;
10
16
currentResponse : ReqRes ;
You can’t perform that action at this time.
0 commit comments