Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ApiUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import RequestBodyEditor from './components/RequestBodyEditor';
import type { JsonSchema } from './components/RequestBodyEditor';
import CallHistoryRow from './components/CallHistoryRow';
import Breadcrumb from './components/Breadcrumb';
import { JsonViewer } from './components/JsonViewer';

type ApiEndpoint = {
id: string;
Expand Down
10 changes: 10 additions & 0 deletions src/components/JsonViewer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';

export const JsonViewer: React.FC<{ data: any }> = ({ data }) => {
return (
<div className="json-viewer">
{/* TODO: JSON Viewer tree implementation */}
<pre>{JSON.stringify(data, null, 2)}</pre>
</div>
);
};