Title
+To add the user's friends to edit the list +
+URL
+Headers
++
+| Header Name | +Required | +Type | +Description | +
|---|---|---|---|
| Authorization | +true | +string | ++ Bearer {Token} + | +
URL Parameters
++ For GET Request. + If URL params exist, specify them in accordance with name mentioned in URL section. + Mention if is required or optional. Document data constraints. +
+| Param Name | +Required | +Type | +Description | +
|---|---|---|---|
| friend | +true | +string | ++ friend=username of the friend that need's edit access. + | +
| slug | +true | +string | ++ slug=list name that the user wants to give edit access. + | +
Success Response
++ Return the staus of the request along with message. +
++ Status Code: 200 +
++ Sample Response: +
+
+
+ {
+ "status": "OK",
+ "result": "User has been added to the list"
+ }
+
+
+ Error Response
++ Reason of Error: If the user is not Authentication. +
++ Status Code: 400 BAD REQUEST +
++ Error Response: +
+
+
+ {
+ "status": "FAILED",
+ "error": "Authentication credentials were not provided"
+ }
+
+
+ Sample Call
++ Just a sample call to your endpoint in a runnable format + ($.ajax call or a curl request) - this makes life easier and more predictable. +
+
+
+ curl -X POST "https://api.codedigger.tech/lists/add"
+
+
+ Notes
++ This is where all uncertainties, commentary, discussion etc.., can go. + Mention timestamp and identify yourself when leaving comments here. +
+