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

Validate project ID #21

Closed
ThomasKranitsas opened this issue Jul 4, 2019 · 0 comments
Closed

Validate project ID #21

ThomasKranitsas opened this issue Jul 4, 2019 · 0 comments
Labels
bug Something isn't working in progress

Comments

@ThomasKranitsas
Copy link
Contributor

ThomasKranitsas commented Jul 4, 2019

We should validate the project ID.

This http://challenges.topcoder-dev.com/projects/112233/challenges/543841b4-bbbb-4b02-bba7-c141855c5d72/edit throws an error because the project ID does not exist.

We should use the project API to verify that the project exists before we create the challenge.

Call the GET https://api.topcoder-dev.com/v4/projects/:projectId endpoint and if that endpoint returns 404, throw a 400 Bad Request error.

@ThomasKranitsas ThomasKranitsas added bug Something isn't working in progress labels Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress
Projects
None yet
Development

No branches or pull requests

1 participant