Code Monkey home page Code Monkey logo

instagram-backend-api's Introduction

INSTAGRAM-BACKEND-API

  • This API is developed using go language with mongoDB as the database.
  • You can create user and post with the http calls listed down below.
  • Also user details and post can be fetch corresponding to the gievn ID.

✔️ Create an User

  • Should be a POST request

  • Use JSON request body

  • URL should be ‘/users'

  • POST : http:localhost:9000/users
    Body
    {
        "Name": "XYZ ABC",
        "Email": "[email protected]",
        "Password": "xyzabc"
    }
    

✔️ Get a user using id

✔️ Create a Post

  • Should be a POST request
  • Use JSON request body
  • URL should be ‘/post'
  • POST: http:localhost:9000/post
    Body
    {
        "Caption": "My first post",
        "Image_URL": "https://first_post.png",
        "UserId": "61612bb9e11c71a9c06d5ea9"
    }
    

✔️ Get a post using id

✔️ List all posts of a user

✔️ Passwords should be securely stored such they can't be reverse engineered
✔️ Make the server thread safe
✔️ Add pagination to the list endpoint with 2 posts per page
❌ Add unit tests
✔️ The API should be developed using Go.
✔️ MongoDB should be used for storage.
✔️ Only packages/libraries listed here and here can be used.

✔️ Users should have the following attributes

  • Id
  • Name
  • Email
  • Password

✔️ Posts should have the following Attributes. All fields are mandatory unless marked optional:

  • Id
  • Caption
  • Image URL
  • Posted Timestamp

instagram-backend-api's People

Contributors

vashuteotia123 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.