
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
####GET
Ressource | Description | on Success | on Failure |
---|---|---|---|
/users | returns all users | json object | statusCode: 404 |
/users/:userID | returns profile information for requested user ID | json object | statusCode: 404 |
/users/me | returns profile of current user | json object | statusCode: 404 |
/users/:userID/:file.:ext | returns the profile picture of the user with the requested ID | image stream | statusCode: 404 |
####POST
Ressource | Description | on Success | on Failure |
---|---|---|---|
/users | create new user | statusCode: 200 | statusCode: 404 |
/users/my/picture | create a new profile picture | json object with the destination of the picture | statusCode: 404 |
####PUT
Ressource | Description | on Success | on Failure |
---|---|---|---|
/users/me | update user information | statusCode: 200 | statusCode: 404 |
/users/my/password | update user password | statusCode: 200 | statusCode: 404 |
/users/:userID/password | update password of user by id | statusCode: 200 | statusCode: 404 |
/users/:userID | update particular user | statusCode: 200 | statusCode: 404 |
/users/my/picture | update the profile picture | json object with the destination of the picture | statusCode: 404 |
####DELETE
Ressource | Description | on Success | on Failure |
---|---|---|---|
/users/:userID | delete user by userid | statusCode: 200 | statusCode: 404 |
{
_id: '4234324342',
_rev: '1-dbe58c4eb46dc66b3b62ed4dfab2f3fe',
name: 'Doe',
surname: 'John',
description: 'Ich bin Steffen Ich bin Steffen, Steffen wollt ich schon immer sein',
age: 27,
residence: 'Konstanz',
"imageLocation": {
"picture": "/i/users/368f5b48e4f45213ed912dd1e30377df/profile.png",
"thumbnail": "/i/users/368f5b48e4f45213ed912dd1e30377df/profile-thumb.png"
},
mail: 'john.doe@info.de',
password: 'secret',
type: 'user'
}
{
"message": "ok",
"imageLocation": {
"picture": "/i/users/368f5b48e4f45213ed912dd1e30377df/profile.png",
"thumbnail": "/i/users/368f5b48e4f45213ed912dd1e30377df/profile-thumb.png"
}
}
"/i" in the url will be transformed to /api/vX/ from nginx on the server side
FAQs
Plugin for handling all routes, which relate to a user.
We found that ark-user demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.