From e2dc4a04c407d541bf615fefa350b8f8eb225398 Mon Sep 17 00:00:00 2001 From: cdeng65 Date: Fri, 29 Sep 2023 03:47:21 -0400 Subject: [PATCH] new docs --- src/screens/AnonDocs/Docs.tsx | 252 ++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 src/screens/AnonDocs/Docs.tsx diff --git a/src/screens/AnonDocs/Docs.tsx b/src/screens/AnonDocs/Docs.tsx new file mode 100644 index 0000000..0d0271a --- /dev/null +++ b/src/screens/AnonDocs/Docs.tsx @@ -0,0 +1,252 @@ +import React from "react"; +import { + Box, + Flex, + Link, + Heading, + Text, + Container, + Image, + Icon, + Code, +} from "@chakra-ui/react"; +import { FaArrowCircleRight } from "react-icons/fa"; + +const Documentation: React.FC = () => { + return ( + + + + + Advanced Reasoning Benchmark + + + + + + + API Documentation + + + We provide a simple API to access the Advanced Reasoning Benchmark + (ARB). The API currently supports standard HTTP GET requests. + + + + API Calls + + + We have three different types of API calls for retrieving problems. + See{" "} + + here + {" "} + and select ARB API server as the mock server to see what the outputs + look like. + + + + Get problem by category: + + + You can retrieve all the problems in a particular subject area by the + following API call. Acceptable values for `category` are `law`, + `math`, `mcatReading`, etc. + + + https://advanced-reasoning-benchmark.netlify.app/api/lib/{"{category}"} + + + Math Numerical: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/math") +
+ data = response.json() +
+
+ + + Math Symbolic: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/testSplit/math/symbolic") +
+ data = response.json() +
+
+ + + Math Proofs: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/testSplit/math/proof") +
+ data = response.json() +
+
+ + + Physics Numerical: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/physics/val") +
+ data = response.json() +
+
+ + + Physics Symbolic: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/testSplit/physics/val") +
+ data = response.json() +
+
+ + + Law: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/law") +
+ data = response.json() +
+
+ + + MCAT Reading: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/mcatReading") +
+ data = response.json() +
+
+ + + Get a specific problem by id within category + + + + https://advanced-reasoning-benchmark.netlify.app/api/lib/{"{category}"}/{"{id}"} + + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/math/1234") +
+ problem = response.json() +
+
+ + + Get problem by category variation (e.g. img vs val) + + + + https://advanced-reasoning-benchmark.netlify.app/api/lib/{"{category}"}/{"{variation}"} + + + + Physics Numerical w/ Images: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/physics_numerical/img") +
+ variation_data = response.json() +
+
+ + Physics Symbolic w/ Images: + + + + import requests +
+ response = + requests.get("https://advanced-reasoning-benchmark.netlify.app/api/lib/testSplit/physics/img") +
+ variation_data = response.json() +
+
+
+ + + + + Copyright © 2023 The ARB Team + + + +
+ ); +}; + +export default Documentation;