Skip to content

Query Parameters Not Using Example Values in Conversion #848

@gabrielspirlan

Description

@gabrielspirlan

Hello, I am using this library to convert Swagger documentation to Postman, but I'm facing an issue where the query parameters are not displaying their example values correctly.

I am using the following converter properties:

  • folderStrategy: "Tags"
  • parametersResolution: "Example"
  • collapseFolders: false
  • requestParametersResolution: "Example"

Below, I have attached both my Swagger JSON and the generated Postman JSON. How can I resolve this issue? I would like the query parameters in Postman to include example values, making it easier for users to understand API requests.

The result is always like the example in propertie "nome"

Image

Swagger.JSON

{"openapi":"3.0.1","info":{"title":"StarWars","description":"List of Methods for StarWars's project. <br /> Projeto de Teste Para a API do Swagger ","version":"v1"},"servers":[{"url":"http://localhost:8112","description":"Generated server url"}],"security":[{"Authorization bearer":[]}],"tags":[{"name":"Jedis","description":"Operações de Gestão De Jedis"},{"name":"Jedi"},{"name":"Planetas","description":"Operação de Gestão de Planetas"}],"paths":{"/planet/":{"get":{"tags":["Planetas"],"description":"Retorna todos os planetas cadastrados","operationId":"getAllPlanets","responses":{"200":{"description":"Retorna todos os Jedis","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanetDTO"}}}}},"500":{"description":"Erro interno no servidor","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanetDTO"}}}}}}},"post":{"tags":["Planetas"],"description":"Cadastra um novo planeta","operationId":"createPlanet","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetDTO"}}},"required":true},"responses":{"201":{"description":"Jedi cadastrado com sucesso","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanetDTO"}}}},"500":{"description":"Erro interno no servidor","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanetDTO"}}}}}}},"/jedis/":{"get":{"tags":["Jedis"],"operationId":"getAll","responses":{"200":{"description":"Retorna todos os Jedis","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JediDTO"}}}}},"500":{"description":"Erro interno no servidor","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JediDTO"}}}}}}},"post":{"tags":["Jedis"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JediDTO"}}},"required":true},"responses":{"201":{"description":"Jedi cadastrado com sucesso","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JediDTO"}}}},"500":{"description":"Erro interno no servidor","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JediDTO"}}}}}}},"/planet/{id}":{"get":{"tags":["Planetas"],"description":"Retorna um Planeta pelo ID","operationId":"getPlanet","parameters":[{"name":"id","in":"query","description":"Id do Planeta que será buscado","required":true,"schema":{"type":"integer","format":"int32"},"example":1},{"name":"nome","in":"query","description":"nome","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Planeta encontrado com sucesso","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanetDTO"}}}},"400":{"description":"Jedi não encontrado","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanetDTO"}}}},"500":{"description":"Erro interno no servidor","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanetDTO"}}}}}}},"/jedis/{id}":{"get":{"tags":["Jedis"],"description":"Busca e retorna um Jedi pelo ID","operationId":"getById","parameters":[{"name":"id","in":"query","description":"Id do Jedi que será buscado","required":true,"schema":{"type":"integer","format":"int32"},"example":1}],"responses":{"200":{"description":"Jedi encontrado com sucesso","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JediDTO"}}}},"400":{"description":"Jedi não encontrado","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JediDTO"}}}},"500":{"description":"Erro interno no servidor","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JediDTO"}}}}}}},"/hello":{"get":{"tags":["Jedi"],"operationId":"Hello","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"PlanetDTO":{"type":"object","properties":{"id":{"type":"integer","description":"ID Único do Planeta","format":"int32","example":1},"name":{"type":"string","description":"Nome do Planeta","example":"Tatooine"},"galaxia":{"type":"string","description":"Galaxia a qual o planeta pertence","example":"Orla Externa"}},"description":"Entidade de Planetas"},"JediDTO":{"type":"object","properties":{"id":{"type":"integer","description":"ID Único do Jedi","format":"int32","example":1},"name":{"type":"string","description":"Nome do Jedi","example":"Luke Skywalker"},"classe":{"type":"string","description":"Define a classe do Jedi","example":"Mestre Jedi"},"power":{"type":"integer","description":"Quantidade de poder do Jedi","format":"int32","example":10000},"planet":{"$ref":"#/components/schemas/PlanetDTO"}},"description":"Entidade de Jedis"}},"securitySchemes":{"Authorization bearer":{"type":"http","name":"Authorization bearer","scheme":"Bearer","bearerFormat":"JWT"}}}}

