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

Implement Custom URL Mapping #3

Open
tushar821999 opened this issue Jun 2, 2021 · 0 comments · Fixed by #4
Open

Implement Custom URL Mapping #3

tushar821999 opened this issue Jun 2, 2021 · 0 comments · Fixed by #4
Labels
enhancement New feature or request

Comments

@tushar821999
Copy link
Member

Add new feature to generate random Nano-Id

Example : If some one leaves blank the input phrase text field so the backend web API should generates the random Nano-Id and append that Id in the response body

{
"inputURL" : "https://somerandomurl.com/this-is-my-first-api-call-which-i-need-to-explain",
"inputText" : ""
}

Here we see the input text as blank so the post method should generate a Nano-ID (you can use nano id npm package) .

{
"_id": "60b65180e14f372af0e298bb",
"inputURL": "https://somerandomurl.com/this-is-my-first-api-call-which-i-need-to-explain",
"inputText": "IRFa-VaY2b",
"outputText": "localhost:3000/IRFa-VaY2b",
"__v": 0
}

Here we see input text get the random id of 10 digts

@tushar821999 tushar821999 added the enhancement New feature or request label Jun 2, 2021
@tushar821999 tushar821999 linked a pull request Jun 2, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant