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

Adds POST route for creating new assignments via API #338

Merged

Conversation

sibinhho99
Copy link
Collaborator

Description

Adds POST route for creating new assignments via API

Related Issue

#324

Motivation and Context

Part of #324

How Has This Been Tested?

Local testing using curl as API client.

Bash script with curl commands and files for testing: https://drive.google.com/file/d/14xUU1ITZ0YP6n-MDGH7uMwRxVDyO-57z/view?usp=sharing

Screenshots (if appropriate):

Video demo: https://youtu.be/ZhrRnu91AFU

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@coveralls
Copy link
Collaborator

coveralls commented Sep 24, 2023

Coverage Status

coverage: 0.203% (-0.02%) from 0.218% when pulling 260b3e4 on sibinhho99:api into 5ffee50 on WING-NUS:master.

@sibinhho99
Copy link
Collaborator Author

Remaining linter-flagged issues are hard to fix/ I think can be ignored for now

@sibinhho99 sibinhho99 changed the base branch from master to feature/ssid_coursemology_integration September 29, 2023 10:33
@sibinhho99 sibinhho99 merged commit 4774ef5 into WING-NUS:feature/ssid_coursemology_integration Sep 29, 2023
1 of 3 checks passed
huyuxin0429 pushed a commit that referenced this pull request Oct 22, 2023
* Add API key and sample GET and POST

* Implement POST API route for creating assignments

* Add API key authentication handler

* Run rubocop on assignments_controller

* Reduce linter-flagged issues
huyuxin0429 pushed a commit that referenced this pull request Jan 15, 2024
* Adds POST route for creating new assignments via API (#338)

* Add API key and sample GET and POST

* Implement POST API route for creating assignments

* Add API key authentication handler

* Run rubocop on assignments_controller

* Reduce linter-flagged issues

* Add API Phase 1 documentation (#336)

* Add API Phase 1 documentation

* Api/sub sim (#331)

* Added API for GET all submission similarities of an assignment

* Fix extra render when uploading invalid zip file (#342)

* Fix extra render when uploading invalid zip file

* Revert "Fix extra render when uploading invalid zip file (#342)" (#344)

This reverts commit d6a720f.

* Fix extra render when uploading invalid zip file

* Add API route for GET Pair of flagged submission details (#341)

* Add tests and bug fixes for api/v1/submission_similarities index and show

* Add RSpec tests for POST /api/v1/courses/{course_id}/assignment/

* Update similarity percentage format it doc

* Remove unused files and routes

* Update/ Clarify API doc

* added pagination

* added to use the will_paginate gem

* Added such that limit has higher precedence over pagination

---------

Co-authored-by: sibinhho99 <sibinhho99@gmail.com>
Co-authored-by: florentianayuwono <76247368+florentianayuwono@users.noreply.github.com>
@huyuxin0429 huyuxin0429 mentioned this pull request Jan 15, 2024
6 tasks
huyuxin0429 added a commit that referenced this pull request Jan 15, 2024
* Adds POST route for creating new assignments via API (#338)

* Add API key and sample GET and POST

* Implement POST API route for creating assignments

* Add API key authentication handler

* Run rubocop on assignments_controller

* Reduce linter-flagged issues

* Add API Phase 1 documentation (#336)

* Add API Phase 1 documentation

* Api/sub sim (#331)

* Added API for GET all submission similarities of an assignment

* Fix extra render when uploading invalid zip file (#342)

* Fix extra render when uploading invalid zip file

* Revert "Fix extra render when uploading invalid zip file (#342)" (#344)

This reverts commit d6a720f.

* Fix extra render when uploading invalid zip file

* Add API route for GET Pair of flagged submission details (#341)

* Add tests and bug fixes for api/v1/submission_similarities index and show

* Add RSpec tests for POST /api/v1/courses/{course_id}/assignment/

* Update similarity percentage format it doc

* Remove unused files and routes

* Update/ Clarify API doc

* added pagination

* added to use the will_paginate gem

* Added such that limit has higher precedence over pagination

---------

Co-authored-by: Michael Gau <61722401+mengyewgau@users.noreply.github.com>
Co-authored-by: sibinhho99 <sibinhho99@gmail.com>
Co-authored-by: florentianayuwono <76247368+florentianayuwono@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2 participants