Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The resource link has problem #116

Open
yangwawa0323 opened this issue Feb 3, 2023 · 2 comments
Open

The resource link has problem #116

yangwawa0323 opened this issue Feb 3, 2023 · 2 comments
Assignees
Labels
easy Easy for beginners iwoc iwoc24

Comments

@yangwawa0323
Copy link

When login successfully into dashboard. All the resource link is point /api/user/:endpoint, this make people confused. It should be /api/resource/:endpoint.
Another problem is couldn't use COPY button copy to clipboard.

in FE collection.jsx

<Alert sx={{ mb: 2 }}>
		<AlertTitle sx={{ fontWeight: 600 }}>API endpoint</AlertTitle>
		<code>{BACKEND_URL}/resource/:endpoint</code>
		<CopyButton
			sx={{ ml: 1 }}
			disabled={isCopied ? true : false}
			onClick={() => {
				handleCopyClick(`${BACKEND_URL}/resource/:endpoint`);
			}}
		>
			{isCopied ? 'Done' : 'Copy'}
		</CopyButton>
</Alert>

In FE EndpointModel.jsx

<CopyButton
		onClick={() =>
		handleCopyClick(
		`${BACKEND_URL}/resource/${result}${point.endpoint}`,
		idx
		)
		}
		disabled={isCopied === idx ? true : false}
>
	{isCopied === idx ? 'Done' : 'Copy'}
</CopyButton>
@shelcia shelcia added easy Easy for beginners iwoc labels Feb 3, 2023
@GitWiz01
Copy link

@shelcia please assign me this issue under IWOC'23

@29deepanshutyagi
Copy link

i want to work on this under iwoc , kindly assign me this issue @shelcia

Akshat162001 added a commit to Akshat162001/mocker that referenced this issue Jan 19, 2024
Akshat162001 added a commit to Akshat162001/mocker that referenced this issue Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy for beginners iwoc iwoc24
Projects
None yet
Development

No branches or pull requests

4 participants