diff --git a/src/main/Homepage/doc/tabsView/ImageFR/AllReqValues.js b/src/main/Homepage/doc/tabsView/ImageFR/AllReqValues.js
index 991fb42..d59f35e 100644
--- a/src/main/Homepage/doc/tabsView/ImageFR/AllReqValues.js
+++ b/src/main/Homepage/doc/tabsView/ImageFR/AllReqValues.js
@@ -1,7 +1,7 @@
import React from "react";
import Table from "react-bootstrap/Table";
-function GETReqTable() {
+function POSTReqTable() {
return (
@@ -24,7 +24,7 @@ function GETReqTable() {
);
}
-function GETResTable() {
+function POSTResTable() {
return (
@@ -65,7 +65,7 @@ function GETResTable() {
);
}
-const GETResExample = JSON.stringify(
+const POSTResExample = JSON.stringify(
{
Faces: {
"Amit Kumar": {
@@ -90,17 +90,17 @@ const GETResExample = JSON.stringify(
2
);
-const GETcurlValue =
+const POSTcurlValue =
'curl -i -X POST -H "Content-Type: multipart/form-data " -F "file=@ " http://127.0.0.1:8000/api/image/';
-const GETpythonValue =
+const POSTpythonValue =
"import requests \nimagePath = \nurl = \"http://127.0.0.1:8000/api/image/\" \nfiles = {'file': open(imagePath, 'rb') }\nresponse = requests.post(url, files=files)\nprint(response.text)";
-const GETnodeValue = "";
+const POSTnodeValue = "";
export {
- GETResExample,
- GETReqTable,
- GETnodeValue,
- GETpythonValue,
- GETResTable,
- GETcurlValue
+ POSTResExample,
+ POSTReqTable,
+ POSTnodeValue,
+ POSTpythonValue,
+ POSTResTable,
+ POSTcurlValue
};
diff --git a/src/main/Homepage/doc/tabsView/ImageFR/FaceReckognition.js b/src/main/Homepage/doc/tabsView/ImageFR/FaceReckognition.js
index 5d1f65a..733055b 100644
--- a/src/main/Homepage/doc/tabsView/ImageFR/FaceReckognition.js
+++ b/src/main/Homepage/doc/tabsView/ImageFR/FaceReckognition.js
@@ -1,12 +1,12 @@
import React from "react";
-import { GETReqRes, GETSnippetTab } from "../AllTabs";
+import { POSTReqRes, POSTSnippetTab } from "../AllTabs";
import {
- GETResExample,
- GETReqTable,
- GETnodeValue,
- GETpythonValue,
- GETResTable,
- GETcurlValue
+ POSTResExample,
+ POSTReqTable,
+ POSTnodeValue,
+ POSTpythonValue,
+ POSTResTable,
+ POSTcurlValue
} from "./AllReqValues";
function YouTubeProcessing() {
@@ -15,15 +15,15 @@ function YouTubeProcessing() {
POST
/image
-
-
);
diff --git a/src/main/Homepage/doc/tabsView/NSFW/AllReqValues.js b/src/main/Homepage/doc/tabsView/NSFW/AllReqValues.js
index c44274a..9ebce16 100644
--- a/src/main/Homepage/doc/tabsView/NSFW/AllReqValues.js
+++ b/src/main/Homepage/doc/tabsView/NSFW/AllReqValues.js
@@ -1,7 +1,7 @@
import React from "react";
import Table from "react-bootstrap/Table";
-function GETReqTable() {
+function POSTReqTable() {
return (
@@ -24,7 +24,7 @@ function GETReqTable() {
);
}
-function GETResTable() {
+function POSTResTable() {
return (
@@ -52,7 +52,7 @@ function GETResTable() {
);
}
-const GETResExample = JSON.stringify(
+const POSTResExample = JSON.stringify(
{
classes: "Porn",
probabilities: {
@@ -67,17 +67,17 @@ const GETResExample = JSON.stringify(
2
);
-const GETcurlValue =
+const POSTcurlValue =
'curl -i -X POST -H "Content-Type: multipart/form-data " -F "file=@ " http://127.0.0.1:8000/api/nsfw/';
-const GETpythonValue =
+const POSTpythonValue =
"import requests \nimagePath = \nurl = \"http://127.0.0.1:8000/api/nsfw/\" \nfiles = {'file': open(imagePath, 'rb') }\nresponse = requests.post(url, files=files)\nprint(response.text)";
-const GETnodeValue = "";
+const POSTnodeValue = "";
export {
- GETResExample,
- GETReqTable,
- GETnodeValue,
- GETpythonValue,
- GETResTable,
- GETcurlValue
+ POSTResExample,
+ POSTReqTable,
+ POSTnodeValue,
+ POSTpythonValue,
+ POSTResTable,
+ POSTcurlValue
};
diff --git a/src/main/Homepage/doc/tabsView/NSFW/NSFW.js b/src/main/Homepage/doc/tabsView/NSFW/NSFW.js
index b2baded..6eda136 100644
--- a/src/main/Homepage/doc/tabsView/NSFW/NSFW.js
+++ b/src/main/Homepage/doc/tabsView/NSFW/NSFW.js
@@ -1,12 +1,12 @@
import React from "react";
-import { GETReqRes, GETSnippetTab } from "../AllTabs";
+import { POSTReqRes, POSTSnippetTab } from "../AllTabs";
import {
- GETResExample,
- GETReqTable,
- GETnodeValue,
- GETpythonValue,
- GETResTable,
- GETcurlValue
+ POSTResExample,
+ POSTReqTable,
+ POSTnodeValue,
+ POSTpythonValue,
+ POSTResTable,
+ POSTcurlValue
} from "./AllReqValues";
function NSFWAPIs() {
return (
@@ -14,15 +14,15 @@ function NSFWAPIs() {
POST
/nsfw
-
-
);
diff --git a/src/main/Homepage/doc/tabsView/TabContents.js b/src/main/Homepage/doc/tabsView/TabContents.js
index a3dddb4..ad388a2 100644
--- a/src/main/Homepage/doc/tabsView/TabContents.js
+++ b/src/main/Homepage/doc/tabsView/TabContents.js
@@ -34,7 +34,7 @@ function POSTResponseContents(props) {
{props.value}
Response Example
- {props.ResExample}
+
{(props.ResExample)}
);