diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js
index d62b769..f8f4b28 100644
--- a/docs/.vuepress/config.js
+++ b/docs/.vuepress/config.js
@@ -237,12 +237,28 @@ module.exports = {
to: '/page',
children: [
{
- title: 'Show',
- to: '/page/show/',
+ title: 'Destroy',
+ to: '/page/destroy/'
+ },
+ {
+ title: 'Force Delete',
+ to: '/page/forceDelete/'
},
{
title: 'Index',
to: '/page/index/'
+ },
+ {
+ title: 'Show',
+ to: '/page/show/',
+ },
+ {
+ title: 'Store',
+ to: '/page/store/',
+ },
+ {
+ title: 'Update',
+ to: '/page/update/',
}
]
},
diff --git a/docs/announcement/store/README.md b/docs/announcement/store/README.md
index b4e0322..dd49461 100644
--- a/docs/announcement/store/README.md
+++ b/docs/announcement/store/README.md
@@ -8,7 +8,7 @@ title: Announcement Store
The announcement store endpoint creates a new announcement and returns the new announcement resource.
-For example, the `/api/announcement?content=The+Release+Has+Been+Deployed!` endpoint will create a new announcement and return the new announcement resource.
+For example, the `/api/announcement?content=Lorem+Ipsum` endpoint will create a new announcement and return the new announcement resource.
## URL
diff --git a/docs/page/README.md b/docs/page/README.md
index ac59dc1..65b5fe2 100644
--- a/docs/page/README.md
+++ b/docs/page/README.md
@@ -28,10 +28,26 @@ None
### Endpoints
+**[Page Destroy](/page/destroy/)**
+
+The page destroy endpoint soft deletes a page and returns the deleted page resource.
+
+**[Page Force Delete](/page/forceDelete/)**
+
+The page force delete endpoint hard deletes a page and returns a confirmation message.
+
+**[Page Index](/page/index/)**
+
+The page index endpoint displays a listing of page resources.
+
**[Page Show](/page/show/)**
The page show endpoint returns a page resource.
-**[Page Index](/page/index/)**
+**[Page Store](/page/store/)**
-The page index endpoint displays a listing of page resources.
\ No newline at end of file
+The page store endpoint creates a new page and returns the new page resource.
+
+**[Page Update](/page/update/)**
+
+The page update endpoint updates a page and returns the updated page resource.
\ No newline at end of file
diff --git a/docs/page/destroy/README.md b/docs/page/destroy/README.md
new file mode 100644
index 0000000..80174ee
--- /dev/null
+++ b/docs/page/destroy/README.md
@@ -0,0 +1,55 @@
+---
+title: Page Destroy
+---
+
+
+
+# Page Destroy Endpoint
+
+The page destroy endpoint soft deletes a page and returns the deleted page resource.
+
+For example, the `/api/page/encoding` endpoint will soft delete the Encoding page and return the deleted Encoding resource.
+
+## URL
+
+```sh
+DELETE /api/page/{slug}
+```
+
+## Authentication
+
+**Required Permission**: delete page
+
+**Roles with Permission**: Wiki Editor, Admin
+
+## Parameters
+
+None
+
+## Response
+
+```json
+{
+ page: {
+ id: id,
+ name: "name",
+ slug: "slug",
+ body: "body",
+ created_at: "created_at",
+ updated_at: "updated_at",
+ deleted_at: "deleted_at"
+ }
+}
+```
+
+
+
+
+```bash
+curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/page/encoding
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/page/forceDelete/README.md b/docs/page/forceDelete/README.md
new file mode 100644
index 0000000..9cb617d
--- /dev/null
+++ b/docs/page/forceDelete/README.md
@@ -0,0 +1,47 @@
+---
+title: Page Force Delete
+---
+
+
+
+# Page Force Delete Endpoint
+
+The page force delete endpoint hard deletes a page and returns a confirmation message.
+
+For example, the `/api/forceDelete/page/encoding` endpoint will hard delete the Encoding page and return a confirmation message.
+
+## URL
+
+```sh
+DELETE /api/forceDelete/page/{slug}
+```
+
+## Authentication
+
+**Required Permission**: force delete page
+
+**Roles with Permission**: Admin
+
+## Parameters
+
+None
+
+## Response
+
+```json
+{
+ message: "The Page 'Encoding' was deleted.",
+}
+```
+
+
+
+
+```bash
+curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/forceDelete/page/encoding
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/page/show/README.md b/docs/page/show/README.md
index 4058108..d844e21 100644
--- a/docs/page/show/README.md
+++ b/docs/page/show/README.md
@@ -8,6 +8,8 @@ title: Page Show
The page show endpoint returns a page resource.
+For example, the `/api/page/encoding` endpoint will return the Encoding page resource.
+
## URL
```sh
@@ -32,6 +34,7 @@ None
id: id,
name: "name",
slug: "slug",
+ body: "body",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
@@ -43,7 +46,7 @@ None
```bash
-curl https://api.animethemes.moe/page/encoding/audio_normalization
+curl https://api.animethemes.moe/page/encoding
```
diff --git a/docs/page/store/README.md b/docs/page/store/README.md
new file mode 100644
index 0000000..99eef5c
--- /dev/null
+++ b/docs/page/store/README.md
@@ -0,0 +1,59 @@
+---
+title: Page Store
+---
+
+
+
+# Page Store Endpoint
+
+The page store endpoint creates a new page and returns the new page resource.
+
+For example, the `/api/page?name=Encoding&slug=encoding&body=Lorem+Ipsum` endpoint will create a new Encoding page and return the new Encoding resource.
+
+## URL
+
+```sh
+POST /api/page
+```
+
+## Authentication
+
+**Required Permission**: create page
+
+**Roles with Permission**: Wiki Editor, Admin
+
+## Parameters
+
+| Name | Required | Rules |
+| :------: | :------: | :--------------------------------------------------- |
+| name | Yes | string, max:192 |
+| slug | Yes | string, max:192, regex:/^[\pL\pM\pN\/_-]+$/u, unique |
+| body | Yes | string, max:16777215 |
+
+## Response
+
+```json
+{
+ page: {
+ id: id,
+ name: "name",
+ slug: "slug",
+ body: "body",
+ created_at: "created_at",
+ updated_at: "updated_at",
+ deleted_at: "deleted_at"
+ }
+}
+```
+
+
+
+
+```bash
+curl -X POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/page/
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/page/update/README.md b/docs/page/update/README.md
new file mode 100644
index 0000000..5c8ccaf
--- /dev/null
+++ b/docs/page/update/README.md
@@ -0,0 +1,59 @@
+---
+title: Page Update
+---
+
+
+
+# Page Update Endpoint
+
+The page update endpoint updates a page and returns the updated page resource.
+
+For example, the `/api/page/encoding?body=Lorem+Ipsum` endpoint will update the Encoding page body attribute and return the updated Encoding resource.
+
+## URL
+
+```sh
+PUT|PATCH /api/page/{slug}
+```
+
+## Authentication
+
+**Required Permission**: update page
+
+**Roles with Permission**: Wiki Editor, Admin
+
+## Parameters
+
+| Name | Required | Rules |
+| :------: | :------: | :--------------------------------------------------- |
+| name | No | string, max:192 |
+| slug | No | string, max:192, regex:/^[\pL\pM\pN\/_-]+$/u, unique |
+| body | No | string, max:16777215 |
+
+## Response
+
+```json
+{
+ page: {
+ id: id,
+ name: "name",
+ slug: "slug",
+ body: "body",
+ created_at: "created_at",
+ updated_at: "updated_at",
+ deleted_at: "deleted_at"
+ }
+}
+```
+
+
+
+
+```bash
+curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/page/encoding
+```
+
+
+
+
+
\ No newline at end of file