Coder Social home page Coder Social logo

adobe_assignments's Introduction

Blog Application

I have developed this REST API for an Blog Application. This API performs all the fundamental CRUD operations of any Blog Application with user validation at every step.

Installation & Run all End Point see on the Swagger -url after run the project on localMachine or Computer

run this command in your local Machine or PC

  git clone https://github.com/sav98aman/Adobe_Assignments.git

Before running the API server, you should update the database config inside the application.properties file. Update the port number, username and password as per your local database config.

    server.port=8080

    spring.datasource.url=jdbc:mysql://localhost:3306/ADOBE;
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.datasource.username=root
    spring.datasource.password=root

API Root Endpoint-- after Start the Server need to call this url u can see all the end point

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

API Module Endpoints

User Module

  • POST /users : Register ( Create new Account )
  • PUT /users/{user_id} : Update the User name and Bio by user_id
  • DELETE /users/{user_id} : Delete User by user_id
  • GET /users/{user_id} : Getting a particular User Details by user_id
  • GET /analytics/users : Getting total number of User
  • GET /analytics/users/top-active 5 Top Active Users

Post Module

  • POST /posts : Create a new Post
  • PUT /posts/{post_id} : Update the Content by post_id
  • DELETE /posts/{post_id} : Delete a Post by post_id
  • POST /posts/{post_id}/like : Update a Like value by post_id
  • POST /posts/{post_id}/unlike : Update a Like value by decreasing 1 bypost_id
  • GET /posts/{post_id} : Getting a particular post by post_id
  • GET /analytics/posts : Getting total number of Post
  • GET /analytics/posts/top-active Top 5 Most liked Post

Sample API Response

Request Body for User

{
    "userName":"amankumar",
    "email":"[email protected]",
    "bio":"Hello Ji i am Aman Kumar verma",
    "password":"1234"
}

Response Body

{
    "data": {
        "status": null,
        "data": {
            "userID": 2,
            "userName": "amankumar",
            "email": "[email protected]",
            "bio": "Hello Ji i am Aman Kumar verma",
            "createAtTime": "2023-04-10T02:17:39.6623672",
            "updateAtTime": null
        }
    },
    "StatusCode": "OK",
    "status": "success"
}

adobe_assignments's People

Contributors

sav98aman 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.