
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/lCanSay/avatarApi
The project is based on Avatar: Aang cartoon-serial.
/users method POST
/users/{userld:[0-9]+} method GET
/users/{userld:[0-9]+} method PUT
/users/{userld:[0-9]+} method DELETE
The characters table contains the following columns:
Column Name | Data Type | Description |
---|---|---|
id | INT | Primary key, unique identifier for each character. |
name | VARCHAR | The name of the character. |
description | TEXT | A detailed description of the character. |
age | INT | The age of the character. |
affiliation_id | INT | Foreign key linking to the affiliation table. |
created_at | TIMESTAMP | Timestamp when the character was created. |
updated_at | TIMESTAMP | Timestamp when the character was last updated. |
The affiliation table contains the following columns:
Column Name | Data Type | Description |
---|---|---|
id | INT | Primary key, unique identifier for each affiliation. |
name | VARCHAR | The name of the affiliation. |
description | TEXT | A detailed description of the affiliation. |
created_at | TIMESTAMP | Timestamp when the affiliation was created. |
updated_at | TIMESTAMP | Timestamp when the affiliation was last updated. |
The ability table contains the following columns:
Column Name | Data Type | Description |
---|---|---|
id | INT | Primary key, unique identifier for each ability. |
name | VARCHAR | The name of the ability. |
description | TEXT | A detailed description of the ability. |
created_at | TIMESTAMP | Timestamp when the ability was created. |
updated_at | TIMESTAMP | Timestamp when the ability was last updated. |
The characters table may have a foreign key affiliation_id that relates to the affiliation table, indicating the location affiliation of a character.
If characters have specific bending abilities listed in the ability column, you might consider creating a separate table for abilities and establishing a many-to-many relationship between characters and ability.
The base URL for all API endpoints is https://your-api-domain.com.
Certain endpoints require specific permissions to be accessed:
Get a list of all characters.
Response: [ { "id": 1, "name": "Aang", "age": 112, "gender": "Male", "affiliation": "Air Nomads", "abilities": "Airbending, Energybending", "image": "https://example.com/aang.jpg" }, // ... other characters ]
FAQs
Unknown package
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.