FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BookStack/routes/api.php at development · equippedcoding/BookStack · GitHub
equippedcoding
/
BookStack
Public
forked from
BookStackApp/BookStack
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BookStack
/
routes
/
api.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
98 lines (81 loc) · 5.32 KB
Breadcrumbs
BookStack
/
routes
/
api.php
Copy path
File metadata and controls
98 lines (81 loc) · 5.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* Routes for the BookStack API.
* Routes have a uri prefix of /api/.
* Controllers are all within app/Http/Controllers/Api.
*/
use
BookStack
\
Http
\
Controllers
\
Api
\
ApiDocsController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
AttachmentApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
BookApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
BookExportApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
BookshelfApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
ChapterApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
ChapterExportApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
ContentPermissionApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
ImageGalleryApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
PageApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
PageExportApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
RecycleBinApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
RoleApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
SearchApiController
;
use
BookStack
\
Http
\
Controllers
\
Api
\
UserApiController
;
use
Illuminate
\
Support
\
Facades
\
Route
;
Route::
get
(
'
docs.json
'
, [ApiDocsController::class,
'
json
'
]);
Route::
get
(
'
attachments
'
, [AttachmentApiController::class,
'
list
'
]);
Route::
post
(
'
attachments
'
, [AttachmentApiController::class,
'
create
'
]);
Route::
get
(
'
attachments/{id}
'
, [AttachmentApiController::class,
'
read
'
]);
Route::
put
(
'
attachments/{id}
'
, [AttachmentApiController::class,
'
update
'
]);
Route::
delete
(
'
attachments/{id}
'
, [AttachmentApiController::class,
'
delete
'
]);
Route::
get
(
'
books
'
, [BookApiController::class,
'
list
'
]);
Route::
post
(
'
books
'
, [BookApiController::class,
'
create
'
]);
Route::
get
(
'
books/{id}
'
, [BookApiController::class,
'
read
'
]);
Route::
put
(
'
books/{id}
'
, [BookApiController::class,
'
update
'
]);
Route::
delete
(
'
books/{id}
'
, [BookApiController::class,
'
delete
'
]);
Route::
get
(
'
books/{id}/export/html
'
, [BookExportApiController::class,
'
exportHtml
'
]);
Route::
get
(
'
books/{id}/export/pdf
'
, [BookExportApiController::class,
'
exportPdf
'
]);
Route::
get
(
'
books/{id}/export/plaintext
'
, [BookExportApiController::class,
'
exportPlainText
'
]);
Route::
get
(
'
books/{id}/export/markdown
'
, [BookExportApiController::class,
'
exportMarkdown
'
]);
Route::
get
(
'
chapters
'
, [ChapterApiController::class,
'
list
'
]);
Route::
post
(
'
chapters
'
, [ChapterApiController::class,
'
create
'
]);
Route::
get
(
'
chapters/{id}
'
, [ChapterApiController::class,
'
read
'
]);
Route::
put
(
'
chapters/{id}
'
, [ChapterApiController::class,
'
update
'
]);
Route::
delete
(
'
chapters/{id}
'
, [ChapterApiController::class,
'
delete
'
]);
Route::
get
(
'
chapters/{id}/export/html
'
, [ChapterExportApiController::class,
'
exportHtml
'
]);
Route::
get
(
'
chapters/{id}/export/pdf
'
, [ChapterExportApiController::class,
'
exportPdf
'
]);
Route::
get
(
'
chapters/{id}/export/plaintext
'
, [ChapterExportApiController::class,
'
exportPlainText
'
]);
Route::
get
(
'
chapters/{id}/export/markdown
'
, [ChapterExportApiController::class,
'
exportMarkdown
'
]);
Route::
get
(
'
pages
'
, [PageApiController::class,
'
list
'
]);
Route::
post
(
'
pages
'
, [PageApiController::class,
'
create
'
]);
Route::
get
(
'
pages/{id}
'
, [PageApiController::class,
'
read
'
]);
Route::
put
(
'
pages/{id}
'
, [PageApiController::class,
'
update
'
]);
Route::
delete
(
'
pages/{id}
'
, [PageApiController::class,
'
delete
'
]);
Route::
get
(
'
pages/{id}/export/html
'
, [PageExportApiController::class,
'
exportHtml
'
]);
Route::
get
(
'
pages/{id}/export/pdf
'
, [PageExportApiController::class,
'
exportPdf
'
]);
Route::
get
(
'
pages/{id}/export/plaintext
'
, [PageExportApiController::class,
'
exportPlainText
'
]);
Route::
get
(
'
pages/{id}/export/markdown
'
, [PageExportApiController::class,
'
exportMarkdown
'
]);
Route::
get
(
'
image-gallery
'
, [ImageGalleryApiController::class,
'
list
'
]);
Route::
post
(
'
image-gallery
'
, [ImageGalleryApiController::class,
'
create
'
]);
Route::
get
(
'
image-gallery/{id}
'
, [ImageGalleryApiController::class,
'
read
'
]);
Route::
put
(
'
image-gallery/{id}
'
, [ImageGalleryApiController::class,
'
update
'
]);
Route::
delete
(
'
image-gallery/{id}
'
, [ImageGalleryApiController::class,
'
delete
'
]);
Route::
get
(
'
search
'
, [SearchApiController::class,
'
all
'
]);
Route::
get
(
'
shelves
'
, [BookshelfApiController::class,
'
list
'
]);
Route::
post
(
'
shelves
'
, [BookshelfApiController::class,
'
create
'
]);
Route::
get
(
'
shelves/{id}
'
, [BookshelfApiController::class,
'
read
'
]);
Route::
put
(
'
shelves/{id}
'
, [BookshelfApiController::class,
'
update
'
]);
Route::
delete
(
'
shelves/{id}
'
, [BookshelfApiController::class,
'
delete
'
]);
Route::
get
(
'
users
'
, [UserApiController::class,
'
list
'
]);
Route::
post
(
'
users
'
, [UserApiController::class,
'
create
'
]);
Route::
get
(
'
users/{id}
'
, [UserApiController::class,
'
read
'
]);
Route::
put
(
'
users/{id}
'
, [UserApiController::class,
'
update
'
]);
Route::
delete
(
'
users/{id}
'
, [UserApiController::class,
'
delete
'
]);
Route::
get
(
'
roles
'
, [RoleApiController::class,
'
list
'
]);
Route::
post
(
'
roles
'
, [RoleApiController::class,
'
create
'
]);
Route::
get
(
'
roles/{id}
'
, [RoleApiController::class,
'
read
'
]);
Route::
put
(
'
roles/{id}
'
, [RoleApiController::class,
'
update
'
]);
Route::
delete
(
'
roles/{id}
'
, [RoleApiController::class,
'
delete
'
]);
Route::
get
(
'
recycle-bin
'
, [RecycleBinApiController::class,
'
list
'
]);
Route::
put
(
'
recycle-bin/{deletionId}
'
, [RecycleBinApiController::class,
'
restore
'
]);
Route::
delete
(
'
recycle-bin/{deletionId}
'
, [RecycleBinApiController::class,
'
destroy
'
]);
Route::
get
(
'
content-permissions/{contentType}/{contentId}
'
, [ContentPermissionApiController::class,
'
read
'
]);
Route::
put
(
'
content-permissions/{contentType}/{contentId}
'
, [ContentPermissionApiController::class,
'
update
'
]);
Back
|
FazBrowse Home
|
New Git URL