2.0 KiB
2.0 KiB
id, title, challengeType, forumTopicId
id | title | challengeType | forumTopicId |
---|---|---|---|
bd7158d8c443edefaeb5bd0e | URL Shortener Microservice | 4 | 301509 |
Description
Instructions
Tests
tests:
- text: I can provide my own project, not the example URL.
testString: |
getUserInput => {
assert(!/.*\/url-shortener-microservice\.freecodecamp\.rocks/.test(getUserInput('url')));
}
- text: I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
testString: ''
- text: 'If I pass an invalid URL that doesn''t follow the valid http://www.example.com format, the JSON response will contain an error instead.'
testString: ''
- text: 'When I visit that shortened URL, it will redirect me to my original link.'
testString: ''
Challenge Seed
Solution
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/