You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/static/openapi.yaml
+23-23
Original file line number
Diff line number
Diff line change
@@ -116,9 +116,9 @@ paths:
116
116
type: string
117
117
required: true
118
118
- in: query
119
-
name: paid
119
+
name: free
120
120
required: false
121
-
description: Whether the resource is paid or not. To search for *free* resources, make a `GET` request to `/search?paid=false`.
121
+
description: Whether the resource is free or not. To search for *free* resources, make a `GET` request to `/search?free=true`.
122
122
schema:
123
123
type: boolean
124
124
- in: query
@@ -152,7 +152,7 @@ paths:
152
152
last_updated: '2019-05-25 18:52:15'
153
153
name: 'C Tutorial'
154
154
notes: 'Learn C with our popular C tutorial, which will take you from the very basics of C all the way through sophisticated topics like binary trees and data structures.'
notes: 'Focuses on general computer science concepts rather than a specific language'
397
-
paid: false
397
+
free: true
398
398
times_clicked: 0
399
399
upvotes: 0
400
400
url: 'http://www.freetechbooks.com/'
@@ -443,7 +443,7 @@ paths:
443
443
last_updated: '2019-07-22 16:05:53'
444
444
name: 'Updated Book Title'
445
445
notes: null
446
-
paid: false
446
+
free: true
447
447
times_clicked: 3
448
448
upvotes: 1
449
449
url: 'http://www.test.com'
@@ -506,7 +506,7 @@ paths:
506
506
last_updated: '2019-07-26 13:47:52'
507
507
name: 'Thinking Forth'
508
508
notes: null
509
-
paid: false
509
+
free: true
510
510
times_clicked: 2
511
511
upvotes: 0
512
512
url: 'http://thinking-forth.sourceforge.net/'
@@ -550,7 +550,7 @@ paths:
550
550
last_updated: '2020-03-12 23:17:52'
551
551
name: 'Teach Your Kids to Code'
552
552
notes: null
553
-
paid: true
553
+
free: false
554
554
times_clicked: 0
555
555
upvotes: 1
556
556
url: 'http://teachyourkidstocode.com/'
@@ -594,7 +594,7 @@ paths:
594
594
last_updated: '2020-03-12 23:17:52'
595
595
name: 'Teach Your Kids to Code'
596
596
notes: null
597
-
paid: true
597
+
free: false
598
598
times_clicked: 0
599
599
upvotes: 0
600
600
url: 'http://teachyourkidstocode.com/'
@@ -611,9 +611,9 @@ paths:
611
611
- List Resources
612
612
parameters:
613
613
- in: query
614
-
name: paid
614
+
name: free
615
615
required: false
616
-
description: Whether the resource is paid or not. To search for *free* resources, make a `GET` request to `/resources?paid=false`.
616
+
description: Whether the resource is free or not. To search for *free* resources, make a `GET` request to `/resources?free=true`.
617
617
schema:
618
618
type: boolean
619
619
- in: query
@@ -654,7 +654,7 @@ paths:
654
654
last_updated: '2019-07-22 17:39:50'
655
655
name: 'Some, but not ALL of the knowledge'
656
656
notes: null
657
-
paid: false
657
+
free: true
658
658
times_clicked: 3
659
659
upvotes: 1
660
660
url: 'http://www.test.com'
@@ -685,7 +685,7 @@ paths:
685
685
686
686
post:
687
687
summary: Create Resources
688
-
description: Creates new learning resources. The structure of the request is a list of resource objects. The required properties for each new resource are `category`, `name`, `paid`, and `url`.
688
+
description: Creates new learning resources. The structure of the request is a list of resource objects. The required properties for each new resource are `category`, `name`, `free`, and `url`.
0 commit comments