Skip to content

DeanFoley/go-social-media-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

API Specification

POST /CreateNewUser

POST /createNewUser/{username}

Creates a user with a specific username

GET /GetFollowers

GET /getFollowers/{username}

Returns a list of followers of a given user

GET /GetFollowing

GET /getFollowing/{username}

Returns a list of users the given user is following

PATCH /Follow

PATCH /follow -d '{ "username": <following-user>, "target": <target-user> }'

Follows the target-user as the following-user

Example

Request
{
    "username": "deanfoley",
    "target": "domgreen",
}
Response

"User deanfoley is now following domgreen!"

PATCH /Unfollow

PATCH /unfollow -d '{ "username": <following-user>, "target": <target-user> }'

Unfollows the target-user as the following-user

Example

Request
{
    "username": "deanfoley",
    "target": "domgreen",
}
Response

"User deanfoley is no longer following domgreen!"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages