{
	"info": {
		"name": "Certificate Download APIs",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"description": "APIs for downloading student certificates as PDF files"
	},
	"item": [
		{
			"name": "Export All Student ID Cards (ZIP)",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{token}}",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/zip",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/certificates/download/all-id-cards?branch_id=1&class_id=&section_id=",
					"host": ["{{base_url}}"],
					"path": ["api", "v1", "certificates", "download", "all-id-cards"],
					"query": [
						{
							"key": "branch_id",
							"value": "1",
							"description": "Filter by branch ID"
						},
						{
							"key": "class_id",
							"value": "",
							"description": "Optional: Filter by class ID"
						},
						{
							"key": "section_id",
							"value": "",
							"description": "Optional: Filter by section ID"
						}
					]
				},
				"description": "Downloads all active student ID cards as a ZIP file. Supports filtering by branch, class, and section."
			}
		},
		{
			"name": "Download Student ID Card",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{token}}",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/pdf",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/certificates/download/id-card/1",
					"host": ["{{base_url}}"],
					"path": ["api", "v1", "certificates", "download", "id-card", "1"]
				},
				"description": "Downloads the Student Digital ID Card as a PDF file"
			}
		},
		{
			"name": "Download Character Certificate",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{token}}",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/pdf",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/certificates/download/character/1",
					"host": ["{{base_url}}"],
					"path": ["api", "v1", "certificates", "download", "character", "1"]
				},
				"description": "Downloads the Student Character Certificate as a PDF file"
			}
		},
		{
			"name": "Download Leaving Certificate",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{token}}",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/pdf",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/certificates/download/leaving/1",
					"host": ["{{base_url}}"],
					"path": ["api", "v1", "certificates", "download", "leaving", "1"]
				},
				"description": "Downloads the Student Leaving Certificate as a PDF file"
			}
		},
		{
			"name": "Download Birth Certificate",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{token}}",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/pdf",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/certificates/download/birth/1",
					"host": ["{{base_url}}"],
					"path": ["api", "v1", "certificates", "download", "birth", "1"]
				},
				"description": "Downloads the Student Birth Certificate as a PDF file"
			}
		},
		{
			"name": "Download Parent Portal Password",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{token}}",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/pdf",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/certificates/download/parent-portal/1",
					"host": ["{{base_url}}"],
					"path": ["api", "v1", "certificates", "download", "parent-portal", "1"]
				},
				"description": "Downloads the Parent Portal Credentials as a PDF file"
			}
		}
	],
	"variable": [
		{
			"key": "base_url",
			"value": "http://localhost:8000"
		},
		{
			"key": "token",
			"value": ""
		}
	]
}
