You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

github.com/PranavMurali/Media_API

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/PranavMurali/Media_API

v0.0.0-20211010063008-e22037c152af
Version published
Created

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

FAQs

Package last updated on 10 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts