summaryrefslogtreecommitdiff
path: root/OpenDC.postman_collection.json
blob: 2fa03f586b96675f280bffcd218a9b1407b4b86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
	"variables": [],
	"info": {
		"name": "OpenDC",
		"_postman_id": "e8b68f59-29cb-71d0-6237-b22932c40f9c",
		"description": "Sample requests for developing the OpenDC API",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
	},
	"item": [
		{
			"name": "Create New Simulation",
			"request": {
				"url": "localhost:8081/api/v1/simulations",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					},
					{
						"key": "auth-token",
						"value": "PUT YOUR AUTH TOKEN HERE",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n  \"simulation\": {\r\n    \"name\": \"Simulation Name\"\r\n  }\r\n}"
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "Create New User",
			"request": {
				"url": "localhost:8081/api/v1/users",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					},
					{
						"key": "auth-token",
						"value": "PUT YOUR AUTH TOKEN HERE",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n  \"user\": {\r\n    \"email\": \"email@example.com\"\r\n  }\r\n}"
				},
				"description": ""
			},
			"response": []
		}
	]
}