Postman.json generated

{ "item": [ { "id": "53b4fc72-4a84-436f-a8e1-3647988fb07e", "name": "Jedis", "description": { "content": "Operações de Gestão De Jedis", "type": "text/plain" }, "item": [ { "id": "d2615a2e-55e8-48e4-b2a5-f6fa2147da80", "name": "get All", "request": { "name": "get All", "description": {}, "url": { "path": [ "jedis", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Accept", "value": "*/*" } ], "method": "GET", "auth": null }, "response": [ { "id": "8ada55e4-1a40-4867-a08b-c609e3883cae", "name": "Retorna todos os Jedis", "originalRequest": { "url": { "path": [ "jedis", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "[\n {\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n },\n {\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n }\n]", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "6d78da72-e361-4322-9dad-b7b11cf463be", "name": "Erro interno no servidor", "originalRequest": { "url": { "path": [ "jedis", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "Internal Server Error", "code": 500, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "[\n {\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n },\n {\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n }\n]", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "6e49faca-c37d-47d4-a266-746f4036854b", "name": "create", "request": { "name": "create", "description": {}, "url": { "path": [ "jedis", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "*/*" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "options": { "raw": { "language": "json" } } } }, "response": [ { "id": "cfa8c422-70d4-45b8-9a6a-401f21e617a9", "name": "Jedi cadastrado com sucesso", "originalRequest": { "url": { "path": [ "jedis", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "options": { "raw": { "language": "json" } } } }, "status": "Created", "code": 201, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "6f953a01-6dbc-4761-88d0-e03bd1411f8a", "name": "Erro interno no servidor", "originalRequest": { "url": { "path": [ "jedis", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "options": { "raw": { "language": "json" } } } }, "status": "Internal Server Error", "code": 500, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "c3e1f254-8553-4a3f-847e-8353d2f16e66", "name": "get By Id", "request": { "name": "get By Id", "description": { "content": "Busca e retorna um Jedi pelo ID", "type": "text/plain" }, "url": { "path": [ "jedis", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "disabled": false, "key": "id", "value": "1", "description": "(Required) Id do Jedi que será buscado" } ], "variable": [] }, "header": [ { "key": "Accept", "value": "*/*" } ], "method": "GET", "auth": null }, "response": [ { "id": "06258adf-83d9-44a5-b16c-a40177d2628d", "name": "Jedi encontrado com sucesso", "originalRequest": { "url": { "path": [ "jedis", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "id", "value": "1" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "d376f57d-b265-4422-b2f7-23be96a99f48", "name": "Jedi não encontrado", "originalRequest": { "url": { "path": [ "jedis", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "id", "value": "1" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "Bad Request", "code": 400, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "c106d3bf-e066-4433-937b-b16590c4038c", "name": "Erro interno no servidor", "originalRequest": { "url": { "path": [ "jedis", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "id", "value": "1" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "Internal Server Error", "code": 500, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Luke Skywalker\",\n \"classe\": \"Mestre Jedi\",\n \"power\": 10000,\n \"planet\": {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n}", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } } ], "event": [] }, { "id": "86653b19-eb7c-4ea8-9020-a83c1d459946", "name": "Jedi", "description": { "content": "", "type": "text/plain" }, "item": [ { "id": "0ad98d14-86ef-4c8b-a879-cf9245e6cb15", "name": "Hello", "request": { "name": "Hello", "description": {}, "url": { "path": [ "hello" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Accept", "value": "*/*" } ], "method": "GET", "auth": null }, "response": [ { "id": "34cc99d7-0039-4058-b39f-2b82081cf8e6", "name": "OK", "originalRequest": { "url": { "path": [ "hello" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "id est Ut ut cupidatat", "cookie": [], "_postman_previewlanguage": "text" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } } ], "event": [] }, { "id": "d9732fc8-6655-468f-b8ad-fb18cc607277", "name": "Planetas", "description": { "content": "Operação de Gestão de Planetas", "type": "text/plain" }, "item": [ { "id": "6faf0170-e16b-4791-8b94-e5d78c24c137", "name": "get All Planets", "request": { "name": "get All Planets", "description": { "content": "Retorna todos os planetas cadastrados", "type": "text/plain" }, "url": { "path": [ "planet", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Accept", "value": "*/*" } ], "method": "GET", "auth": null }, "response": [ { "id": "7de50794-a57a-4198-8662-6f7e105ecd28", "name": "Retorna todos os Jedis", "originalRequest": { "url": { "path": [ "planet", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "[\n {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n },\n {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n]", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "b96cc1eb-a01b-4b72-8ee6-4bec1c681a8a", "name": "Erro interno no servidor", "originalRequest": { "url": { "path": [ "planet", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "Internal Server Error", "code": 500, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "[\n {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n },\n {\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n }\n]", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "c21c7ab4-9a37-42a9-9227-9bdb9d29d39e", "name": "create Planet", "request": { "name": "create Planet", "description": { "content": "Cadastra um novo planeta", "type": "text/plain" }, "url": { "path": [ "planet", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "*/*" } ], "method": "POST", "auth": null, "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "options": { "raw": { "language": "json" } } } }, "response": [ { "id": "0cd54eea-0248-4a0a-810a-9cbbc19cf237", "name": "Jedi cadastrado com sucesso", "originalRequest": { "url": { "path": [ "planet", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "options": { "raw": { "language": "json" } } } }, "status": "Created", "code": 201, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "bf1db5d5-b83f-4cd1-9113-0a0851ec442a", "name": "Erro interno no servidor", "originalRequest": { "url": { "path": [ "planet", "" ], "host": [ "{{baseUrl}}" ], "query": [], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "POST", "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "options": { "raw": { "language": "json" } } } }, "status": "Internal Server Error", "code": 500, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } }, { "id": "7ba0de8e-4a3a-451f-ba16-06bfbfd6bba1", "name": "get Planet", "request": { "name": "get Planet", "description": { "content": "Retorna um Planeta pelo ID", "type": "text/plain" }, "url": { "path": [ "planet", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "disabled": false, "key": "id", "value": "1", "description": "(Required) Id do Planeta que será buscado" }, { "disabled": false, "key": "nome", "value": "id est Ut ut cupidatat", "description": "nome" } ], "variable": [] }, "header": [ { "key": "Accept", "value": "*/*" } ], "method": "GET", "auth": null }, "response": [ { "id": "d54bb7aa-4248-43dc-aeef-28be5933f3d4", "name": "Planeta encontrado com sucesso", "originalRequest": { "url": { "path": [ "planet", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "id", "value": "1" }, { "key": "nome", "value": "id est Ut ut cupidatat" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "29c6ec2c-7679-4797-abe0-2a12dde3b4bc", "name": "Jedi não encontrado", "originalRequest": { "url": { "path": [ "planet", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "id", "value": "1" }, { "key": "nome", "value": "id est Ut ut cupidatat" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "Bad Request", "code": 400, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "dc001d06-a697-4ae5-a2b3-796fd5762d4c", "name": "Erro interno no servidor", "originalRequest": { "url": { "path": [ "planet", ":id" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "id", "value": "1" }, { "key": "nome", "value": "id est Ut ut cupidatat" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: bearer", "type": "text/plain" }, "key": "Authorization", "value": "Bearer <token>" }, { "key": "Accept", "value": "*/*" } ], "method": "GET", "body": {} }, "status": "Internal Server Error", "code": 500, "header": [ { "key": "Content-Type", "value": "*/*" } ], "body": "{\n \"id\": 1,\n \"name\": \"Tatooine\",\n \"galaxia\": \"Orla Externa\"\n}", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } } ], "event": [] } ], "event": [], "variable": [ { "type": "string", "value": "http://localhost:8112", "key": "baseUrl" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}" } ] }, "info": { "_postman_id": "0cf81bd1-9e0b-4082-b0e8-af57344aa2fd", "name": "StarWars", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { "content": "List of Methods for StarWars's project. <br /> Projeto de Teste Para a API do Swagger ", "type": "text/plain" } } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions