generator-springboot-api
Version:
SpringBoot REST API Generator
401 lines • 7.64 kB
JSON
{
"info": {
"_postman_id": "c132fca9-a94d-47cf-9620-0d4f0947b9cd",
"name": "<%=appTitle%>",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "basic - hello",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/hello",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"hello"
]
}
},
"response": []
},
{
"name": "basic - date-now",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/date-now",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"date-now"
]
}
},
"response": []
}<% if (mqtt) { %>,
{
"name": "message - mqtt/send",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"<%=randomName%>\", \n\t\"surname\": \"<%=randomSurname%>\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/mqtt/send",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"mqtt",
"send"
]
}
},
"response": []
}<% } if (rabbit) { %>,
{
"name": "message - rabbit/send",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"<%=randomName%>\", \n\t\"surname\": \"<%=randomSurname%>\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/rabbit/send",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"rabbit",
"send"
]
}
},
"response": []
}<% } if (kafka) { %>,
{
"name": "message - kafka/send",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"<%=randomName%>\", \n\t\"surname\": \"<%=randomSurname%>\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/kafka/send",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"kafka",
"send"
]
}
},
"response": []
}<% } if (mongo) { %>,
{
"name": "mongo - person/new",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"<%=randomName%>\", \n\t\"surname\": \"<%=randomSurname%>\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/person/new",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"person",
"new"
]
}
},
"response": []
},
{
"name": "mongo - person/surname",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/person/surname/<%=randomSurname%>",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"person",
"surname",
"<%=randomSurname%>"
]
}
},
"response": []
},
{
"name": "mongo - person/remove",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/person/remove/{type-the-id-here}}",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"person",
"remove",
"{type-the-id-here}"
]
}
},
"response": []
}<% } if (jpa) { %>,
{
"name": "postgres - registry/save",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"description\": \"Including a new registry\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/registry/save",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"registry",
"save"
]
}
},
"response": []
},
{
"name": "postgres - registry/update",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"id\": 1, \n\t\"description\": \"Saving a registry not so new\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/registry/update",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"registry",
"update"
]
}
},
"response": []
},
{
"name": "postgres - registry/list-all",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/registry/list-all",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"registry",
"list-all"
]
},
"description": "List all the records from the database."
},
"response": []
},
{
"name": "postgres - registry/remove",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://127.0.0.1:<%=portNumber%>/<%=artifact%>/registry/remove/1",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "<%=portNumber%>",
"path": [
"<%=artifact%>",
"registry",
"remove",
"1"
]
},
"description": "Delete a record from database."
},
"response": []
}<% } %>
],
"protocolProfileBehavior": {}
}