Skip to content

Latest commit

 

History

History
86 lines (63 loc) · 991 Bytes

README.md

File metadata and controls

86 lines (63 loc) · 991 Bytes

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • go

Installation

  1. Clone the Repo
go get -u github.com/devashar13/instagram-api

Routes

/users
  • Query Parameters
POST
{
    "name":"Name",
    "email":"name@gmail.com",
    "password":"password"
}

Password Hashing Algorithm Used: SHA256

GET
/users/<userid>
POST
/products
POST
{
    "user":"userid",
    "caption":"caption",
    "imageurl":"imageurl"
    
}

Time is set to the time of upload

GET
/products/<productid>
GET
/products/users/<userid>

or To paginate

GET
/products/users/<userid>?limit=2

Testing

go test