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:
5050 style="display: block; margin: 10px auto 30px; border: 1px solid black;" />
5151
5252- _ 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;" />
5553
5654- _ Scripting in Swell_ : If you favor test-driven development, Swell allows you to write assertion tests to aid defining and testing backend API services.
5755 <img src="./ReadMeGifs/Gifs/Assertion-Testing.gif"
@@ -60,11 +58,8 @@ Swell is a one-stop shop for sending and monitoring your API requests:
6058- _ Workspaces_ : Swell allows you to save workspaces for easier testing of multiple requests.
6159
6260- _ 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+
6562- _ 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;" />
6863
6964## Experimental Features
7065
Original file line number Diff line number Diff line change @@ -100,14 +100,7 @@ const mapDispatchToProps = (dispatch: AppDispatch) => ({
100100
101101function MainContainer ( props : $TSFixMeObject ) {
102102 return (
103- < Box
104- sx = { {
105- width : '75%' ,
106- // overflowY: 'scroll',
107- // display: 'flex',
108- // flexDirection: 'column'
109- } }
110- >
103+ < Box sx = { { width : '75%' } } >
111104 < Split direction = "vertical" gutterSize = { 5 } style = { { height : '100%' } } >
112105 < Box sx = { { display : 'flex' } } >
113106 < Routes >
@@ -122,7 +115,10 @@ function MainContainer(props: $TSFixMeObject) {
122115 < Route path = "/openapi" element = { < OpenAPIComposer { ...props } /> } />
123116 < Route path = "/webhook" element = { < WebhookComposer { ...props } /> } />
124117 < Route path = "/trpc" element = { < TRPCComposer { ...props } /> } />
125- < Route path = "/mockserver" element = { < MockServerComposer { ...props } /> } />
118+ < Route
119+ path = "/mockserver"
120+ element = { < MockServerComposer { ...props } /> }
121+ />
126122 </ Routes >
127123 </ Box >
128124 < ResponsePaneContainer />
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const TRPCMethodAndEndpointEntryForm = () => {
1616 const dispatch = useDispatch ( ) ;
1717
1818 useEffect ( ( ) => {
19- const closeDropdown = ( event ) => {
19+ const closeDropdown = ( event : MouseEvent ) => {
2020 if ( ! dropdownEl . current . contains ( event . target ) ) {
2121 setDropdownIsActive ( false ) ;
2222 }
@@ -48,7 +48,7 @@ const TRPCMethodAndEndpointEntryForm = () => {
4848 }
4949 } ;
5050
51- const urlChangeHandler = ( e ) => {
51+ const urlChangeHandler = ( e : React . ChangeEvent < HTMLInputElement > ) => {
5252 const url : string = e . target . value ;
5353
5454 dispatch (
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ const connectionController = {
146146 // return this.openConnectionArray.find((obj) => (obj.id = id));
147147 // },
148148
149- setReqResConnectionToClosed ( id : number ) : void {
149+ setReqResConnectionToClosed ( id : string ) : void {
150150 const reqResArr = Store . getState ( ) . reqRes . reqResArray ;
151151
152152 const foundReqRes : ReqRes = JSON . parse (
Original file line number Diff line number Diff line change 55import { createSlice , PayloadAction } from '@reduxjs/toolkit' ;
66import { ReqRes } from '../../../types' ;
77
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+ */
814type ReqResStore = {
915 reqResArray : ReqRes [ ] ;
1016 currentResponse : ReqRes ;
You can’t perform that action at this time.
0 commit comments