Closed
Bug 879545
Opened 11 years ago
Closed 11 years ago
Add an API endpoint for a developer to respond to a conversation thread
Categories
(Marketplace Graveyard :: API, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
2013-06-20
People
(Reporter: cvan, Assigned: ashish_d)
References
Details
(Whiteboard: p=2)
As a developer, I will respond to a thread from `/communication`. The front end will POST to the API to add a new note to a conversation thread. Keep in mind that this API endpoint will also be used by the email-reply machine (bug 879412).
Assignee | ||
Comment 1•11 years ago
|
||
My approach to the RESTful design of this API (which will consider reading from a thread too) suggests we should have an endpoint like - GET /api/thread/<thread_id> - to enlist a thread, i.e. all the notes created within the thread. POST /api/thread/<thread_id> - to modify a thread, i.e. create a new note within the thread. We can then similarly use the same url - PUT /api/thread/ - To create a new fresh thread. Can we do better or we stick to this one?
Comment 2•11 years ago
|
||
We've been using POST to create and PATCH or PUT to modify or update an object. http://firefox-marketplace-api.readthedocs.org/en/latest/topics/overview.html#verbs
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → ashish.dubey91
Target Milestone: --- → 2013-06-13
Updated•11 years ago
|
Priority: -- → P2
Updated•11 years ago
|
Target Milestone: 2013-06-13 → 2013-06-20
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•11 years ago
|
||
Commit: https://github.com/mozilla/zamboni/commit/37f3a4a
Whiteboard: p=2
Comment 4•11 years ago
|
||
Please add STR here or mark it with [qa-] if no QA is needed.
You need to log in
before you can comment on or make changes to this bug.
Description
•