289 lines
4.6 KiB
JSON
289 lines
4.6 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "8fa1e028-3088-4d19-bb08-4d41b3802487",
|
|
"name": "Mongo DB crud",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "createUser",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user?name=mike&description=python developer&age=21",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "name",
|
|
"value": "mike"
|
|
},
|
|
{
|
|
"key": "description",
|
|
"value": "python developer"
|
|
},
|
|
{
|
|
"key": "age",
|
|
"value": "21"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUsers",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUser",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/5ca56280f08f0b6048fd470b",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"5ca56280f08f0b6048fd470b"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "updateUser",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/5ca40ee8f08f0b68cc06c001?id=5ca56280f08f0b6048fd470b&description=Java gosu&age=19",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"5ca40ee8f08f0b68cc06c001"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "id",
|
|
"value": "5ca56280f08f0b6048fd470b"
|
|
},
|
|
{
|
|
"key": "description",
|
|
"value": "Java gosu"
|
|
},
|
|
{
|
|
"key": "age",
|
|
"value": "19"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "deleteUser",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/5ca56280f08f0b6048fd470b",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"5ca56280f08f0b6048fd470b"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUsersStream",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/stream",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"stream"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUserByAge",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/age/20/30",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"age",
|
|
"20",
|
|
"30"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUserByName",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/name/mrbird",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"name",
|
|
"mrbird"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUserByDescription",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/description/ui",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"description",
|
|
"ui"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "getUserByCondition",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "localhost:8080/user/condition?size=2&page=0",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"user",
|
|
"condition"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "name",
|
|
"value": "mrbird",
|
|
"disabled": true
|
|
},
|
|
{
|
|
"key": "description",
|
|
"value": "r",
|
|
"disabled": true
|
|
},
|
|
{
|
|
"key": "size",
|
|
"value": "2"
|
|
},
|
|
{
|
|
"key": "page",
|
|
"value": "0"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
} |