Code Monkey home page Code Monkey logo

adobe_assignment's Introduction

Adobe_Assignment

About

It is a social media application module where a user can make a post and can like and unlike the post accordingly.

Features

  • User can signUp using the valid credentials.
  • User can able to login using the valid credentials which is authorized by the spring security JWT token.
  • User can able to perform logOut as well.
  • User can post and like.
  • User can able to perform like and unlike functionality.
  • User can find top 5 post and top 5 active users as well.
  • User can able to perform all the CRUD operations.

Technologies and Dependencies Used

  • Java
  • Spring Boot
  • Spring Data JPA
  • Spring Web
  • Spring Security
  • Devtools
  • MySQL
  • Lombok
  • Maven
  • Swagger-ui

Setup and user guide

Starting up the server from the springBoot application

Home page for front end of Swagger-ui

Login a user by using the valid credentials

After login user will be authenticated by bearer token

- You can copy this bearer token to use as a token for further authorization
Use this bearer token to authenticate to use furhter apis

To logout from the application simply hit logout button

Swagger Documentation

http://localhost:8888/swagger-ui/index.html

API Root and Endpoint

  • Register one user to the database
  • Method : POST
http://localhost:8888/users
  • SignIn the user using the valid credentials
  • Method : GET
http://localhost:8888/signIn
  • Retrive one user using user id
  • Method : GET
http://localhost:8888/users/{id}
  • Update a user's credentials
  • Method : PUT
http://localhost:8888/users/{id}
  • Delete a user by id
  • Method : DELETE
http://localhost:8888/users/{id}
  • Retrieve the total number of users
  • Method : GET
http://localhost:8888/analytics/users
  • Retrieve the top 5 most active users
  • Method : GET
http://localhost:8888/analytics/users/top-active
  • Create a new post
  • Method : POST
http://localhost:8888/posts
  • Retrieve a post by id
  • Method : GET
http://localhost:8888/posts/{id}
  • Update a post's content by id
  • Method : PUT
http://localhost:8888/posts/{id}
  • Delete a post by id
  • Method : DELETE
http://localhost:8888/posts/{id}
  • Increment the like count of a post by id
  • Method : POST
http://localhost:8888/posts/{id}/like
  • Decrement the like count of a post by id
  • Method : POST
http://localhost:8888/posts/{id}/unlike
  • Retrieve the total number of posts
  • Method : GET
http://localhost:8888/analytics/posts
  • Retrieve the top 5 most liked posts
  • Method : GET
http://localhost:8888/analytics/posts/top-liked

adobe_assignment's People

Contributors

suresh170411 avatar

Stargazers

 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.