{
	"info": {
		"_postman_id": "b7fdda66-5855-4e45-877c-ad64585eff50",
		"name": "Library",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "POST Author",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"firstName\" : \"HwqfeqwfwHHH\",\n\t\"lastName\" : \"ttqefqet\",\n\t\"genre\": \"5425t4fq2542\"\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author (invalid body)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"firstName\" : \"James\",\n\t\"lastName\" : \"Ellroy\",\n\t\"dateOfBirth\" : \"invalid value for DateTimeOffset\",\n\t\"genre\": \"Thriller\"\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Book for Author",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"title\" : \"The Restaurant at the End of the Universe\",\n\t\"description\" : \"The sequel to The Hitchhiker's Guide to the Galaxy\"\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/f74d6899-9ed2-4137-9876-66b070553f8f/books",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"f74d6899-9ed2-4137-9876-66b070553f8f",
						"books"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Book for Author (unexisting Author)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"title\" : \"The Restaurant at the End of the Universe\",\n\t\"description\" : \"The sequel to The Hitchhiker's Guide to the Galaxy\"\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/0d75ab75-0028-40c3-8019-1188fe7e790a/books",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"0d75ab75-0028-40c3-8019-1188fe7e790a",
						"books"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author with Books",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"firstName\" : \"James\",\n\t\"lastName\" : \"Ellroy\",\n\t\"dateOfBirth\" : \"1948-03-04T00:00:00\",\n\t\"genre\": \"Thriller\",\n\t\"books\": [\n\t\t{\n\t\t\t\"title\" : \"American Tabloid\",\n\t\t  \t\"description\" : \"First book in the Underworld USA trilogy\"\n\t\t},\n\t\t{\n\t\t\t\"title\": \"The Cold Six Thousand\",\n\t\t\t\"description\": \"Second book in the Underworld USA trilogy\"\n\t\t}\n\t\t]\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author collection",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "[{\n\t\"firstName\" : \"James\",\n\t\"lastName\" : \"Ellroy\",\n\t\"dateOfBirth\" : \"1948-03-04T00:00:00\",\n\t\"genre\": \"Thriller\"\n},\n{\n\t\"firstName\" : \"Jonathan\",\n\t\"lastName\" : \"Franzen\",\n\t\"dateOfBirth\" : \"1959-08-17T00:00:00\",\n\t\"genre\": \"Drama\"\n}]"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authorcollections",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authorcollections"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author (single, unexisting - should fail with 404)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"firstName\" : \"James\",\n\t\"lastName\" : \"Ellroy\",\n\t\"dateOfBirth\" : \"1948-03-04T00:00:00\",\n\t\"genre\": \"Thriller\"\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/25141d83-4584-4487-a306-0441695d8e24",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"25141d83-4584-4487-a306-0441695d8e24"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author (single, existing - should fail with 409)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"firstName\" : \"James\",\n\t\"lastName\" : \"Ellroy\",\n\t\"dateOfBirth\" : \"1948-03-04T00:00:00\",\n\t\"genre\": \"Thriller\"\n}"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/f74d6899-9ed2-4137-9876-66b070553f8f",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"f74d6899-9ed2-4137-9876-66b070553f8f"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author (XML input)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/xml"
					},
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "<AuthorForCreationDto xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.datacontract.org/2004/07/Library.API.Models\">\r\n        <DateOfBirth xmlns:d3p1=\"http://schemas.datacontract.org/2004/07/System\">\r\n            <d3p1:DateTime>1948-03-03T00:00:00Z</d3p1:DateTime>\r\n            <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>\r\n        </DateOfBirth>\r\n        <FirstName>James</FirstName>\r\n        <Genre>Thriller</Genre>\r\n        <LastName>Ellroy</LastName>\r\n</AuthorForCreationDto>\r\n"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors"
					]
				}
			},
			"response": []
		},
		{
			"name": "POST Author (XML input, XML output)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/xml"
					},
					{
						"key": "Accept",
						"value": "application/xml"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "<AuthorForCreationDto xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.datacontract.org/2004/07/Library.API.Models\">\r\n        <DateOfBirth xmlns:d3p1=\"http://schemas.datacontract.org/2004/07/System\">\r\n            <d3p1:DateTime>1948-03-03T00:00:00Z</d3p1:DateTime>\r\n            <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>\r\n        </DateOfBirth>\r\n        <FirstName>James</FirstName>\r\n        <Genre>Thriller</Genre>\r\n        <LastName>Ellroy</LastName>\r\n</AuthorForCreationDto>"
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors"
					]
				}
			},
			"response": []
		},
		{
			"name": "DELETE Book for Author",
			"request": {
				"method": "DELETE",
				"header": [],
				"body": {},
				"url": {
					"raw": "{{LibraryServer}}api/authors/25320c5e-f58a-4b1f-b63a-8ee07a840bdf/books/70a1f9b9-0a37-4c1a-99b1-c7709fc64167",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"25320c5e-f58a-4b1f-b63a-8ee07a840bdf",
						"books",
						"70a1f9b9-0a37-4c1a-99b1-c7709fc64167"
					]
				}
			},
			"response": []
		},
		{
			"name": "DELETE Book for Author (unexisting Book)",
			"request": {
				"method": "DELETE",
				"header": [],
				"body": {},
				"url": {
					"raw": "{{LibraryServer}}api/authors/25320c5e-f58a-4b1f-b63a-8ee07a840bdf/books/3f946dbe-edf3-4c44-baef-b683bc355a0f",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"25320c5e-f58a-4b1f-b63a-8ee07a840bdf",
						"books",
						"3f946dbe-edf3-4c44-baef-b683bc355a0f"
					]
				}
			},
			"response": []
		},
		{
			"name": "DELETE Book for Author (unexisting Author)",
			"request": {
				"method": "DELETE",
				"header": [],
				"body": {},
				"url": {
					"raw": "{{LibraryServer}}api/authors/787f6625-6048-43d7-b64e-bf3d02f0132d/books/70a1f9b9-0a37-4c1a-99b1-c7709fc64167",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"787f6625-6048-43d7-b64e-bf3d02f0132d",
						"books",
						"70a1f9b9-0a37-4c1a-99b1-c7709fc64167"
					]
				}
			},
			"response": []
		},
		{
			"name": "DELETE Author",
			"request": {
				"method": "DELETE",
				"header": [],
				"body": {},
				"url": {
					"raw": "{{LibraryServer}}api/authors/25320c5e-f58a-4b1f-b63a-8ee07a840bdf",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"25320c5e-f58a-4b1f-b63a-8ee07a840bdf"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Author (Accept: application/xml)",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/xml"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/76053df4-6687-4353-8937-b45556748abe",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"76053df4-6687-4353-8937-b45556748abe"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Author (Accept: application/json)",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/76053df4-6687-4353-8937-b45556748abe",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"76053df4-6687-4353-8937-b45556748abe"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Book for Author (unexisting Author)",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/b29e03b5-ba28-4489-8834-689de28af370/books/bc4c35c3-3857-4250-9449-155fcf5109ec",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"b29e03b5-ba28-4489-8834-689de28af370",
						"books",
						"bc4c35c3-3857-4250-9449-155fcf5109ec"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Book for Author (unexisting Book)",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/76053df4-6687-4353-8937-b45556748abe/books/8afc4f43-3d02-429b-90c7-1cabe201bf7a",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"76053df4-6687-4353-8937-b45556748abe",
						"books",
						"8afc4f43-3d02-429b-90c7-1cabe201bf7a"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Book for Author",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/76053df4-6687-4353-8937-b45556748abe/books/bc4c35c3-3857-4250-9449-155fcf5109ec",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"76053df4-6687-4353-8937-b45556748abe",
						"books",
						"bc4c35c3-3857-4250-9449-155fcf5109ec"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Books for Author (unexisting Author)",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/b29e03b5-ba28-4489-8834-689de28af370/books",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"b29e03b5-ba28-4489-8834-689de28af370",
						"books"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Books for Author",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/76053df4-6687-4353-8937-b45556748abe/books",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"76053df4-6687-4353-8937-b45556748abe",
						"books"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Author (unexisting)",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/a8d15573-ec65-4f48-97d2-2e7c0a726c33",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"a8d15573-ec65-4f48-97d2-2e7c0a726c33"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Author",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors/76053df4-6687-4353-8937-b45556748abe",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors",
						"76053df4-6687-4353-8937-b45556748abe"
					]
				}
			},
			"response": []
		},
		{
			"name": "GET Authors",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{LibraryServer}}api/authors",
					"host": [
						"{{LibraryServer}}api"
					],
					"path": [
						"authors"
					]
				}
			},
			"response": []
		}
	]
}