Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "info": {
- "_postman_id": "60c52c6e-fde5-4b74-b202-91fcc7b224d5",
- "name": "Python Decoded: Frameworks",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
- "_exporter_id": "4983510"
- },
- "item": [
- {
- "name": "books",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{host}}/book?count=10",
- "host": [
- "{{host}}"
- ],
- "path": [
- "book"
- ],
- "query": [
- {
- "key": "count",
- "value": "10"
- }
- ]
- }
- },
- "response": [
- {
- "name": "200",
- "originalRequest": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{host}}/book?count=10",
- "host": [
- "{{host}}"
- ],
- "path": [
- "book"
- ],
- "query": [
- {
- "key": "count",
- "value": "10"
- }
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "content-length",
- "value": "89"
- },
- {
- "key": "connection",
- "value": "keep-alive"
- },
- {
- "key": "content-type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "body": "{\n \"books\": [\n {\n \"book_id\": 0,\n \"book_name\": \"Hi there\"\n },\n {\n \"book_id\": 1,\n \"book_name\": \"How are you?\"\n }\n ]\n}"
- }
- ]
- },
- {
- "name": "book",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{host}}/book/1",
- "host": [
- "{{host}}"
- ],
- "path": [
- "book",
- "1"
- ]
- }
- },
- "response": [
- {
- "name": "200",
- "originalRequest": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{host}}/book/1",
- "host": [
- "{{host}}"
- ],
- "path": [
- "book",
- "1"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "content-length",
- "value": "40"
- },
- {
- "key": "connection",
- "value": "keep-alive"
- },
- {
- "key": "content-type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "body": "{\n \"book_id\": 1,\n \"book_name\": \"How are you?\"\n}"
- }
- ]
- },
- {
- "name": "book",
- "request": {
- "method": "POST",
- "header": [],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"book_name\": \"{{$randomProductName}}\"\r\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- },
- "url": {
- "raw": "{{host}}/book",
- "host": [
- "{{host}}"
- ],
- "path": [
- "book"
- ]
- }
- },
- "response": [
- {
- "name": "200",
- "originalRequest": {
- "method": "POST",
- "header": [],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"book_name\": \"{{$randomProductName}}\"\r\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
- },
- "url": {
- "raw": "{{host}}/book",
- "host": [
- "{{host}}"
- ],
- "path": [
- "book"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "content-length",
- "value": "49"
- },
- {
- "key": "connection",
- "value": "keep-alive"
- },
- {
- "key": "content-type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "body": "{\n \"book_name\": \"Unbranded Metal Chips\",\n \"book_id\": 3\n}"
- }
- ]
- }
- ],
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "packages": {},
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "packages": {},
- "exec": [
- ""
- ]
- }
- }
- ],
- "variable": [
- {
- "key": "host",
- "value": "http://127.0.0.1:8000",
- "type": "string"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement