-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_requests.postman_collection.json
67 lines (67 loc) · 1.35 KB
/
api_requests.postman_collection.json
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
62
63
64
65
66
67
{
"info": {
"_postman_id": "e2077ff9-7d6b-4af8-b7d3-b2f5b4497986",
"name": "Golang-MariaDB-Web Starter",
"description": "Working Requests for the starter kit ",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get all users",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:80/api/user",
"protocol": "http",
"host": [
"localhost"
],
"port": "80",
"path": [
"api",
"user"
]
},
"description": "Returns all users in database"
},
"response": []
},
{
"name": "Create a new user",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"test.user@gmail.com\",\n\t\"username\": \"testuser\",\n\t\"password\": \"Test1234\"\n}"
},
"url": {
"raw": "http://localhost:80/api/user",
"protocol": "http",
"host": [
"localhost"
],
"port": "80",
"path": [
"api",
"user"
]
},
"description": "Creates a new user in the database with a unique e-mail address"
},
"response": []
}
]
}