Skip to content

Simple Instagram Backend REST API using GO and MongoDB

Notifications You must be signed in to change notification settings

Anish-U/Instagram_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Instagram API

Simple Instagram Backend REST API using GO and MongoDB


❗❗ Requirements

To be able show desired features of REST API such as:

  • POST /users/ creates a new user using JSON request body
  • GET /users/{id} returns details of specific user as JSON
  • POST /posts/ creates a new post using JSON request body
  • GET /posts/{id} returns specific post as JSON
  • GET /posts/users/{id} returns list of all posts of specific user as JSON
  • server_test.go unit tests

The API should be developed only using Go & MongoDB.
No frameworks / third-party libraries to be used.
Pagination and Unit Tests can be implemented


⚒ Data Types

A User object should look like this:

{
  "id": "ID",
  "name": "name of the user",
  "email": "email of the user",
  "password": "password of the user",
}

A Post object should look like this:

{
  "id": "ID",
  "caption": "caption to the post",
  "imageURL": "link to the image",
  "timestamp": "password of the user",
  "userID": "user ID of owner to the post",
}

📸 Screenshots

POST /users/

Project logo


GET /users/{id}

Project logo


POST /posts/

Project logo


GET /posts/{id}

Project logo


GET /posts/users/{id}

Project logo


Unit Tests => server_test.go

Project logo


✍️ Authors

About

Simple Instagram Backend REST API using GO and MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages