Skip to content

A REST API for a social media user allows applications to interact with social media platforms by enabling the retrieval, creation, updating, and deletion of user-related data.

License

Notifications You must be signed in to change notification settings

Shubhamghude808/REST-API-Social-media-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

REST-API-Social-media-user

A REST API for a social media user allows applications to interact with social media platforms by enabling the retrieval, creation, updating, and deletion of user-related data.

Use the Talent API tester

For implementing the Api requests use the talent api tester browser extension in Safari, Chrome, FireFox etc.

Launch MySQL as Docker Container

docker run --detach --env MYSQL_ROOT_PASSWORD=dummypassword --env MYSQL_USER=social-media-user --env MYSQL_PASSWORD=dummypassword --env MYSQL_DATABASE=social-media-database --name mysql --publish 3306:3306 mysql:8-oracle

mysqlsh commands

mysqlsh
\connect social-media-user@localhost:3306
\sql
use social-media-database
select * from user_details;
select * from post;
\quit

Hello World Resource

Hello World

Users Resource

POST http://localhost:5000/jpa/users

{
    "name": "Shubham",
    "birthDate": "2000-07-19"
}

GET http://localhost:5000/jpa/users

[
    {
        "id": 1,
        "name": "Shubham",
        "birthDate": "2000-07-19"
    }
]

GET http://localhost:5000/jpa/users/1

{
    "id": 1,
    "name": "Shubham",
    "birthDate": "2000-07-19"
}

POST to http://localhost:5000/jpa/users/1/posts

{
	"description":"I want to get AWS Certified"
}

GET http://localhost:5000/jpa/users/1/posts

[
    {
        "id": 1,
        "description": "I want to get AWS Certified"
    }
]

About

A REST API for a social media user allows applications to interact with social media platforms by enabling the retrieval, creation, updating, and deletion of user-related data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages