
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
account-json-api
Advanced tools
RESTful JSON API-blueprint for all things user accounts
This is a JSON API v1.0 compliant specification for a generic REST API for all things user accounts.
PUT /session
GET /session
DELETE /session
PUT /session/account
GET /session/account
PATCH /session/account
DELETE /session/account
GET /session/account/profile
PATCH /session/account/profile
# Password resets, upgrades, etc.
GET /requests
POST /requests
GET /requests/{id}
DELETE /requests/{id}
# Admin only
POST /accounts
GET /accounts
GET /accounts/{id}
PATCH /accounts/{id}
DELETE /accounts/{id}
GET /accounts/{id}/profile
PATCH /accounts/{id}/profile
POST /accounts/{id}/sessions
Find the full spec at http://docs.accountjsonapi.apiary.io
Request
PUT /session
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"data": {
"type": "session",
"attributes": {
"username": "john-doe",
"password": "secret"
}
}
}
Response
{
"links": {
"self": "https://example.com/session"
},
"data": {
"id": "sessionid123",
"type": "session",
"relationships": {
"account": {
"links": {
"related": "https://example.com/session/account"
},
"data": {
"id": "abc1234",
"type": "account"
}
}
}
},
"included": [{
"id": "abc1234",
"type": "account",
"attributes": {
"username": "jane-doe"
},
"relationships": {
"profile": {
"links": {
"related": "https://example.com/session/account/profile"
},
"data": {
"id": "abc1234-profile",
"type": "accountProfile"
}
}
}
}]
}
The account-json-api
is currently being implemented by Hoodie
in the hoodie-server-account
module.
MIT
FAQs
RESTful API-blueprint for all things user accounts
The npm package account-json-api receives a total of 4 weekly downloads. As such, account-json-api popularity was classified as not popular.
We found that account-json-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.