{
	"info": {
		"_postman_id": "4c7c03aa-6062-4725-a29b-de5239b1256b",
		"name": "Hopsworks",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Step 1. Login",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.globals.set(\"token\", responseHeaders.Authorization);"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "email",
							"value": "admin@hopsworks.ai",
							"type": "default"
						},
						{
							"key": "password",
							"value": "admin",
							"type": "default"
						}
					]
				},
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/auth/login",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"auth",
						"login"
					]
				}
			},
			"response": []
		},
		{
			"name": "Step 2. Create demo project",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.globals.set(\"project_id\", JSON.parse(responseBody).id);"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/starterProject/fs",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"starterProject",
						"fs"
					]
				}
			},
			"response": []
		},
		{
			"name": "Step 2. Or get demo project",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.globals.set(\"project_id\", JSON.parse(responseBody).projectId);"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/getProjectInfo/demo_fs_meb10000",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"getProjectInfo",
						"demo_fs_meb10000"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get datasets",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/{{project_id}}/dataset",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"{{project_id}}",
						"dataset"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get jobs",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/{{project_id}}/jobs",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"{{project_id}}",
						"jobs"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get feature stores",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/{{project_id}}/featurestores",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"{{project_id}}",
						"featurestores"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get models",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/{{project_id}}/modelregistries/{{project_id}}/models",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"{{project_id}}",
						"modelregistries",
						"{{project_id}}",
						"models"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get environments",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/{{project_id}}/python/environments",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"{{project_id}}",
						"python",
						"environments"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get deployments",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://localhost:8181/hopsworks-api/api/project/{{project_id}}/serving",
					"protocol": "https",
					"host": [
						"localhost"
					],
					"port": "8181",
					"path": [
						"hopsworks-api",
						"api",
						"project",
						"{{project_id}}",
						"serving"
					]
				}
			},
			"response": []
		}
	]
}