How lucasriechelmann/resttest works
RESTTest is a local Windows REST client: users organize requests under collection-wide base URLs, edit request details, send them, and inspect the response. The architecture is a WPF/MVVM application with collection and request view models coordinating persistence and HTTP services; response analysis, assertions, batch runs, cookies, history, and import/export are additional product branches visible in the tree and sampled references. The README’s “not yet supported” list conflicts with several present modules, so those branches are shown as implemented components, without assuming their complete wiring. Some connections are dashed where excerpts do not show calls.
Main entry points: MainViewModel.cs Main coordinator · ResponseViewModel.cs Response display · HttpRequestSender.cs HTTP sender · RequestViewModel.cs Request editor
Components 22
Application UI
- Main coordinator
RESTTest/ViewModels/MainViewModel.cs - Dialog service
RESTTest/Views/DialogService.cs
Collections and requests
- Collection tree
RESTTest/ViewModels/CollectionViewModel.cs - Request and folder nodes
RESTTest/ViewModels/NodeViewModel.cs - Request editor
RESTTest/ViewModels/RequestViewModel.cs - Request data
RESTTest/Models/RequestModel.cs - Collection storage
RESTTest/Services/CollectionStore.cs
HTTP exchange
- HTTP sender
RESTTest/Services/HttpRequestSender.cs - Exchange result
RESTTest/Services/HttpExchangeResult.cs
Response and runs
- Response display
RESTTest/ViewModels/ResponseViewModel.cs - Response assertions
RESTTest/Services/AssertionEvaluator.cs - Collection runner
RESTTest/ViewModels/RunnerViewModel.cs - JSONPath filtering
RESTTest/Services/JsonPathQuery.cs
Supporting features
- Request history
RESTTest/ViewModels/HistoryViewModel.cs - History storage
RESTTest/Services/HistoryStore.cs - Cookie management
RESTTest/ViewModels/CookiesViewModel.cs - Cookie jar
RESTTest/Services/CookieJar.cs - Collection importers
RESTTest/Services/Importing - cURL import and export
RESTTest/Services/CurlParser.cs - Body preview
RESTTest/Services/RequestBodyPreview.cs - JSON editor
RESTTest/Controls/JsonEditor.cs
Other components
- REST client user
Connections 21
- REST client user → Main coordinator: uses
- Main coordinator → Collection tree: coordinates
RESTTest/ViewModels/MainViewModel.cs - Main coordinator → Collection storage: loads and saves
- Main coordinator → HTTP sender: sends requests
- Main coordinator → Response display: updates
RESTTest/ViewModels/MainViewModel.cs - Main coordinator → Request history: records exchanges
RESTTest/ViewModels/MainViewModel.cs - Main coordinator → Cookie jar: tracks changes
RESTTest/ViewModels/MainViewModel.cs - Main coordinator → Dialog service: opens dialogs
- Collection tree → Request and folder nodes: manages tree
RESTTest/ViewModels/CollectionViewModel.cs - Request editor → Request data: edits
RESTTest/ViewModels/RequestViewModel.cs - HTTP sender → Exchange result: produces
- Response display → Exchange result: displays
RESTTest/ViewModels/ResponseViewModel.cs - Response display → JSONPath filtering: filters with
RESTTest/ViewModels/ResponseViewModel.cs - Collection runner → HTTP sender: sends through
RESTTest/ViewModels/RunnerViewModel.cs - Collection runner → Response assertions: evaluates
RESTTest/ViewModels/RunnerViewModel.cs - Request history → History storage: persists via coordinator
- Cookie management → Cookie jar: uses
RESTTest/ViewModels/CookiesViewModel.cs - Main coordinator → Collection importers: imports collections
RESTTest/ViewModels/MainViewModel.cs - Main coordinator → cURL import and export: imports cURL
RESTTest/ViewModels/MainViewModel.cs - Request editor → Body preview: previews body
RESTTest/Services/RequestBodyPreview.cs - JSON editor → REST client user: supports editing