github.com/vctrl/social-media-network/api

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/vctrl/social-media-network/api

v0.0.0-20220416155416-360645e41b1b
96

Supply Chain Security

100

Vulnerability

100

Quality

100

Maintenance

100

License

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Dependencies have 12 high and critical alerts.

Critical CVE and High CVE

Version published
Created

// USERS

GET /me
response: user

POST /register
request: { login, password, name, surname, age, sex, interests, city }
response: user, 201

POST /login

request: { login, password }
response: {user_id, token}

GET /users/{id1,id2,id3...}

PUT /users/{id}
response user

DELETE /users/{id}
response: 200 ok

POST /logout

// FRIENDS

// список друзей
GET /friends/
response {[ user ]}

// исходящие заявки
GET /friends/requests/sent

response [user_id1, user_id2 ...] 

// входящие заявки
GET /friends/requests

response [user_id1, user_id2 ...] 

// отправить заявку в друзья
POST /friends/{user_id}

response 200

// принять заявку в друзья
POST /friends/{id}/accept

response 200

// удалить друга
DELETE /friends/{user_id}

// отменить заявку
DELETE /friends/requests/{id}

user {id, login, name, surname, age, sex, interests, city }

friend_request {}

FAQs

Package last updated on 16 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts