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)

x86
All
defect

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).
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?
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
Assignee: nobody → ashish.dubey91
Target Milestone: --- → 2013-06-13
Priority: -- → P2
Target Milestone: 2013-06-13 → 2013-06-20
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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.