{"id":18473283,"url":"https://github.com/thatbackendguy/social-app-spyne","last_synced_at":"2025-05-12T19:00:11.714Z","repository":{"id":244031559,"uuid":"814104743","full_name":"thatbackendguy/social-app-spyne","owner":"thatbackendguy","description":"SPYNE SDE-1 Assignment","archived":false,"fork":false,"pushed_at":"2024-06-12T14:16:24.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T19:20:03.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatbackendguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-12T10:52:33.000Z","updated_at":"2024-06-12T14:16:28.000Z","dependencies_parsed_at":"2024-06-12T15:39:42.626Z","dependency_job_id":"66784de7-ce64-4ea3-a9c1-3850b1e1da0a","html_url":"https://github.com/thatbackendguy/social-app-spyne","commit_stats":null,"previous_names":["thatbackendguy/social-app-spyne"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fsocial-app-spyne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fsocial-app-spyne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fsocial-app-spyne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fsocial-app-spyne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatbackendguy","download_url":"https://codeload.github.com/thatbackendguy/social-app-spyne/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805844,"owners_count":21967052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T10:24:22.143Z","updated_at":"2025-05-12T19:00:11.612Z","avatar_url":"https://github.com/thatbackendguy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social App\n## SDE-1 Assignment Spyne.ai\n\n### Authentication\n#### Sign Up\nEndpoint: `/api/auth/signup`  \nMethod: `POST`  \nDescription: Create a new user.  \nRequest Body:  \n```json\n{\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\",\n    \"mobile\": \"1234567890\",\n    \"password\": \"password123\"\n}\n```\n#### Log In\nEndpoint: `/api/auth/login`  \nMethod: `POST`  \nDescription: Authenticate a user.  \nRequest Body:  \n```json\n{\n    \"email\": \"john@example.com\",\n    \"password\": \"password123\"\n}\n```\n### Users\n#### Get Users\nEndpoint: `/api/users`  \nMethod: `GET`  \nDescription: Retrieve a list of users.  \nHeaders: { \"x-auth-token\": \"token\" }  \n\n#### Search User by Name\nEndpoint: `/api/users/search`  \nMethod: `GET`  \nDescription: Search for users by name.  \nHeaders: { \"x-auth-token\": \"token\" }   \nQuery Params: name=name  \n\n#### Update User  \nEndpoint: `/api/users/:id`  \nMethod: `PUT`  \nDescription: Update a user's details.  \nHeaders: { \"x-auth-token\": \"token\" }  \nRequest Body:\n```json\n{\n    \"email\": \"newemail@example.com\",\n    \"mobile\": \"0987654321\"\n}\n```\n\n#### Follow User\nEndpoint: `/api/users/follow/:id`  \nMethod: `POST`  \nDescription: Follow another user.  \nHeaders: { \"x-auth-token\": \"token\" }  \n\n#### Delete User\nEndpoint: `/api/users/:id`  \nMethod: `DELETE`  \nDescription: Delete a user.  \nHeaders: { \"x-auth-token\": \"token\" }  \n\n### Discussions\n#### Get Discussions\nEndpoint: `/api/discussions`  \nMethod: `GET`  \nDescription: Retrieve a list of discussions.  \nHeaders: { \"x-auth-token\": \"token\" }  \n\n#### Search Discussions by Hashtag\nEndpoint: `/api/discussions/search`  \nMethod: `GET`  \nDescription: Search for discussions by hashtags or text.  \nHeaders: { \"x-auth-token\": \"token\" }  \nQuery Params:\ntags=tag1,tag2\ntext=search text\n\n#### Create Discussion\nEndpoint: `/api/discussions`  \nMethod: `POST`  \nDescription: Create a new discussion.  \nHeaders: { \"x-auth-token\": \"token\" }  \nRequest Body: multipart/form-data with fields text, hashtags, and image  \n\n#### Update Discussion\nEndpoint: `/api/discussions`  \nMethod: `PUT`  \nDescription: Update an existing discussion.  \nHeaders: { \"x-auth-token\": \"token\" }  \nRequest Body: multipart/form-data with fields text, hashtags, and image  \n\n#### Like Discussion\nEndpoint: `/api/discussions/like/:id`  \nMethod: `POST`  \nDescription: Like a discussion.  \nHeaders: { \"x-auth-token\": \"token\" }  \n\n#### Delete Discussion\nEndpoint: `/api/discussions/:id`  \nMethod: `DELETE`  \nDescription: Delete a discussion.  \nHeaders: { \"x-auth-token\": \"token\" }  \n\n### Comments\n#### Add Comment\nEndpoint: `/api/comments/:discussionId`  \nMethod: `POST`  \nDescription: Add a comment to a discussion.  \nHeaders: { \"x-auth-token\": \"token\" }  \nRequest Body:\n```json\n{\n    \"text\": \"This is a comment.\"\n}\n```\n#### Like Comment\nEndpoint: `/api/comments/like/:id`  \nMethod: `POST`  \nDescription: Like a comment.  \nHeaders: { \"x-auth-token\": \"token\" }    \n\n#### Update Comment\nEndpoint: `/api/comments/:id`  \nMethod: `PUT`  \nDescription: Update an existing comment.  \nHeaders: { \"x-auth-token\": \"token\" }  \nRequest Body:\n```json\n{\n    \"text\": \"Updated comment text.\"\n}\n```\n\n#### Delete Comment\nEndpoint: `/api/comments/:id`  \nMethod: `DELETE`    \nDescription: Delete a comment.  \nHeaders: { \"x-auth-token\": \"token\" }    \n\n#### Reply to Comment\nEndpoint: `/api/comments/reply/:commentId`  \nMethod: `POST`  \nDescription: Reply to an existing comment.  \nHeaders: { \"x-auth-token\": \"token\" }  \nRequest Body:\n```json\n{\n    \"text\": \"This is a reply to the comment.\"\n}\n```\n\n© Yash Prajapati [thatbackendguy](https://www.thatbackendguy.com/about-me)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatbackendguy%2Fsocial-app-spyne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatbackendguy%2Fsocial-app-spyne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatbackendguy%2Fsocial-app-spyne/lists"}