@rnmkeshav/mock-api
Version:
A fake API server for all type of frontend development
117 lines • 2.35 kB
JSON
{
"info": {
"_postman_id": "dbe3ec5e-2c38-4fa1-bca4-7b6a7ba56b94",
"name": "Mock-API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get request from global config",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3002/comments",
"protocol": "http",
"host": [
"localhost"
],
"port": "3002",
"path": [
"comments"
]
}
},
"response": []
},
{
"name": "POST request to global config",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"sunt aut facere repellat provident occaecati excepturi optio reprehenderit\",\n \"body\": \"quia et suscipit suscipit recusandae consequuntur expedita et cum reprehenderit molestiae ut ut quas totam nostrum rerum est autem sunt rem eveniet architecto\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3002/posts",
"protocol": "http",
"host": [
"localhost"
],
"port": "3002",
"path": [
"posts"
]
}
},
"response": []
},
{
"name": "Forward request to custom hostname",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "http://localhost:3002/search/users?w=rnmkeshav",
"protocol": "http",
"host": [
"localhost"
],
"port": "3002",
"path": [
"search",
"users"
],
"query": [
{
"key": "w",
"value": "rnmkeshav"
}
]
}
},
"response": []
},
{
"name": "Disble request forwarding for custom response",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "Does_not",
"value": "matter",
"type": "text"
},
{
"key": "Response_is",
"value": "already_configured",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3002/api/users",
"protocol": "http",
"host": [
"localhost"
],
"port": "3002",
"path": [
"api",
"users"
]
}
},
"response": []
}
]
}