Skip to content

Conversation

prabalsingh24
Copy link
Contributor

@prabalsingh24 prabalsingh24 commented May 22, 2020

fixes #74
`

  • create a new folder src/routes/api/submissions

    • create an index.ts file which'll act as the url map
    • create an controller.ts file which'll export an object containing the handler
    • mount /api/submissions/:id endpoint to the polling controller
  • write test for the api

    • Test if the API fives 403 if the api key is not provided or incorrect
    • Test if the API gives 404 if submission id not found
    • Test if the API gives returns the serialized submission model
    • update the test here and here

`

@prabalsingh24
Copy link
Contributor Author

@jatinkatyal13 Have a look at this when you're free :)

@jatinkatyal13
Copy link
Contributor

Nice Job 🚀

@jatinkatyal13 jatinkatyal13 merged commit 168f3a1 into coding-blocks:master May 24, 2020
@boss-contributions-bot
Copy link

Congratualtions @prabalsingh24, your pull request is merged! 🎉

Thanks for your contributions and participating in BOSS 2020. 🙌

You can claim your bounty points here. 💰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add polling endpoint
2 participants