{ "openapi": "3.0.1", "info": { "title": "AntonioAPI", "version": "1.0" }, "paths": { "/api/Autor/autores-por-premio/{premioId}": { "get": { "tags": [ "Autor" ], "parameters": [ { "name": "premioId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AutorConAnio" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AutorConAnio" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AutorConAnio" } } } } } } } }, "/api/Autor": { "get": { "tags": [ "Autor" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Autor" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Autor" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Autor" } } } } } } }, "post": { "tags": [ "Autor" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Autor" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Autor" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Autor" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Autor" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Autor" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Autor" } } } } } } }, "/api/Autor/{id}": { "get": { "tags": [ "Autor" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Autor" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Autor" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Autor" } } } } } }, "put": { "tags": [ "Autor" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Autor" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Autor" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Autor" } } } }, "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Autor" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Libro": { "get": { "tags": [ "Libro" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Libro" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Libro" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Libro" } } } } } } }, "post": { "tags": [ "Libro" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Libro" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Libro" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Libro" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Libro/{autorID}": { "get": { "tags": [ "Libro" ], "parameters": [ { "name": "autorID", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Libro" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Libro" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Libro" } } } } } } } }, "/api/Libro/{id}": { "put": { "tags": [ "Libro" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Libro" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Pais": { "get": { "tags": [ "Pais" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pais" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pais" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pais" } } } } } } }, "post": { "tags": [ "Pais" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pais" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Pais" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Pais" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Pais" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Pais" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Pais" } } } } } } }, "/api/Pais/{id}": { "get": { "tags": [ "Pais" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Pais" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Pais" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Pais" } } } } } }, "put": { "tags": [ "Pais" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Pais" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Premio": { "get": { "tags": [ "Premio" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Premio" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Premio" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Premio" } } } } } } }, "post": { "tags": [ "Premio" ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Premio/autor": { "get": { "tags": [ "Premio" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Premio" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Premio" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Premio" } } } } } } } }, "/api/Premio/{id}": { "get": { "tags": [ "Premio" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } }, "put": { "tags": [ "Premio" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Premio" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" } } } }, "/WeatherForecast": { "get": { "tags": [ "WeatherForecast" ], "operationId": "GetWeatherForecast", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } } } } } } } }, "components": { "schemas": { "Autor": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "nom_autor": { "type": "string", "nullable": true }, "apellido1": { "type": "string", "nullable": true }, "apellido2": { "type": "string", "nullable": true }, "f_nac": { "type": "string", "format": "date", "nullable": true }, "f_def": { "type": "string", "format": "date", "nullable": true }, "paisId": { "type": "integer", "format": "int32", "nullable": true }, "pais": { "$ref": "#/components/schemas/Pais" }, "foto": { "type": "string", "nullable": true }, "biografia": { "type": "string", "nullable": true }, "localidad": { "type": "string", "nullable": true }, "autorPremios": { "type": "array", "items": { "$ref": "#/components/schemas/AutorPremio" }, "nullable": true }, "autorLibros": { "type": "array", "items": { "$ref": "#/components/schemas/AutorLibro" }, "nullable": true } }, "additionalProperties": false }, "AutorConAnio": { "type": "object", "properties": { "anio": { "type": "integer", "format": "int32" }, "autor": { "$ref": "#/components/schemas/Autor" } }, "additionalProperties": false }, "AutorLibro": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "autorId": { "type": "integer", "format": "int32" }, "libroId": { "type": "integer", "format": "int32" }, "libro": { "$ref": "#/components/schemas/Libro" } }, "additionalProperties": false }, "AutorPremio": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "autorId": { "type": "integer", "format": "int32" }, "premioId": { "type": "integer", "format": "int32" }, "premio": { "$ref": "#/components/schemas/Premio" }, "anio": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "Libro": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "nom_libro": { "type": "string", "nullable": true }, "ano": { "type": "integer", "format": "int64", "nullable": true }, "portada": { "type": "string", "nullable": true }, "nom_archivo": { "type": "string", "nullable": true }, "pelicula": { "type": "string", "nullable": true }, "comentario": { "type": "string", "nullable": true }, "serieId": { "type": "integer", "format": "int32", "nullable": true }, "indice_serie": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "Pais": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "nom_pais": { "type": "string", "nullable": true }, "bandera": { "type": "string", "nullable": true }, "autorId": { "type": "array", "items": { "type": "integer", "format": "int32" }, "nullable": true } }, "additionalProperties": false }, "Premio": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "nom_premio": { "type": "string", "nullable": true }, "paisId": { "type": "integer", "format": "int32" }, "pais": { "$ref": "#/components/schemas/Pais" }, "tipo": { "type": "string", "nullable": true } }, "additionalProperties": false }, "WeatherForecast": { "type": "object", "properties": { "date": { "type": "string", "format": "date-time" }, "temperatureC": { "type": "integer", "format": "int32" }, "temperatureF": { "type": "integer", "format": "int32", "readOnly": true }, "summary": { "type": "string", "nullable": true } }, "additionalProperties": false } } } }