PranavMurali / Media_API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social Media Backend API

A social media backend API, using Golang and a MongoDB backend.

Endpoints:

POST /users

Create a user object using name, email and password fields. Password field is hashed and sent to mongo backend. alt

GET /users/{id}

Get any user object using the user's ID alt

POST /posts

Create a post object using caption, image URL and userID. A server side timestamp is generated for the post. alt

GET /posts/{id}

Get any post object using post ID. alt

GET /posts/users/{id}

Get all of any user's posts using the user's ID. alt

About

License:GNU Affero General Public License v3.0


Languages

Language:Go 100.0%