diff --git a/client/DemoData.json b/client/DemoData.json new file mode 100644 index 000000000..d7e85cb18 --- /dev/null +++ b/client/DemoData.json @@ -0,0 +1,47 @@ +{ + + "entries": [ + { + "name": "Movement of the Sun: Activity 1", + "description": "Students will create program that will read the value of a photoresistor on specific user input.", + "author": "Content Creator", + "privacy": "classroom" + }, + { + "name": "Movement of the Sun: Activity 2", + "description": "Students will utilize a while loop in their program.", + "author": "Content Creator", + "privacy": "classroom" + }, + { + "name": "Movement of the Sun: Activity 3", + "description": "Students will learn how to nest loops.", + "author": "Content Creator", + "privacy": "classroom" + }, + { + "name": "Force, Motion, and Energy: Activity 1", + "description": "Students will use a ballista to learn about force, motion, and energy.", + "author": "Content Creator", + "privacy": "public" + }, + { + "name": "Force, Motion, and Energy: Activity 2", + "description": "Students will use a ballista to learn about force, motion, and energy.", + "author": "Content Creator", + "privacy": "public" + }, + { + "name": "Force, Motion, and Energy: Activity 3", + "description": "Students will use a ballista to learn about force, motion, and energy.", + "author": "Content Creator", + "privacy": "public" + }, + { + "name": "Circuits: Activity 1", + "description": "Students will use if-else statements to predict energy flow in circuits.", + "author": "Content Creator", + "privacy": "public" + } + ] +} diff --git a/client/src/App.jsx b/client/src/App.jsx index 3efe80918..1151c35be 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { Route, Routes } from 'react-router-dom'; import PrivateRoute from './Utils/PrivateRoute'; import About from './views/About/About'; +import Gallery from './views/Gallery/Gallery'; import BlocklyPage from './views/BlocklyPage/BlocklyPage'; import BugReport from './views/BugReport/BugReport'; import ContentCreator from './views/ContentCreator/ContentCreator'; @@ -21,102 +22,103 @@ import ResetPassword from './views/TeacherLogin/ResetPassword'; import TeacherLogin from './views/TeacherLogin/TeacherLogin'; const App = () => { - return ( -
- - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - } /> - } /> - -
- ); + return ( +
+ + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + } /> + } /> + +
+ ); }; export default App; diff --git a/client/src/Utils/requests.js b/client/src/Utils/requests.js index 79fa17f63..9b6c4408a 100644 --- a/client/src/Utils/requests.js +++ b/client/src/Utils/requests.js @@ -13,10 +13,10 @@ const makeRequest = async ({ method, path, data, auth = false, error }) => { let err = null; const config = auth ? { - headers: { - Authorization: `Bearer ${getToken()}`, - }, - } + headers: { + Authorization: `Bearer ${getToken()}`, + }, + } : null; try { @@ -504,7 +504,7 @@ export const getLessonModuleActivities = async (lsId) => error: 'Activity cannot be retrived', }); - export const getActivityLevels = async (lsId) => +export const getActivityLevels = async (lsId) => makeRequest({ method: GET, path: `${server}/authorized-workspaces?activities.id=${lsId}`, @@ -520,6 +520,27 @@ export const getActivity = async (id) => error: 'Activity cannot be retrived', }); + export const getGalleryActivity = async (id) => { + if (!id) { + throw new Error('Invalid gallery ID'); + } + + try { + return await makeRequest({ + method: GET, + path: `${server}/galleries/${id}`, + auth: true, + error: 'Failed to retrieve gallery activity', + }); + } catch (error) { + console.error('Error fetching gallery data:', error.message); + throw error; // Rethrow the error to handle it in the component + } + }; + + + + export const forgetPassword = async (email) => makeRequest({ method: POST, diff --git a/client/src/assets/placeholder-gallery-image.jpg b/client/src/assets/placeholder-gallery-image.jpg new file mode 100644 index 000000000..72a596196 Binary files /dev/null and b/client/src/assets/placeholder-gallery-image.jpg differ diff --git a/client/src/assets/placeholder-gallery-image1.jpg b/client/src/assets/placeholder-gallery-image1.jpg new file mode 100644 index 000000000..db94e170d Binary files /dev/null and b/client/src/assets/placeholder-gallery-image1.jpg differ diff --git a/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/ConsoleModal.jsx b/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/ConsoleModal.jsx index 7f7d99242..fc251ebec 100644 --- a/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/ConsoleModal.jsx +++ b/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/ConsoleModal.jsx @@ -23,19 +23,25 @@ export default function ConsoleModal({ const [deviceDisconnect, setDeviceDisconnect] = useState(false); useEffect(() => { - navigator.serial.addEventListener('disconnect', (e) => { - console.log('device disconnected'); - window.port = undefined; - setConnectionOpen(false); - document.getElementById('connect-button').innerHTML = 'Connect'; - setDeviceDisconnect(true); - message.error('Device Disconnected'); - }); - navigator.serial.addEventListener('connect', (e) => { - setDeviceDisconnect(false); - message.success('Device Connected'); - }); + if ('serial' in navigator) { + navigator.serial.addEventListener('disconnect', (e) => { + console.log('device disconnected'); + window.port = undefined; + setConnectionOpen(false); + document.getElementById('connect-button').innerHTML = 'Connect'; + setDeviceDisconnect(true); + message.error('Device Disconnected'); + }); + navigator.serial.addEventListener('connect', (e) => { + setDeviceDisconnect(false); + message.success('Device Connected'); + }); + } else { + console.error('Serial not supported in this environment.'); + } }, [deviceDisconnect, setConnectionOpen]); + + const handleKeyPress = async (e) => { if (e.key === 'Enter') { diff --git a/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/PlotterModal.jsx b/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/PlotterModal.jsx index 152308bad..b26c48df5 100644 --- a/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/PlotterModal.jsx +++ b/client/src/components/ActivityPanels/BlocklyCanvasPanel/modals/PlotterModal.jsx @@ -34,19 +34,24 @@ export default function PlotterModal({ const [forceUpdate] = useReducer((x) => x + 1, 0); useEffect(() => { - navigator.serial.addEventListener('disconnect', (e) => { - console.log('device disconnected'); - window.port = undefined; - setConnectionOpen(false); - document.getElementById('connect-button').innerHTML = 'Connect'; - setDeviceDisconnect(true); - message.error('Device Disconnected'); - }); - navigator.serial.addEventListener('connect', (e) => { - setDeviceDisconnect(false); - message.success('Device Connected'); - }); + if ('serial' in navigator) { + navigator.serial.addEventListener('disconnect', (e) => { + console.log('device disconnected'); + window.port = undefined; + setConnectionOpen(false); + document.getElementById('connect-button').innerHTML = 'Connect'; + setDeviceDisconnect(true); + message.error('Device Disconnected'); + }); + navigator.serial.addEventListener('connect', (e) => { + setDeviceDisconnect(false); + message.success('Device Connected'); + }); + } else { + console.error('Serial not supported in this environment.'); + } }, [deviceDisconnect, setConnectionOpen]); + const handleConnect = async () => { if (!connectionOpen) { @@ -62,10 +67,11 @@ export default function PlotterModal({ setDeviceDisconnect(false); } else { await handleCloseConnection(); - plotId = 1; + setPlotId(1); // Assuming you have a state variable for plotId setConnectionOpen(false); } }; + const handleChange = (value) => { setBaudRate(value); diff --git a/client/src/components/EditPage/EditPage.jsx b/client/src/components/EditPage/EditPage.jsx new file mode 100644 index 000000000..d95c79bbb --- /dev/null +++ b/client/src/components/EditPage/EditPage.jsx @@ -0,0 +1,82 @@ +import { message } from "antd" +import React, { useEffect, useState } from "react" +import { useNavigate } from "react-router-dom" +import BlocklyCanvasPanel from "../../components/ActivityPanels/BlocklyCanvasPanel/BlocklyCanvasPanel" +import NavBar from "../../components/NavBar/NavBar" +import { + getAuthorizedWorkspaceToolbox, + getActivityToolbox, + getActivityToolboxAll, +} from "../../Utils/requests" +import { useGlobalState } from "../../Utils/userState" + +export default function EditPage({ isSandbox }) { + const [value] = useGlobalState("currUser") + const [activity, setActivity] = useState({}) + const navigate = useNavigate() + + useEffect(() => { + const setup = async () => { + // if we are in sandbox mode show all toolbox + const sandboxActivity = JSON.parse(localStorage.getItem("sandbox-activity")) + if (isSandbox) { + const AllToolboxRes = await getActivityToolboxAll() + if (!sandboxActivity?.id || value.role === "Mentor") { + if (AllToolboxRes.data) { + let loadedActivity = { + ...sandboxActivity, + toolbox: AllToolboxRes.data.toolbox, + } + localStorage.setItem("sandbox-activity", JSON.stringify(loadedActivity)) + setActivity(loadedActivity) + } else { + message.error(AllToolboxRes.err) + } + } else if (value.role === "ContentCreator") { + const res = await getAuthorizedWorkspaceToolbox(sandboxActivity.id) + if (res.data) { + let loadedActivity = { ...sandboxActivity, selectedToolbox: res.data.toolbox } + loadedActivity = { ...loadedActivity, toolbox: AllToolboxRes.data.toolbox } + + localStorage.setItem("sandbox-activity", JSON.stringify(loadedActivity)) + setActivity(loadedActivity) + } else { + message.error(res.err) + } + } + } + // else show toolbox based on the activity we are viewing + else { + const localActivity = JSON.parse(localStorage.getItem("my-activity")) + + if (localActivity) { + if (localActivity.toolbox) { + setActivity(localActivity) + } else { + const res = await getActivityToolbox(localActivity.id) + if (res.data) { + let loadedActivity = { ...localActivity, toolbox: res.data.toolbox } + + localStorage.setItem("my-activity", JSON.stringify(loadedActivity)) + setActivity(loadedActivity) + } else { + message.error(res.err) + } + } + } else { + navigate(-1) + } + } + } + + setup() + }, [isSandbox, navigate, value.role]) + + return ( +
+
+ +
+
+ ) +} diff --git a/client/src/components/EditPage/EditPage.less b/client/src/components/EditPage/EditPage.less new file mode 100644 index 000000000..7625c0318 --- /dev/null +++ b/client/src/components/EditPage/EditPage.less @@ -0,0 +1,437 @@ +@import '../../assets/style.less'; + +body { + margin: 0; +} + +h3, +p { + margin: 0; +} + +#horizontal-container { + height: 100%; + width: 100%; + min-width: 40vw; + background-color: #colors[primary]; + min-height: 92vh; + max-height: 92vh; + padding-top: 20px; +} + +#horizontal-container .ant-alert { + width: 98% !important; + margin: 0 auto !important; +} + +#horizontal-container .ant-alert-message { + white-space: pre-line; +} + +.compilePop { + margin-top: 12px !important; +} + +.popup { + font-size: 12px; + color: #colors[text-secondary]; + background-color: rgb(68, 68, 68); + padding: 8px; + border: none; + border-radius: 4px; + position: absolute; + z-index: 1; +} + +.XML { + right: 11vw; + top: 12.5vh; +} + +.Arduino { + right: 10vw; + top: 12.5vh; +} + +.Compile { + right: 4vw; + top: 12.5vh; +} + +.ModalCompile { + top: 85%; + right: 3vh; +} +.ModalCompile2 { + top: 85%; + right: 12vh; +} +.ModalCompile3 { + top: 85%; + right: 5vh; +} +.ModalCompile4 { + top: 100%; +} + +#icon-control-panel { + display: flex; + align-items: center; +} + +#save-icon-btn { + font-size: 24px; + color: #colors[primary]; +} + +#icon-btn { + font-size: 24px; +} + +#action-btn-container { + display: flex; + align-items: center; + justify-content: center; + float: right; + margin-left: 8px; + margin-right: 30px; + + i { + color: #colors[primary]; + font-size: 24px; + padding: 0px 8px; + + &:hover { + color: #colors[secondary]; + } + } + + svg { + height: 24px; + x: 0px; + y: 0px; + + g { + fill: #colors[primary]; + } + + &:hover { + g { + fill: #colors[secondary]; + } + } + } +} + +#icon-align { + display: flex; + align-items: center; +} + +#description-container { + display: flex; + height: auto; + align-items: center; + flex: 1; + max-height: 8vh; + width: 100%; + + #logo { + max-width: 145px; + height: auto; + position: relative; + left: -17%; + top: 8px; + } + + h2 { + color: #colors[primary]; + width: 100%; + text-align: right; + } +} + +#lastsave-container { + min-width: 50%; +} + +#side-container { + flex: 2; + margin-top: 1vh; + margin-bottom: 1vh; + margin-right: 1vh; + background-color: #colors[tertiary]; + border-radius: 10px; + height: 100%; + overflow: hidden; + + #menu { + overflow-y: auto; + overflow-x: hidden; + height: 100%; + max-height: 78vh; + + .ImageMenu{ + height: auto; + } + } +} + +#bottom-container { + flex: 6; + margin-top: 1vh; + margin-bottom: 1vh; + background-color: #colors[tertiary]; + border-radius: 10px; + height: 100%; + max-height: 78vh; + position: relative; +} + +#blockly-canvas { + margin: auto; + width: 95%; + height: 72vh; +} + +#console-container { + background-color: white; + border: 1px solid #colors[secondary]; + border-radius: 5px; + margin: 0 auto; + position: absolute; + bottom: 0; + left: 0; + right: 0; + overflow: hidden; + height: 0; + transition: 0.5s ease; + z-index: 10; + + &.open { + height: calc(29vh + 92px); + } +} + +#console-content { + color: white; + text-align: left; +} + +#content-container { + width: 98%; + border-radius: 5px; + height: 30vh; + padding: 0.5vh 1vh; + margin: 0 auto; + background-color: black; + overflow-y: scroll; + position: relative; + word-break: break-word; +} + +#section-header { + display: flex; + justify-content: center; + align-items: center; + background-color: #colors[secondary]; + border-radius: 80px; + width: 40%; + min-height: 50px; + color: #colors[text-secondary]; + font-size: 1.2em; + font-weight: bold; + position: relative; + top: -10px; + left: -10px; + text-align: center; +} + +#secondary-section-header { + background-color: #colors[secondary]; + border-radius: 80px; + color: #colors[text-secondary]; + width: 45%; + min-height: 5%; + font-size: 0.8em; + font-weight: bold; + position: relative; + left: -10px; + line-height: 20px; + text-align: center; +} + +#section-text { + font-size: 1em; + font-weight: bold; + color: #colors[text-primary]; + margin-left: 1.5em; + margin-right: 1.5em; + margin-bottom: 1.5em; +} + +#carousel-container { + max-height: 60vh; + overflow: hidden; + background-color: #colors[tertiary]; + border-radius: 20px; + margin: auto; +} + +#diagram { + max-height: 55vh; + margin: auto; + width: auto; +} + +.ant-carousel .slick-slide { + overflow: hidden; + height: 100%; + background-color: #colors[tertiary]; + border-radius: 20px; + margin: auto; +} + +.ant-carousel .slick-dots li button { + background-color: #colors[secondary]; + opacity: 0.4; +} + +.ant-carousel .slick-dots li.slick-active button { + opacity: 1; + background-color: #colors[secondary]; +} + +#link { + background: none !important; + border: none; + box-shadow: none; + padding: 0 !important; + color: #colors[primary]; + text-align: center; + margin: 0 0 0 12px; + + &:focus { + outline: none; + } + + &:hover { + color: #colors[secondary]; + } +} + +#save-select { + min-width: 10vw; + border: 1px solid #colors[secondary]; + border-radius: 5px; + + &:focus { + outline: none !important; + } + + #disabled-option { + opacity: 0.6; + background-color: darken(#colors[tertiary], 10%); + } +} + +#code-text-box { + background-color: #colors[tertiary]; + padding: 5px; + border: 1px inset; +} + +#history-item { + display: flex; + justify-content: space-between; + margin-bottom: 0.5vh; + background: #colors[tertiary]; + width: 100%; + height: 8vh; + border: 1px solid #colors[secondary]; + border-radius: 5px; + overflow: hidden; + + #item-content { + margin: 0 1vw; + line-height: 8vh; + } +} + +#eye-icon { + line-height: 22px; + margin-right: 15px; +} + +#category-switch { + float: right; + vertical-align: middle; +} + +#console-message { + float: left; + margin: 0.5vh 2rem; + width: 39rem; + height: 32px; +} + +#save-dropdown-container { + display: flex; + justify-content: center; + align-items: center; + color: #colors[primary]; + + #save-dropdown-icon { + font-size: 28px; + } + + &:hover { + color: #colors[secondary]; + } + +} + + +#menu-save { + text-align: left; + + &:hover { + cursor: pointer; + } + + #pencil-icon { + font-size: 8px; + } + +} + +#redo-undo-container { + display: flex; + justify-content: center; + align-items: center; +} + +#caret { + margin-left: 2px; + color: #colors[primary] +} + +#version-save-container { + display: flex; + justify-content: center; + align-items: center; +} + +#show-arduino-icon { + padding-left: 0; + margin-left: 0; +} + +@media only screen and (max-width: 915px) { + + #section-header { + font-size: 2vw; + line-height: 2vw; + } + +} diff --git a/client/src/components/GalleryEdit/GalleryEdit.jsx b/client/src/components/GalleryEdit/GalleryEdit.jsx new file mode 100644 index 000000000..6f97c9b93 --- /dev/null +++ b/client/src/components/GalleryEdit/GalleryEdit.jsx @@ -0,0 +1,27 @@ +import React, {useState} from 'react' +import './GalleryEdit.less' +import EditPage from '../EditPage/EditPage' +import BlocklyPage from "../../views/BlocklyPage/BlocklyPage"; +import {Divider} from "antd"; + +function GalleryEdit(props) { + + + return (props.trigger) ? ( +
+
+ + {props.children} + +
+ +
+
+ +
+ ) : ""; +} + +export default GalleryEdit diff --git a/client/src/components/GalleryEdit/GalleryEdit.less b/client/src/components/GalleryEdit/GalleryEdit.less new file mode 100644 index 000000000..aabcab28e --- /dev/null +++ b/client/src/components/GalleryEdit/GalleryEdit.less @@ -0,0 +1,28 @@ +@import "../../assets/style.less"; + +.popup { + position: fixed; + top: -220px; + left: -200px; + width: 160vh; + height: 100vh; + background-color: rgba(0,0,0,0.2); + + display: flex; + justify-content: center; + align-items: center; +} + +.popup-inner { + position: relative; + padding: 32px; + width: 100%; + height: 100%; + background-color: #c7c7c7; +} + +.popup-inner .close-btn { + position: absolute; + top: 16px; + right: 16px; +} diff --git a/client/src/components/GalleryView/GalleryView.jsx b/client/src/components/GalleryView/GalleryView.jsx new file mode 100644 index 000000000..6c184e40f --- /dev/null +++ b/client/src/components/GalleryView/GalleryView.jsx @@ -0,0 +1,97 @@ +import React, { useState } from 'react'; +import { HeartOutlined, HeartFilled } from '@ant-design/icons'; +import './GalleryView.less'; +import DemoData from '../../../DemoData.json'; +import ProjectPage from '../ProjectPage/ProjectPage'; +import placeholderImage from "../../assets/placeholder-gallery-image1.jpg"; +//import { getGalleryActivity } from '@utils/requests'; + +export default function GalleryView({searchParams,setSearchParams,filterText,classroomId, privacySetting,}) { + const [tab, setTab] = useState( + searchParams.has('tab') ? searchParams.get('tab') : 'home' + ); + const [page, setPage] = useState( + searchParams.has('page') ? parseInt(searchParams.get('page')) : 1 + ); + + + // Modify the state management for each gallery + const [galleryStates, setGalleryStates] = useState( + DemoData.entries.map(() => ({ + HeartIcon: HeartOutlined, + ProjectPageBtn: false, + })) + ); + + const handleOpenGallery = (index, value) => { + setGalleryStates((prevStates) => { + const updatedStates = [...prevStates]; + updatedStates[index] = { ...prevStates[index], ProjectPageBtn: value }; + return updatedStates; + }); + }; + + const handleLike = (index) => { + setGalleryStates((prevStates) => { + const updatedStates = [...prevStates]; + const newHeartIcon = + prevStates[index].HeartIcon === HeartOutlined + ? HeartFilled + : HeartOutlined; + updatedStates[index] = { ...prevStates[index], HeartIcon: newHeartIcon }; + return updatedStates; + }); + }; + + // Set workspaceList with the entries from JSON data and filter for privacy setting + const filteredData = DemoData.entries.filter((entry) => + entry.privacy.toLowerCase().includes(privacySetting.toLowerCase()) + ); + + // Filters the workspaceList based on input item name or author (not case-sensitive) + const filteredGallery = filteredData.filter( + (entry) => + entry.author.toLowerCase().includes(filterText.toLowerCase()) || + entry.name.toLowerCase().includes(filterText.toLowerCase()) + ); + + // The list is displayed as cards and filters as input is typed in the search bar + // TODO: Check margins if format looks weird + const galleryList = filteredGallery.map((directory, index) => { + const { + HeartIcon: GalleryHeartIcon, + ProjectPageBtn: ProjectPageBtnState, + } = galleryStates[index]; + + return ( + + ) + }) + return ( + + ); +} diff --git a/client/src/components/GalleryView/GalleryView.less b/client/src/components/GalleryView/GalleryView.less new file mode 100644 index 000000000..506a556f3 --- /dev/null +++ b/client/src/components/GalleryView/GalleryView.less @@ -0,0 +1,59 @@ +@import "../../assets/style.less"; + +#gallery-card-container { + display: inline-grid; + grid-template-columns: auto auto auto; + justify-content: center; + width: calc(100% + 6vh); + margin: 5% auto auto auto; +} + +#gallery-class-card { + width: 20vw; + height: auto; + margin: auto 6vh 6vh auto; + background: #colors[tertiary]; + color: #colors[text-primary]; + border: none; + border-color: #colors[secondary]; + border-radius: 10px; + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.377); +} + + + +#card-upper-content-container { + img { + border-top-right-radius: 10px; + border-top-left-radius: 10px; + width: 100%; + height: auto; + object-fit: cover; + } +} + +#card-lower-content-container { + display: flex; + align-items: center; + + #card-lower-left-content-container { + width: 75%; + + text-align: left; + font-size: 16px; + font-weight: bold; + margin-left: 20px; + line-height: 1.6vw; + } + + #card-lower-right-content-container { + width: 25%; + height: auto; + } + + #likeButton { + border: none; + background-color: #f4f4f5; + box-shadow: none; + } +} \ No newline at end of file diff --git a/client/src/components/LikedView/LikedView.jsx b/client/src/components/LikedView/LikedView.jsx new file mode 100644 index 000000000..3a08b8278 --- /dev/null +++ b/client/src/components/LikedView/LikedView.jsx @@ -0,0 +1,125 @@ +import React, { useState, useEffect } from 'react'; +import { Table, Popconfirm, message } from 'antd'; +import { QuestionCircleOutlined } from '@ant-design/icons'; +import { Link } from 'react-router-dom'; +import { + getAuthorizedWorkspaces, + getClassroomWorkspace, + getSubmission, + deleteAuthorizedWorkspace, +} from '../../Utils/requests'; + + +export default function GalleryView({searchParams, setSearchParams, classroomId}) { + const [workspaceList, setWorkspaceList] = useState([]); + const [tab, setTab] = useState( + searchParams.has('tab') ? searchParams.get('tab') : 'home' + ); + const [page, setPage] = useState( + searchParams.has('page') ? parseInt(searchParams.get('page')) : 1 + ); + useEffect(() => { + const fetchData = async () => { + let wsResponse; + if (classroomId) { + wsResponse = await getClassroomWorkspace(classroomId); + } else { + wsResponse = await getAuthorizedWorkspaces(); + } + + setWorkspaceList(wsResponse.data); + }; + fetchData(); + }, [classroomId]); + + // These attributes show up in the tables [Name---Description---Open Workspaces---Delete] + const wsColumn = [ + { + title: 'Name', + dataIndex: 'name', + key: 'name', + editable: true, + width: '30%', + align: 'left', + render: (_, key) => key.name, + }, + { + title: 'Description', + dataIndex: 'description', + key: 'description', + editable: true, + width: '40%', + align: 'left', + render: (_, key) => key.description, + }, + { + title: 'Open Workspace', + dataIndex: 'open', + key: 'open', + editable: false, + width: '20%', + align: 'center', + render: (_, key) => ( + + localStorage.setItem('sandbox-activity', JSON.stringify(key)) + } + to={'/sandbox'} + > + Open + + ), + }, + { + title: 'Delete', + dataIndex: 'delete', + key: 'delete', + width: '10%', + align: 'center', + render: (_, key) => ( + } + onConfirm={async () => { + const res = await deleteAuthorizedWorkspace(key.id); + if (res.err) { + message.error(res.err); + } else { + setWorkspaceList( + workspaceList.filter((ws) => { + return ws.id !== key.id; + }) + ); + message.success('Delete success'); + } + }} + > + + + ), + }, + ]; + + + return ( +
+
+ { + setPage(Pagination.current); + setSearchParams({tab, page: Pagination.current}); + }} + pagination={{current: page ? page : 1}} + >
+
+
+ ) +} diff --git a/client/src/components/NavBar/NavBar.jsx b/client/src/components/NavBar/NavBar.jsx index 3896c3159..ce12c8f35 100644 --- a/client/src/components/NavBar/NavBar.jsx +++ b/client/src/components/NavBar/NavBar.jsx @@ -9,127 +9,138 @@ import { removeUserSession } from '../../Utils/AuthRequests'; import { useGlobalState } from '../../Utils/userState'; export default function NavBar() { - const [value] = useGlobalState('currUser'); - let currentRoute = window.location.pathname; - let navigate = useNavigate(); - let routes = config.routes; + const [value] = useGlobalState('currUser'); + let currentRoute = window.location.pathname; + let navigate = useNavigate(); + let routes = config.routes; - const handleLogout = () => { - removeUserSession(); - navigate('/'); - }; + const handleLogout = () => { + removeUserSession(); + navigate('/'); + }; - const handleRouteChange = (route) => { - navigate(route); - }; + const handleRouteChange = (route) => { + navigate(route); + }; - const shouldShowRoute = (route) => { - if (currentRoute === routes[route]) return false; - return config.users[value.role].includes(route); - }; + const shouldShowRoute = (route) => { + if (currentRoute === routes[route]) return false; + return config.users[value.role].includes(route); + }; - const menu = ( - - {shouldShowRoute('Home') ? ( - handleRouteChange(routes.Home)}> - -   Home - - ) : null} - {shouldShowRoute('Dashboard') ? ( - handleRouteChange(routes.Dashboard)}> - -   Dashboard - - ) : null} - {shouldShowRoute('ContentCreatorDashboard') ? ( - handleRouteChange(routes.ContentCreatorDashboard)} - > - -   Dashboard - - ) : null} - {shouldShowRoute('ResearcherDashboard') ? ( - handleRouteChange(routes.ResearcherDashboard)} - > - -   Dashboard - - ) : null} - {shouldShowRoute('Sandbox') ? ( - { - localStorage.removeItem('sandbox-activity'); - handleRouteChange(routes.Sandbox); - }} - > - -   Sandbox - - ) : null} - {shouldShowRoute('TeacherLogin') ? ( - handleRouteChange(routes.TeacherLogin)} - > - -   User Login - - ) : null} - {shouldShowRoute('About') ? ( - handleRouteChange(routes.About)}> - -   About - - ) : null} - {shouldShowRoute('BugReport') ? ( - handleRouteChange(routes.BugReport)}> - -   Report a Bug - - ) : null} - {shouldShowRoute('SignOut') ? ( - handleLogout()}> - -   Sign Out - - ) : null} - - ); + const menu = ( + + {shouldShowRoute('Home') ? ( + handleRouteChange(routes.Home)}> + +   Home + + ) : null} + {shouldShowRoute('Dashboard') ? ( + handleRouteChange(routes.Dashboard)}> + +   Dashboard + + ) : null} + {shouldShowRoute('ContentCreatorDashboard') ? ( + handleRouteChange(routes.ContentCreatorDashboard)} + > + +   Dashboard + + ) : null} + {shouldShowRoute('ResearcherDashboard') ? ( + handleRouteChange(routes.ResearcherDashboard)} + > + +   Dashboard + + ) : null} + {shouldShowRoute('Sandbox') ? ( + { + localStorage.removeItem('sandbox-activity'); + handleRouteChange(routes.Sandbox); + }} + > + +   Sandbox + + ) : null} + {shouldShowRoute('Gallery') ? ( + { + handleRouteChange(routes.Gallery); + }} + > + +   Gallery + + ) : null} + {shouldShowRoute('TeacherLogin') ? ( + handleRouteChange(routes.TeacherLogin)} + > + +   User Login + + ) : null} + {shouldShowRoute('About') ? ( + handleRouteChange(routes.About)}> + +   About + + ) : null} + {shouldShowRoute('BugReport') ? ( + handleRouteChange(routes.BugReport)}> + +   Report a Bug + + ) : null} + {shouldShowRoute('SignOut') ? ( + handleLogout()}> + +   Sign Out + + ) : null} + + ); - return ( - + return ( + - ); + ); } diff --git a/client/src/components/NavBar/NavBar.less b/client/src/components/NavBar/NavBar.less index c4a52366a..f968a88c6 100644 --- a/client/src/components/NavBar/NavBar.less +++ b/client/src/components/NavBar/NavBar.less @@ -14,9 +14,7 @@ background-color: #colors[primary]; padding-right: 2vw; - -moz-box-shadow: 0 1px 5px -1px darken(#colors[primary], 90%); - -webkit-box-shadow: 0 1px 5px -1px darken(#colors[primary], 90%); - box-shadow: 0 1px 5px -1px darken(#colors[primary], 90%); + box-shadow: 0 1px 5px -1px; #link { #casmm-logo { diff --git a/client/src/components/NavBar/NavBarConfig.json b/client/src/components/NavBar/NavBarConfig.json index 27282d536..dbd86ff77 100644 --- a/client/src/components/NavBar/NavBarConfig.json +++ b/client/src/components/NavBar/NavBarConfig.json @@ -9,19 +9,21 @@ "AccountInfo": "/account", "ContentCreatorDashboard": "/ccdashboard", "ResearcherDashboard": "/report", - "BugReport": "/bugreport" + "BugReport": "/bugreport", + "Gallery": "/gallery" }, "users": { - "DefaultUser": ["Home", "TeacherLogin", "Sandbox", "About"], - "Mentor": ["Dashboard", "AccountInfo", "SignOut", "Sandbox", "BugReport"], - "Student": ["SignOut"], + "DefaultUser": ["Home", "TeacherLogin", "Sandbox", "About", "Gallery"], + "Mentor": ["Dashboard", "AccountInfo", "SignOut", "Sandbox", "BugReport", "Gallery"], + "Student": ["SignOut", "Gallery"], "ContentCreator": [ "ContentCreatorDashboard", "AccountInfo", "Sandbox", "SignOut", - "BugReport" + "BugReport", + "Gallery" ], - "Researcher": ["ResearcherDashboard", "BugReport", "SignOut"] + "Researcher": ["ResearcherDashboard", "BugReport", "SignOut", "Gallery"] } } diff --git a/client/src/components/ProjectPage/ProjectPage.jsx b/client/src/components/ProjectPage/ProjectPage.jsx new file mode 100644 index 000000000..c99912dff --- /dev/null +++ b/client/src/components/ProjectPage/ProjectPage.jsx @@ -0,0 +1,89 @@ +import React, {useState} from 'react' +import { CopyOutlined, EditOutlined, CloseOutlined } from '@ant-design/icons'; +import DemoData from '../../../DemoData.json'; +import './ProjectPage.less' +import GalleryEdit from '../GalleryEdit/GalleryEdit'; +import placeholderImage from "../../assets/placeholder-gallery-image1.jpg"; +import {Divider} from "antd"; + +export default function ProjectPage(props) { + const [projectStates, setProjectStates] = useState( + DemoData.entries.map(() => ({ + GalleryEditBtn: false, + })) + ); + + const { + GalleryEditBtn: GalleryEditBtnState, + } = projectStates[props.index]; + + const handleCopyEdit = (index, value) => { + setProjectStates((prevStates) => { + const updatedStates = [...prevStates]; + updatedStates[index] = { ...prevStates[index], GalleryEditBtn: value }; + return updatedStates; + }); + }; + + return (props.trigger) ? ( + + ) : ""; +} \ No newline at end of file diff --git a/client/src/components/ProjectPage/ProjectPage.less b/client/src/components/ProjectPage/ProjectPage.less new file mode 100644 index 000000000..0ccfca7ed --- /dev/null +++ b/client/src/components/ProjectPage/ProjectPage.less @@ -0,0 +1,150 @@ +@import "../../assets/style.less"; + +#popup { + position: absolute; + left: 0; + width: 100%; + height: 100%; + + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + .exit-button { + position: relative; + z-index: 1; + + display: flex; + justify-content: center; + align-items: center; + + width: 40px; + height: 40px; + border-radius: 100%; + } + + #popup-inner { + position: relative; + width: 1000px; + height: auto; + + #popup-content { + background-color: white; + border-radius: 5px; + border: 2px solid #colors[secondary]; + display: grid; + grid-template-columns: [first] 800px [second] 200px; + + #project-details { + grid-column-start: 1; + #image-description-button { + display: grid; + grid-template-columns: [first] 500px [second] 300px; + + img { + grid-column-start: 1; + width: calc(100% - 15px); + height: auto; + object-fit: cover; + margin: 15px; + } + + #description-button { + grid-column-start: 2; + display: flex; + flex-direction: column; + + justify-content: space-between; + align-content: center; + + padding: 20px; + + #description { + font-size: 14px; + text-align: left; + } + + #copy-edit-button { + width: 100%; + margin: 0; + } + } + + } + + #title { + font-size: 32px; + text-align: left; + padding: 15px 0 0 15px; + font-weight: bolder; + } + + #author { + font-size: 18px; + text-align: left; + font-style: italic; + padding: 0 0 0 15px; + } + + #discussion { + width: 100%; + height: 200px; + + text-align: left; + padding: 15px; + + overflow-y: scroll; + scroll-behavior: smooth; + + font-size: 16px; + font-weight: bold; + + #comment-box { + border-style: double; + margin: 2px; + font-size: 1rem; + border-radius: 2px; + padding: 2px; + display: flex; + width: 100%; + } + + } + + #edit-title { + font-size: 32px; + text-align: center; + padding: 15px 0 0 15px; + font-weight: bolder; + } + + } + + #related-works { + grid-column-start: 2; + display: grid; + grid-template-rows: [first] 10% [second] 90%; + border-left: 2px solid #colors[secondary]; + + #related-works-title { + grid-row-start: 1; + border-bottom: 2px solid #colors[secondary]; + + font-size: 18px; + font-weight: bold; + + padding: 15px; + } + + #related-works-content { + grid-row-start: 2; + padding: 15px; + + overflow-y: scroll; + scroll-behavior: smooth; + } + } + } + } +} \ No newline at end of file diff --git a/client/src/components/Search/Search.jsx b/client/src/components/Search/Search.jsx new file mode 100644 index 000000000..4b0870eb9 --- /dev/null +++ b/client/src/components/Search/Search.jsx @@ -0,0 +1,34 @@ +import './Search.less' + +import React from 'react'; +import { useRef, useEffect } from "react"; + +function Search({ filterUpdate, filterText }) { + // useRef() to allow input to be mutable for when it is being typed into the search bar + const input = useRef(); + + // Focuses the cursor on the search bar when the gallery page is opened + useEffect(() => { + input.current.focus(); + }, []); + + // Sets the filterText to the typed input + function handleChange(event) { + filterUpdate(event); + } + + // Shows the input as it is typed in the search bar + return ( +
+ +
+ ); +} +export default Search; diff --git a/client/src/components/Search/Search.less b/client/src/components/Search/Search.less new file mode 100644 index 000000000..844823856 --- /dev/null +++ b/client/src/components/Search/Search.less @@ -0,0 +1,8 @@ +.searchBar { + margin: 5px; + font-size: 1.2rem; + border-radius: 10px; + padding: 5px; + display: flex; + width: 100%; +} diff --git a/client/src/components/Tabs/SavedWorkspaceTab.jsx b/client/src/components/Tabs/SavedWorkspaceTab.jsx index 939842424..04739a148 100644 --- a/client/src/components/Tabs/SavedWorkspaceTab.jsx +++ b/client/src/components/Tabs/SavedWorkspaceTab.jsx @@ -103,7 +103,7 @@ export default function SavedWorkSpaceTab({searchParams, setSearchParams, classr return (
+ + +
+ ) +} diff --git a/client/src/views/CCGallery/ccgallery.less b/client/src/views/CCGallery/ccgallery.less new file mode 100644 index 000000000..a171621f8 --- /dev/null +++ b/client/src/views/CCGallery/ccgallery.less @@ -0,0 +1,54 @@ +@import "../../assets/style.less"; + +.container { + background-color: #colors[primary]; + height: 100%; + min-height: 100vh; + width: 100%; + min-width: 100vw; + text-align: center; +} + +#gallery-content-container { + margin: 5vh auto 5vh auto; + padding: 5vh 5vw; + width: 80vw; + background: #colors[tertiary]; + border-radius: 20px; + border: 2px solid #colors[secondary]; + + #logos { + width: 50vw; + margin: auto; + + img { + width: 20%; + height: auto; + margin: auto; + } + } + + #title { + font-size: 3em; + color: #colors[text-primary]; + margin-bottom: 0; + } + + #secondary-title { + font-size: 2em; + color: #colors[text-primary]; + } + + #divider { + width: 95%; + height: 0; + margin: 5vh 0; + border-bottom: 1px solid #colors[secondary]; + opacity: 20%; + } + + p { + font-size: 1.5em; + color: #colors[text-primary]; + } +} diff --git a/client/src/views/ContentCreator/ContentCreator.jsx b/client/src/views/ContentCreator/ContentCreator.jsx index 12ce27c5c..1e7006816 100644 --- a/client/src/views/ContentCreator/ContentCreator.jsx +++ b/client/src/views/ContentCreator/ContentCreator.jsx @@ -7,9 +7,9 @@ import SavedWorkSpaceTab from '../../components/Tabs/SavedWorkspaceTab'; import UnitCreator from './UnitCreator/UnitCreator'; import LessonModuleActivityCreator from './LessonModuleCreator/LessonModuleCreator'; import { - getLessonModuleAll, - deleteLessonModule, - getGrades, + getLessonModuleAll, + deleteLessonModule, + getGrades, } from '../../Utils/requests'; import UnitEditor from './UnitEditor/UnitEditor'; import LessonEditor from './LessonEditor/LessonEditor'; @@ -17,194 +17,204 @@ import { useSearchParams } from 'react-router-dom'; import './ContentCreator.less'; +import CCGallery from '../CCGallery/CCGallery'; +import Liked from '../Liked/Liked'; + const { TabPane } = Tabs; export default function ContentCreator() { - const [gradeList, setGradeList] = useState([]); - const [learningStandardList, setLessonModuleList] = useState([]); - const [searchParams, setSearchParams] = useSearchParams(); - - const [tab, setTab] = useState( - searchParams.has('tab') ? searchParams.get('tab') : 'home' - ); - const [page, setPage] = useState( - searchParams.has('page') ? parseInt(searchParams.get('page')) : 1 - ); - const [viewing, setViewing] = useState(parseInt(searchParams.get('activity'))); - - useEffect(() => { - const fetchData = async () => { - const [lsResponse, gradeResponse] = await Promise.all([ - getLessonModuleAll(), - getGrades(), - ]); - setLessonModuleList(lsResponse.data); - - const grades = gradeResponse.data; - grades.sort((a, b) => (a.id > b.id ? 1 : -1)); - setGradeList(grades); + const [gradeList, setGradeList] = useState([]); + const [learningStandardList, setLessonModuleList] = useState([]); + const [searchParams, setSearchParams] = useSearchParams(); + + const [tab, setTab] = useState( + searchParams.has('tab') ? searchParams.get('tab') : 'home' + ); + const [page, setPage] = useState( + searchParams.has('page') ? parseInt(searchParams.get('page')) : 1 + ); + const [viewing, setViewing] = useState(parseInt(searchParams.get('activity'))); + + useEffect(() => { + const fetchData = async () => { + const [lsResponse, gradeResponse] = await Promise.all([ + getLessonModuleAll(), + getGrades(), + ]); + setLessonModuleList(lsResponse.data); + + const grades = gradeResponse.data; + grades.sort((a, b) => (a.id > b.id ? 1 : -1)); + setGradeList(grades); + + }; + fetchData(); + }, []); + + const columns = [ + { + title: 'Unit', + dataIndex: 'unit', + key: 'unit', + editable: true, + width: '22.5%', + align: 'left', + render: (_, key) => ( + + ), + }, + { + title: 'Lesson', + dataIndex: 'name', + key: 'name', + editable: true, + width: '22.5%', + align: 'left', + render: (_, key) => ( + + ), + }, + { + title: 'Description', + dataIndex: 'expectations', + key: 'character', + editable: true, + width: '22.5%', + align: 'left', + }, + { + title: 'Delete', + dataIndex: 'delete', + key: 'delete', + width: '10%', + align: 'right', + render: (_, key) => ( + } + onConfirm={async () => { + const res = await deleteLessonModule(key.id); + if (res.err) { + message.error(res.err); + } else { + setLessonModuleList( + learningStandardList.filter((ls) => { + return ls.id !== key.id; + }) + ); + message.success('Delete success'); + } + }} + > + + + ), + }, + ]; + const filterLS = (grade) => { + return learningStandardList.filter((learningStandard) => { + return learningStandard.unit.grade === grade.id; + }); }; - fetchData(); - }, []); - - const columns = [ - { - title: 'Unit', - dataIndex: 'unit', - key: 'unit', - editable: true, - width: '22.5%', - align: 'left', - render: (_, key) => ( - - ), - }, - { - title: 'Lesson', - dataIndex: 'name', - key: 'name', - editable: true, - width: '22.5%', - align: 'left', - render: (_, key) => ( - - ), - }, - { - title: 'Description', - dataIndex: 'expectations', - key: 'character', - editable: true, - width: '22.5%', - align: 'left', - }, - { - title: 'Delete', - dataIndex: 'delete', - key: 'delete', - width: '10%', - align: 'right', - render: (_, key) => ( - } - onConfirm={async () => { - const res = await deleteLessonModule(key.id); - if (res.err) { - message.error(res.err); - } else { - setLessonModuleList( - learningStandardList.filter((ls) => { - return ls.id !== key.id; - }) - ); - message.success('Delete success'); - } - }} - > - - - ), - }, - ]; - - const filterLS = (grade) => { - return learningStandardList.filter((learningStandard) => { - return learningStandard.unit.grade === grade.id; - }); - }; - - const setTabs = (grade) => { + + const setTabs = (grade) => { + return ( + + +
+
+ + +
+ { + setViewing(undefined); + setPage(Pagination.current); + setSearchParams({ tab, page: Pagination.current }); + }} + pagination={{ current: page ? page : 1 }} + >
+
+
+ ); + }; + return ( - - -
-
- - -
- { - setViewing(undefined); - setPage(Pagination.current); - setSearchParams({ tab, page: Pagination.current }); - }} - pagination={{ current: page ? page : 1 }} - >
+
+ +
Welcome Content Creator
+ + { + setTab(activeKey); + setPage(1); + setViewing(undefined); + setSearchParams({ tab: activeKey }); + }} + activeKey={tab ? tab : 'home'} + > + + +
+
+ + +
+ { + setViewing(undefined); + setPage(Pagination.current); + setSearchParams({ tab, page: Pagination.current }); + }} + pagination={{ current: page ? page : 1 }} + >
+
+
+ + {gradeList.map((grade) => { + return setTabs(grade); + })} + + + + + + + + + + + +
- ); - }; - - return ( -
- -
Welcome Content Creator
- - { - setTab(activeKey); - setPage(1); - setViewing(undefined); - setSearchParams({ tab: activeKey }); - }} - activeKey={tab ? tab : 'home'} - > - - -
-
- - -
- { - setViewing(undefined); - setPage(Pagination.current); - setSearchParams({ tab, page: Pagination.current }); - }} - pagination={{ current: page ? page : 1 }} - >
-
-
- - {gradeList.map((grade) => { - return setTabs(grade); - })} - - - - -
-
- ); -} +} \ No newline at end of file diff --git a/client/src/views/Gallery/Gallery.jsx b/client/src/views/Gallery/Gallery.jsx new file mode 100644 index 000000000..9a219ef87 --- /dev/null +++ b/client/src/views/Gallery/Gallery.jsx @@ -0,0 +1,67 @@ +import React from "react" +import NavBar from "../../components/NavBar/NavBar" +import Search from "../../components/Search/Search" +import GalleryView from "../../components/GalleryView/GalleryView" +import "./Gallery.less" +import { useSearchParams } from 'react-router-dom'; +import { useState } from "react"; + +export default function Gallery() { + const [searchParams, setSearchParams] = useSearchParams(); + const [privacySetting, setPrivacy] = useState("Public") + // useState() to allow the filterText to be updated when input is typed + const [filterText, setFilterText] = useState(''); + + // Function to update filterText called in Search + function filterUpdate(value) { + setFilterText(value.target.value); + } + + const [tab, setTab] = useState( + searchParams.has('tab') ? searchParams.get('tab') : 'home' + ); + const [page, setPage] = useState( + searchParams.has('page') ? parseInt(searchParams.get('page')) : 1 + ); + const [viewing, setViewing] = useState(parseInt(searchParams.get('activity'))); + + const handlePublicButton = () => { + setPrivacy("Public"); + alert("Displaying only Public projects"); + } + const handleClassroomButton = () => { + setPrivacy("Classroom"); + alert("Displaying only Classroom projects"); + } + const handleOrganizationButton = () => { + setPrivacy("Organization"); + alert("Displaying only Organization projects"); + } + + return ( +
+ + + +
+ ) + +} diff --git a/client/src/views/Gallery/gallery.less b/client/src/views/Gallery/gallery.less new file mode 100644 index 000000000..b39c415d9 --- /dev/null +++ b/client/src/views/Gallery/gallery.less @@ -0,0 +1,66 @@ +@import "../../assets/style.less"; + +.container { + background-color: #colors[primary]; + height: 100%; + min-height: 100vh; + width: 100%; + min-width: 100vw; + text-align: center; +} + +#gallery-content-container { + margin: 5vh auto 5vh auto; + padding: 5vh 5vw; + width: 80vw; + background: #colors[tertiary]; + border-radius: 20px; + border: 2px solid #colors[secondary]; + + button { + background: #d7d7d7; + color: #3b3b3b; + padding: 0.6rem 1rem; + font-size: 0.8rem; + border: solid 1px #c7c7c7; + margin: 1rem 1rem; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); + border-radius: 10px; + outline: none; + } + + #logos { + width: 50vw; + margin: auto; + + img { + width: 20%; + height: auto; + margin: auto; + } + } + + #title { + font-size: 3em; + color: #colors[text-primary]; + margin-bottom: 0; + } + + #secondary-title { + font-size: 2em; + color: #colors[text-primary]; + } + + #divider { + width: 95%; + height: 0; + margin: 5vh 0; + border-bottom: 1px solid #colors[secondary]; + opacity: 20%; + } + + p { + font-size: 1.5em; + color: #colors[text-primary]; + } +} diff --git a/client/src/views/Liked/Liked.jsx b/client/src/views/Liked/Liked.jsx new file mode 100644 index 000000000..c29accd1a --- /dev/null +++ b/client/src/views/Liked/Liked.jsx @@ -0,0 +1,35 @@ +import React from "react" +import NavBar from "../../components/NavBar/NavBar" +import Search from "../../components/Search/Search" +import GalleryView from "../../components/GalleryView/GalleryView" +import LikedView from "../../components/LikedView/LikedView" +import "./liked.less" +import { useSearchParams } from 'react-router-dom'; +import { useState } from "react"; + +export default function Gallery(props) { + const [searchParams, setSearchParams] = useSearchParams(); + + const [tab, setTab] = useState( + searchParams.has('tab') ? searchParams.get('tab') : 'home' + ); + const [page, setPage] = useState( + searchParams.has('page') ? parseInt(searchParams.get('page')) : 1 + ); + const [viewing, setViewing] = useState(parseInt(searchParams.get('activity'))); + + return ( +
+ +
+ + +
+
+ ) +} diff --git a/client/src/views/Liked/liked.less b/client/src/views/Liked/liked.less new file mode 100644 index 000000000..8a41ce6fb --- /dev/null +++ b/client/src/views/Liked/liked.less @@ -0,0 +1,54 @@ +@import "../../assets/style.less"; + +.container { + background-color: #colors[primary]; + height: 100%; + min-height: 100vh; + width: 100%; + min-width: 100vw; + text-align: center; +} + +#liked-content-container { + margin: 5vh auto 5vh auto; + padding: 5vh 5vw; + width: 80vw; + background: #colors[tertiary]; + border-radius: 20px; + border: 2px solid #colors[secondary]; + + #logos { + width: 50vw; + margin: auto; + + img { + width: 20%; + height: auto; + margin: auto; + } + } + + #title { + font-size: 3em; + color: #colors[text-primary]; + margin-bottom: 0; + } + + #secondary-title { + font-size: 2em; + color: #colors[text-primary]; + } + + #divider { + width: 95%; + height: 0; + margin: 5vh 0; + border-bottom: 1px solid #colors[secondary]; + opacity: 20%; + } + + p { + font-size: 1.5em; + color: #colors[text-primary]; + } +} diff --git a/server/api/activity/documentation/1.0.0/activity.json b/server/api/activity/documentation/1.0.0/activity.json index db4ad1752..1ac7a2230 100644 --- a/server/api/activity/documentation/1.0.0/activity.json +++ b/server/api/activity/documentation/1.0.0/activity.json @@ -886,6 +886,52 @@ }, "activity_template": { "type": "string" + }, + "galleries": { + "type": "array", + "items": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "users_permissions_user": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "gallery": { + "type": "string" + }, + "submission": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "published_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } } } }, @@ -931,6 +977,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, diff --git a/server/api/activity/models/activity.settings.json b/server/api/activity/models/activity.settings.json index 209d8ff4e..8fc2e90ea 100644 --- a/server/api/activity/models/activity.settings.json +++ b/server/api/activity/models/activity.settings.json @@ -46,6 +46,10 @@ "activity_template": { "type": "text", "required": false + }, + "galleries": { + "via": "activity", + "collection": "gallery" } } } diff --git a/server/api/gallery/config/routes.json b/server/api/gallery/config/routes.json new file mode 100644 index 000000000..523fe444b --- /dev/null +++ b/server/api/gallery/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/galleries", + "handler": "gallery.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/galleries/count", + "handler": "gallery.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/galleries/:id", + "handler": "gallery.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/galleries", + "handler": "gallery.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/galleries/:id", + "handler": "gallery.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/galleries/:id", + "handler": "gallery.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/server/api/gallery/controllers/gallery.js b/server/api/gallery/controllers/gallery.js new file mode 100644 index 000000000..e86089539 --- /dev/null +++ b/server/api/gallery/controllers/gallery.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/server/api/gallery/documentation/1.0.0/gallery.json b/server/api/gallery/documentation/1.0.0/gallery.json new file mode 100644 index 000000000..1c3ee51ce --- /dev/null +++ b/server/api/gallery/documentation/1.0.0/gallery.json @@ -0,0 +1,924 @@ +{ + "paths": { + "/galleries": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Gallery" + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Gallery" + ], + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + } + ] + }, + "post": { + "deprecated": false, + "description": "Create a new record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Gallery" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Gallery" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewGallery" + } + } + } + } + } + }, + "/galleries/count": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "count": { + "type": "integer" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Gallery" + ], + "parameters": [] + } + }, + "/galleries/{id}": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Gallery" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Gallery" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "put": { + "deprecated": false, + "description": "Update a record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Gallery" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Gallery" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewGallery" + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "deprecated": false, + "description": "Delete a record", + "responses": { + "200": { + "description": "deletes a single record based on the ID supplied", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Gallery" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + } + } + }, + "components": { + "schemas": { + "Gallery": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "activity": { + "required": [ + "id", + "number", + "template" + ], + "properties": { + "id": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "number": { + "type": "integer" + }, + "template": { + "type": "string" + }, + "blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "StandardS": { + "type": "string" + }, + "images": { + "type": "string" + }, + "link": { + "type": "string" + }, + "learning_components": { + "type": "array", + "items": { + "type": "string" + } + }, + "activity_template": { + "type": "string" + }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "unit": { + "required": [ + "id", + "name", + "number" + ], + "properties": { + "id": { + "type": "string" + }, + "grade": { + "type": "string" + }, + "name": { + "type": "string" + }, + "standards_id": { + "type": "string" + }, + "standards_description": { + "type": "string" + }, + "number": { + "type": "integer" + }, + "lesson_modules": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "users_permissions_user": { + "required": [ + "id", + "username", + "email" + ], + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "password": { + "type": "string" + }, + "resetPasswordToken": { + "type": "string" + }, + "confirmationToken": { + "type": "string" + }, + "confirmed": { + "type": "boolean" + }, + "blocked": { + "type": "boolean" + }, + "role": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "classroom": { + "required": [ + "id", + "code" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "school": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "type": "string" + } + }, + "mentors": { + "type": "array", + "items": { + "type": "string" + } + }, + "students": { + "type": "array", + "items": { + "type": "string" + } + }, + "code": { + "type": "string" + }, + "grade": { + "type": "string" + }, + "selections": { + "type": "array", + "items": { + "type": "string" + } + }, + "authorized_workspaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "gallery": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "users_permissions_user": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "gallery": { + "type": "string" + }, + "submission": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "published_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "submission": { + "required": [ + "id", + "status", + "workspace", + "board", + "sketch", + "sandbox" + ], + "properties": { + "id": { + "type": "string" + }, + "status": { + "type": "string" + }, + "workspace": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "hex": { + "type": "string" + }, + "stdout": { + "type": "string" + }, + "stderr": { + "type": "string" + }, + "board": { + "type": "string" + }, + "sketch": { + "type": "string" + }, + "sandbox": { + "type": "boolean" + }, + "session": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "job_id": { + "type": "integer" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "lesson_module": { + "required": [ + "id", + "number", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "number": { + "type": "number" + }, + "name": { + "type": "string" + }, + "expectations": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "type": "string" + } + }, + "unit": { + "type": "string" + }, + "standards": { + "type": "string" + }, + "link": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "published_at": { + "type": "string", + "format": "date-time" + } + } + }, + "NewGallery": { + "properties": { + "name": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "users_permissions_user": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "gallery": { + "type": "string" + }, + "submission": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "published_at": { + "type": "string", + "format": "date-time" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } + } + }, + "tags": [ + { + "name": "Gallery" + } + ] +} \ No newline at end of file diff --git a/server/api/gallery/models/gallery.js b/server/api/gallery/models/gallery.js new file mode 100644 index 000000000..0054d33c1 --- /dev/null +++ b/server/api/gallery/models/gallery.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/server/api/gallery/models/gallery.settings.json b/server/api/gallery/models/gallery.settings.json new file mode 100644 index 000000000..6fd2ccd3e --- /dev/null +++ b/server/api/gallery/models/gallery.settings.json @@ -0,0 +1,41 @@ +{ + "kind": "collectionType", + "collectionName": "galleries", + "info": { + "name": "Gallery", + "description": "" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "attributes": { + "name": { + "type": "string" + }, + "activity": { + "model": "activity", + "via": "galleries" + }, + "unit": { + "model": "unit" + }, + "users_permissions_user": { + "plugin": "users-permissions", + "model": "user" + }, + "classroom": { + "model": "classroom" + }, + "gallery": { + "model": "gallery" + }, + "submission": { + "model": "submission" + }, + "lesson_module": { + "model": "lesson-module" + } + } +} diff --git a/server/api/gallery/services/gallery.js b/server/api/gallery/services/gallery.js new file mode 100644 index 000000000..6538a8c86 --- /dev/null +++ b/server/api/gallery/services/gallery.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/server/api/learning-components/documentation/1.0.0/learning-components.json b/server/api/learning-components/documentation/1.0.0/learning-components.json index 4e4ae3544..66293836c 100644 --- a/server/api/learning-components/documentation/1.0.0/learning-components.json +++ b/server/api/learning-components/documentation/1.0.0/learning-components.json @@ -586,6 +586,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, diff --git a/server/api/lesson-module/documentation/1.0.0/lesson-module.json b/server/api/lesson-module/documentation/1.0.0/lesson-module.json index 126b7d698..14ae0a22c 100644 --- a/server/api/lesson-module/documentation/1.0.0/lesson-module.json +++ b/server/api/lesson-module/documentation/1.0.0/lesson-module.json @@ -594,6 +594,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, diff --git a/server/api/save/documentation/1.0.0/save.json b/server/api/save/documentation/1.0.0/save.json index 531d61388..3526a79c1 100644 --- a/server/api/save/documentation/1.0.0/save.json +++ b/server/api/save/documentation/1.0.0/save.json @@ -637,6 +637,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, diff --git a/server/api/submission/documentation/1.0.0/submission.json b/server/api/submission/documentation/1.0.0/submission.json index 87d90aade..f9ab50f76 100644 --- a/server/api/submission/documentation/1.0.0/submission.json +++ b/server/api/submission/documentation/1.0.0/submission.json @@ -648,6 +648,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, diff --git a/server/extensions/documentation/documentation/1.0.0/full_documentation.json b/server/extensions/documentation/documentation/1.0.0/full_documentation.json index 49963424f..57e217c97 100755 --- a/server/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/server/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "10/12/2023 1:28:43 PM" + "x-generation-date": "11/28/2023 3:13:17 PM" }, "x-strapi-config": { "path": "/documentation", @@ -3318,7 +3318,7 @@ } } }, - "/grades": { + "/galleries": { "get": { "deprecated": false, "description": "", @@ -3330,7 +3330,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Grade" + "$ref": "#/components/schemas/Gallery" } } } @@ -3369,7 +3369,7 @@ }, "summary": "", "tags": [ - "Grade" + "Gallery" ], "parameters": [ { @@ -3519,7 +3519,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Grade" + "$ref": "#/components/schemas/Gallery" } } } @@ -3557,7 +3557,7 @@ }, "summary": "", "tags": [ - "Grade" + "Gallery" ], "requestBody": { "description": "", @@ -3565,14 +3565,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewGrade" + "$ref": "#/components/schemas/NewGallery" } } } } } }, - "/grades/count": { + "/galleries/count": { "get": { "deprecated": false, "description": "", @@ -3624,12 +3624,12 @@ }, "summary": "", "tags": [ - "Grade" + "Gallery" ], "parameters": [] } }, - "/grades/{id}": { + "/galleries/{id}": { "get": { "deprecated": false, "description": "", @@ -3639,7 +3639,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Grade" + "$ref": "#/components/schemas/Gallery" } } } @@ -3677,7 +3677,7 @@ }, "summary": "", "tags": [ - "Grade" + "Gallery" ], "parameters": [ { @@ -3701,7 +3701,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Grade" + "$ref": "#/components/schemas/Gallery" } } } @@ -3739,7 +3739,7 @@ }, "summary": "", "tags": [ - "Grade" + "Gallery" ], "requestBody": { "description": "", @@ -3747,7 +3747,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewGrade" + "$ref": "#/components/schemas/NewGallery" } } } @@ -3813,7 +3813,7 @@ }, "summary": "", "tags": [ - "Grade" + "Gallery" ], "parameters": [ { @@ -3829,20 +3829,19 @@ ] } }, - "/learning-component-types": { + "/grades": { "get": { "deprecated": false, - "description": "Find all the learning-component-types's records", + "description": "", "responses": { "200": { - "description": "Retrieve learning-component-types document(s)", + "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/Grade" } } } @@ -3881,7 +3880,7 @@ }, "summary": "", "tags": [ - "Learning-component-types" + "Grade" ], "parameters": [ { @@ -4024,18 +4023,14 @@ }, "post": { "deprecated": false, - "description": "Create a new learning-component-types record", + "description": "Create a new record", "responses": { "200": { - "description": "Retrieve learning-component-types document(s)", + "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Grade" } } } @@ -4073,7 +4068,7 @@ }, "summary": "", "tags": [ - "Learning-component-types" + "Grade" ], "requestBody": { "description": "", @@ -4081,26 +4076,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewLearning-component-types" + "$ref": "#/components/schemas/NewGrade" } } } } } }, - "/learning-component-types/count": { + "/grades/count": { "get": { "deprecated": false, - "description": "Retrieve the number of learning-component-types documents", + "description": "", "responses": { "200": { - "description": "Retrieve learning-component-types document(s)", + "description": "response", "content": { "application/json": { "schema": { "properties": { - "foo": { - "type": "string" + "count": { + "type": "integer" } } } @@ -4140,26 +4135,22 @@ }, "summary": "", "tags": [ - "Learning-component-types" + "Grade" ], "parameters": [] } }, - "/learning-component-types/{id}": { + "/grades/{id}": { "get": { "deprecated": false, - "description": "Find one learning-component-types record", + "description": "", "responses": { "200": { - "description": "Retrieve learning-component-types document(s)", + "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Grade" } } } @@ -4197,7 +4188,7 @@ }, "summary": "", "tags": [ - "Learning-component-types" + "Grade" ], "parameters": [ { @@ -4214,18 +4205,14 @@ }, "put": { "deprecated": false, - "description": "Update a single learning-component-types record", + "description": "Update a record", "responses": { "200": { - "description": "Retrieve learning-component-types document(s)", + "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Grade" } } } @@ -4263,7 +4250,7 @@ }, "summary": "", "tags": [ - "Learning-component-types" + "Grade" ], "requestBody": { "description": "", @@ -4271,7 +4258,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewLearning-component-types" + "$ref": "#/components/schemas/NewGrade" } } } @@ -4291,10 +4278,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a single learning-component-types record", + "description": "Delete a record", "responses": { "200": { - "description": "deletes a single learning-component-types based on the ID supplied", + "description": "deletes a single record based on the ID supplied", "content": { "application/json": { "schema": { @@ -4337,7 +4324,7 @@ }, "summary": "", "tags": [ - "Learning-component-types" + "Grade" ], "parameters": [ { @@ -4353,13 +4340,13 @@ ] } }, - "/learning-components": { + "/learning-component-types": { "get": { "deprecated": false, - "description": "Find all the learning-components's records", + "description": "Find all the learning-component-types's records", "responses": { "200": { - "description": "Retrieve learning-components document(s)", + "description": "Retrieve learning-component-types document(s)", "content": { "application/json": { "schema": { @@ -4405,7 +4392,7 @@ }, "summary": "", "tags": [ - "Learning-components" + "Learning-component-types" ], "parameters": [ { @@ -4548,10 +4535,10 @@ }, "post": { "deprecated": false, - "description": "Create a new learning-components record", + "description": "Create a new learning-component-types record", "responses": { "200": { - "description": "Retrieve learning-components document(s)", + "description": "Retrieve learning-component-types document(s)", "content": { "application/json": { "schema": { @@ -4597,7 +4584,7 @@ }, "summary": "", "tags": [ - "Learning-components" + "Learning-component-types" ], "requestBody": { "description": "", @@ -4605,20 +4592,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewLearning-components" + "$ref": "#/components/schemas/NewLearning-component-types" } } } } } }, - "/learning-components/count": { + "/learning-component-types/count": { "get": { "deprecated": false, - "description": "Retrieve the number of learning-components documents", + "description": "Retrieve the number of learning-component-types documents", "responses": { "200": { - "description": "Retrieve learning-components document(s)", + "description": "Retrieve learning-component-types document(s)", "content": { "application/json": { "schema": { @@ -4664,18 +4651,18 @@ }, "summary": "", "tags": [ - "Learning-components" + "Learning-component-types" ], "parameters": [] } }, - "/learning-components/{id}": { + "/learning-component-types/{id}": { "get": { "deprecated": false, - "description": "Find one learning-components record", + "description": "Find one learning-component-types record", "responses": { "200": { - "description": "Retrieve learning-components document(s)", + "description": "Retrieve learning-component-types document(s)", "content": { "application/json": { "schema": { @@ -4721,7 +4708,7 @@ }, "summary": "", "tags": [ - "Learning-components" + "Learning-component-types" ], "parameters": [ { @@ -4738,10 +4725,10 @@ }, "put": { "deprecated": false, - "description": "Update a single learning-components record", + "description": "Update a single learning-component-types record", "responses": { "200": { - "description": "Retrieve learning-components document(s)", + "description": "Retrieve learning-component-types document(s)", "content": { "application/json": { "schema": { @@ -4787,7 +4774,7 @@ }, "summary": "", "tags": [ - "Learning-components" + "Learning-component-types" ], "requestBody": { "description": "", @@ -4795,7 +4782,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewLearning-components" + "$ref": "#/components/schemas/NewLearning-component-types" } } } @@ -4815,10 +4802,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a single learning-components record", + "description": "Delete a single learning-component-types record", "responses": { "200": { - "description": "deletes a single learning-components based on the ID supplied", + "description": "deletes a single learning-component-types based on the ID supplied", "content": { "application/json": { "schema": { @@ -4861,7 +4848,7 @@ }, "summary": "", "tags": [ - "Learning-components" + "Learning-component-types" ], "parameters": [ { @@ -4877,13 +4864,13 @@ ] } }, - "/lesson-modules": { + "/learning-components": { "get": { "deprecated": false, - "description": "", + "description": "Find all the learning-components's records", "responses": { "200": { - "description": "response", + "description": "Retrieve learning-components document(s)", "content": { "application/json": { "schema": { @@ -4929,7 +4916,7 @@ }, "summary": "", "tags": [ - "Lesson-module" + "Learning-components" ], "parameters": [ { @@ -5072,10 +5059,10 @@ }, "post": { "deprecated": false, - "description": "Create a new record", + "description": "Create a new learning-components record", "responses": { "200": { - "description": "response", + "description": "Retrieve learning-components document(s)", "content": { "application/json": { "schema": { @@ -5121,7 +5108,7 @@ }, "summary": "", "tags": [ - "Lesson-module" + "Learning-components" ], "requestBody": { "description": "", @@ -5129,20 +5116,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewLesson-module" + "$ref": "#/components/schemas/NewLearning-components" } } } } } }, - "/lesson-modules/count": { + "/learning-components/count": { "get": { "deprecated": false, - "description": "", + "description": "Retrieve the number of learning-components documents", "responses": { "200": { - "description": "response", + "description": "Retrieve learning-components document(s)", "content": { "application/json": { "schema": { @@ -5188,18 +5175,18 @@ }, "summary": "", "tags": [ - "Lesson-module" + "Learning-components" ], "parameters": [] } }, - "/lesson-modules/{id}": { + "/learning-components/{id}": { "get": { "deprecated": false, - "description": "", + "description": "Find one learning-components record", "responses": { "200": { - "description": "response", + "description": "Retrieve learning-components document(s)", "content": { "application/json": { "schema": { @@ -5245,7 +5232,7 @@ }, "summary": "", "tags": [ - "Lesson-module" + "Learning-components" ], "parameters": [ { @@ -5262,10 +5249,10 @@ }, "put": { "deprecated": false, - "description": "Update a record", + "description": "Update a single learning-components record", "responses": { "200": { - "description": "response", + "description": "Retrieve learning-components document(s)", "content": { "application/json": { "schema": { @@ -5311,7 +5298,7 @@ }, "summary": "", "tags": [ - "Lesson-module" + "Learning-components" ], "requestBody": { "description": "", @@ -5319,7 +5306,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewLesson-module" + "$ref": "#/components/schemas/NewLearning-components" } } } @@ -5339,10 +5326,10 @@ }, "delete": { "deprecated": false, - "description": "Delete a record", + "description": "Delete a single learning-components record", "responses": { "200": { - "description": "deletes a single record based on the ID supplied", + "description": "deletes a single learning-components based on the ID supplied", "content": { "application/json": { "schema": { @@ -5385,7 +5372,7 @@ }, "summary": "", "tags": [ - "Lesson-module" + "Learning-components" ], "parameters": [ { @@ -5401,7 +5388,7 @@ ] } }, - "/mentors": { + "/lesson-modules": { "get": { "deprecated": false, "description": "", @@ -5411,9 +5398,10 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Mentor" + "properties": { + "foo": { + "type": "string" + } } } } @@ -5452,7 +5440,7 @@ }, "summary": "", "tags": [ - "Mentor" + "Lesson-module" ], "parameters": [ { @@ -5602,7 +5590,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Mentor" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -5640,7 +5632,7 @@ }, "summary": "", "tags": [ - "Mentor" + "Lesson-module" ], "requestBody": { "description": "", @@ -5648,14 +5640,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewMentor" + "$ref": "#/components/schemas/NewLesson-module" } } } } } }, - "/mentors/count": { + "/lesson-modules/count": { "get": { "deprecated": false, "description": "", @@ -5666,8 +5658,8 @@ "application/json": { "schema": { "properties": { - "count": { - "type": "integer" + "foo": { + "type": "string" } } } @@ -5707,12 +5699,12 @@ }, "summary": "", "tags": [ - "Mentor" + "Lesson-module" ], "parameters": [] } }, - "/mentors/{id}": { + "/lesson-modules/{id}": { "get": { "deprecated": false, "description": "", @@ -5722,7 +5714,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Mentor" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -5760,7 +5756,7 @@ }, "summary": "", "tags": [ - "Mentor" + "Lesson-module" ], "parameters": [ { @@ -5784,7 +5780,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Mentor" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -5822,7 +5822,7 @@ }, "summary": "", "tags": [ - "Mentor" + "Lesson-module" ], "requestBody": { "description": "", @@ -5830,7 +5830,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewMentor" + "$ref": "#/components/schemas/NewLesson-module" } } } @@ -5896,7 +5896,7 @@ }, "summary": "", "tags": [ - "Mentor" + "Lesson-module" ], "parameters": [ { @@ -5912,7 +5912,7 @@ ] } }, - "/sandbox/toolbox": { + "/mentors": { "get": { "deprecated": false, "description": "", @@ -5922,10 +5922,9 @@ "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/Mentor" } } } @@ -5964,202 +5963,7 @@ }, "summary": "", "tags": [ - "Sandbox" - ], - "parameters": [] - } - }, - "/sandbox/submission/{id}": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Sandbox" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] - } - }, - "/sandbox/submission": { - "post": { - "deprecated": false, - "description": "Create a new record", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Sandbox" - ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - } - } - }, - "/saves": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Save" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Save" + "Mentor" ], "parameters": [ { @@ -6309,7 +6113,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Save" + "$ref": "#/components/schemas/Mentor" } } } @@ -6347,7 +6151,7 @@ }, "summary": "", "tags": [ - "Save" + "Mentor" ], "requestBody": { "description": "", @@ -6355,14 +6159,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSave" + "$ref": "#/components/schemas/NewMentor" } } } } } }, - "/saves/count": { + "/mentors/count": { "get": { "deprecated": false, "description": "", @@ -6414,12 +6218,12 @@ }, "summary": "", "tags": [ - "Save" + "Mentor" ], "parameters": [] } }, - "/saves/activity/{activity}": { + "/mentors/{id}": { "get": { "deprecated": false, "description": "", @@ -6429,11 +6233,7 @@ "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Mentor" } } } @@ -6471,11 +6271,11 @@ }, "summary": "", "tags": [ - "Save" + "Mentor" ], "parameters": [ { - "name": "activity", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -6485,19 +6285,17 @@ } } ] - } - }, - "/saves/{id}": { - "get": { + }, + "put": { "deprecated": false, - "description": "", + "description": "Update a record", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Save" + "$ref": "#/components/schemas/Mentor" } } } @@ -6535,8 +6333,19 @@ }, "summary": "", "tags": [ - "Save" + "Mentor" ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewMentor" + } + } + } + }, "parameters": [ { "name": "id", @@ -6550,16 +6359,17 @@ } ] }, - "put": { + "delete": { "deprecated": false, - "description": "Update a record", + "description": "Delete a record", "responses": { "200": { - "description": "response", + "description": "deletes a single record based on the ID supplied", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Save" + "type": "integer", + "format": "int64" } } } @@ -6597,19 +6407,8 @@ }, "summary": "", "tags": [ - "Save" + "Mentor" ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NewSave" - } - } - } - }, "parameters": [ { "name": "id", @@ -6622,18 +6421,23 @@ } } ] - }, - "delete": { + } + }, + "/sandbox/toolbox": { + "get": { "deprecated": false, - "description": "Delete a record", + "description": "", "responses": { "200": { - "description": "deletes a single record based on the ID supplied", + "description": "response", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -6671,7 +6475,64 @@ }, "summary": "", "tags": [ - "Save" + "Sandbox" + ], + "parameters": [] + } + }, + "/sandbox/submission/{id}": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sandbox" ], "parameters": [ { @@ -6687,7 +6548,78 @@ ] } }, - "/schools": { + "/sandbox/submission": { + "post": { + "deprecated": false, + "description": "Create a new record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Sandbox" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + } + } + }, + "/saves": { "get": { "deprecated": false, "description": "", @@ -6699,7 +6631,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/School" + "$ref": "#/components/schemas/Save" } } } @@ -6738,7 +6670,7 @@ }, "summary": "", "tags": [ - "School" + "Save" ], "parameters": [ { @@ -6888,7 +6820,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/School" + "$ref": "#/components/schemas/Save" } } } @@ -6926,7 +6858,7 @@ }, "summary": "", "tags": [ - "School" + "Save" ], "requestBody": { "description": "", @@ -6934,14 +6866,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSchool" + "$ref": "#/components/schemas/NewSave" } } } } } }, - "/schools/count": { + "/saves/count": { "get": { "deprecated": false, "description": "", @@ -6993,12 +6925,12 @@ }, "summary": "", "tags": [ - "School" + "Save" ], "parameters": [] } }, - "/schools/{id}": { + "/saves/activity/{activity}": { "get": { "deprecated": false, "description": "", @@ -7008,7 +6940,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/School" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -7046,7 +6982,71 @@ }, "summary": "", "tags": [ - "School" + "Save" + ], + "parameters": [ + { + "name": "activity", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/saves/{id}": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Save" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Save" ], "parameters": [ { @@ -7070,7 +7070,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/School" + "$ref": "#/components/schemas/Save" } } } @@ -7108,7 +7108,7 @@ }, "summary": "", "tags": [ - "School" + "Save" ], "requestBody": { "description": "", @@ -7116,7 +7116,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSchool" + "$ref": "#/components/schemas/NewSave" } } } @@ -7182,7 +7182,7 @@ }, "summary": "", "tags": [ - "School" + "Save" ], "parameters": [ { @@ -7198,7 +7198,7 @@ ] } }, - "/selections": { + "/schools": { "get": { "deprecated": false, "description": "", @@ -7210,7 +7210,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Selection" + "$ref": "#/components/schemas/School" } } } @@ -7249,7 +7249,7 @@ }, "summary": "", "tags": [ - "Selection" + "School" ], "parameters": [ { @@ -7399,7 +7399,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Selection" + "$ref": "#/components/schemas/School" } } } @@ -7437,7 +7437,7 @@ }, "summary": "", "tags": [ - "Selection" + "School" ], "requestBody": { "description": "", @@ -7445,14 +7445,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSelection" + "$ref": "#/components/schemas/NewSchool" } } } } } }, - "/selections/count": { + "/schools/count": { "get": { "deprecated": false, "description": "", @@ -7504,12 +7504,12 @@ }, "summary": "", "tags": [ - "Selection" + "School" ], "parameters": [] } }, - "/selections/{id}": { + "/schools/{id}": { "get": { "deprecated": false, "description": "", @@ -7519,7 +7519,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Selection" + "$ref": "#/components/schemas/School" } } } @@ -7557,7 +7557,7 @@ }, "summary": "", "tags": [ - "Selection" + "School" ], "parameters": [ { @@ -7581,7 +7581,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Selection" + "$ref": "#/components/schemas/School" } } } @@ -7619,7 +7619,7 @@ }, "summary": "", "tags": [ - "Selection" + "School" ], "requestBody": { "description": "", @@ -7627,7 +7627,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSelection" + "$ref": "#/components/schemas/NewSchool" } } } @@ -7693,7 +7693,7 @@ }, "summary": "", "tags": [ - "Selection" + "School" ], "parameters": [ { @@ -7709,7 +7709,7 @@ ] } }, - "/sessions": { + "/selections": { "get": { "deprecated": false, "description": "", @@ -7721,7 +7721,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Session" + "$ref": "#/components/schemas/Selection" } } } @@ -7760,7 +7760,7 @@ }, "summary": "", "tags": [ - "Session" + "Selection" ], "parameters": [ { @@ -7910,7 +7910,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Session" + "$ref": "#/components/schemas/Selection" } } } @@ -7948,7 +7948,7 @@ }, "summary": "", "tags": [ - "Session" + "Selection" ], "requestBody": { "description": "", @@ -7956,14 +7956,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSession" + "$ref": "#/components/schemas/NewSelection" } } } } } }, - "/sessions/count": { + "/selections/count": { "get": { "deprecated": false, "description": "", @@ -8015,12 +8015,12 @@ }, "summary": "", "tags": [ - "Session" + "Selection" ], "parameters": [] } }, - "/sessions/{id}": { + "/selections/{id}": { "get": { "deprecated": false, "description": "", @@ -8030,7 +8030,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Session" + "$ref": "#/components/schemas/Selection" } } } @@ -8068,7 +8068,7 @@ }, "summary": "", "tags": [ - "Session" + "Selection" ], "parameters": [ { @@ -8092,7 +8092,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Session" + "$ref": "#/components/schemas/Selection" } } } @@ -8130,7 +8130,7 @@ }, "summary": "", "tags": [ - "Session" + "Selection" ], "requestBody": { "description": "", @@ -8138,7 +8138,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSession" + "$ref": "#/components/schemas/NewSelection" } } } @@ -8204,7 +8204,7 @@ }, "summary": "", "tags": [ - "Session" + "Selection" ], "parameters": [ { @@ -8220,7 +8220,7 @@ ] } }, - "/students": { + "/sessions": { "get": { "deprecated": false, "description": "", @@ -8232,7 +8232,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Student" + "$ref": "#/components/schemas/Session" } } } @@ -8271,7 +8271,7 @@ }, "summary": "", "tags": [ - "Student" + "Session" ], "parameters": [ { @@ -8421,7 +8421,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Student" + "$ref": "#/components/schemas/Session" } } } @@ -8459,7 +8459,7 @@ }, "summary": "", "tags": [ - "Student" + "Session" ], "requestBody": { "description": "", @@ -8467,71 +8467,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewStudent" + "$ref": "#/components/schemas/NewSession" } } } } } }, - "/students/me": { - "get": { - "deprecated": false, - "description": "", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Student" - ], - "parameters": [] - } - }, - "/students/count": { + "/sessions/count": { "get": { "deprecated": false, "description": "", @@ -8583,12 +8526,12 @@ }, "summary": "", "tags": [ - "Student" + "Session" ], "parameters": [] } }, - "/students/{id}": { + "/sessions/{id}": { "get": { "deprecated": false, "description": "", @@ -8598,7 +8541,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Student" + "$ref": "#/components/schemas/Session" } } } @@ -8636,7 +8579,7 @@ }, "summary": "", "tags": [ - "Student" + "Session" ], "parameters": [ { @@ -8660,7 +8603,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Student" + "$ref": "#/components/schemas/Session" } } } @@ -8698,7 +8641,7 @@ }, "summary": "", "tags": [ - "Student" + "Session" ], "requestBody": { "description": "", @@ -8706,7 +8649,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewStudent" + "$ref": "#/components/schemas/NewSession" } } } @@ -8772,91 +8715,8 @@ }, "summary": "", "tags": [ - "Student" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] - } - }, - "/students/enrolled/{id}": { - "put": { - "deprecated": false, - "description": "Update a record", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Student" + "Session" ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, "parameters": [ { "name": "id", @@ -8871,7 +8731,7 @@ ] } }, - "/submissions": { + "/students": { "get": { "deprecated": false, "description": "", @@ -8883,7 +8743,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Submission" + "$ref": "#/components/schemas/Student" } } } @@ -8922,7 +8782,7 @@ }, "summary": "", "tags": [ - "Submission" + "Student" ], "parameters": [ { @@ -9072,7 +8932,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Submission" + "$ref": "#/components/schemas/Student" } } } @@ -9110,7 +8970,7 @@ }, "summary": "", "tags": [ - "Submission" + "Student" ], "requestBody": { "description": "", @@ -9118,14 +8978,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSubmission" + "$ref": "#/components/schemas/NewStudent" } } } } } }, - "/submissions/count": { + "/students/me": { "get": { "deprecated": false, "description": "", @@ -9136,8 +8996,8 @@ "application/json": { "schema": { "properties": { - "count": { - "type": "integer" + "foo": { + "type": "string" } } } @@ -9177,12 +9037,12 @@ }, "summary": "", "tags": [ - "Submission" + "Student" ], "parameters": [] } }, - "/submissions/{id}": { + "/students/count": { "get": { "deprecated": false, "description": "", @@ -9192,7 +9052,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Submission" + "properties": { + "count": { + "type": "integer" + } + } } } } @@ -9230,21 +9094,74 @@ }, "summary": "", "tags": [ - "Submission" + "Student" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] - }, + "parameters": [] + } + }, + "/students/{id}": { + "get": { + "deprecated": false, + "description": "", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Student" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Student" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, "put": { "deprecated": false, "description": "Update a record", @@ -9254,7 +9171,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Submission" + "$ref": "#/components/schemas/Student" } } } @@ -9292,7 +9209,7 @@ }, "summary": "", "tags": [ - "Submission" + "Student" ], "requestBody": { "description": "", @@ -9300,7 +9217,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewSubmission" + "$ref": "#/components/schemas/NewStudent" } } } @@ -9366,7 +9283,7 @@ }, "summary": "", "tags": [ - "Submission" + "Student" ], "parameters": [ { @@ -9382,7 +9299,90 @@ ] } }, - "/units": { + "/students/enrolled/{id}": { + "put": { + "deprecated": false, + "description": "Update a record", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "Student" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/submissions": { "get": { "deprecated": false, "description": "", @@ -9394,7 +9394,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/Unit" + "$ref": "#/components/schemas/Submission" } } } @@ -9433,7 +9433,7 @@ }, "summary": "", "tags": [ - "Unit" + "Submission" ], "parameters": [ { @@ -9583,7 +9583,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Unit" + "$ref": "#/components/schemas/Submission" } } } @@ -9621,7 +9621,7 @@ }, "summary": "", "tags": [ - "Unit" + "Submission" ], "requestBody": { "description": "", @@ -9629,14 +9629,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewUnit" + "$ref": "#/components/schemas/NewSubmission" } } } } } }, - "/units/count": { + "/submissions/count": { "get": { "deprecated": false, "description": "", @@ -9688,12 +9688,12 @@ }, "summary": "", "tags": [ - "Unit" + "Submission" ], "parameters": [] } }, - "/units/{id}": { + "/submissions/{id}": { "get": { "deprecated": false, "description": "", @@ -9703,7 +9703,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Unit" + "$ref": "#/components/schemas/Submission" } } } @@ -9741,7 +9741,7 @@ }, "summary": "", "tags": [ - "Unit" + "Submission" ], "parameters": [ { @@ -9765,7 +9765,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Unit" + "$ref": "#/components/schemas/Submission" } } } @@ -9803,7 +9803,7 @@ }, "summary": "", "tags": [ - "Unit" + "Submission" ], "requestBody": { "description": "", @@ -9811,7 +9811,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewUnit" + "$ref": "#/components/schemas/NewSubmission" } } } @@ -9877,7 +9877,7 @@ }, "summary": "", "tags": [ - "Unit" + "Submission" ], "parameters": [ { @@ -9893,20 +9893,19 @@ ] } }, - "/email/": { - "post": { + "/units": { + "get": { "deprecated": false, - "description": "Send an email", + "description": "", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/Unit" } } } @@ -9945,280 +9944,18 @@ }, "summary": "", "tags": [ - "Email - Email" + "Unit" ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - } - } - }, - "/email/test": { - "post": { - "deprecated": false, - "description": "Send an test email", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Email - Email" - ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - } - } - }, - "/email/settings": { - "get": { - "deprecated": false, - "description": "Get the email settings", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "Email - Email" - ], - "parameters": [] - } - }, - "/users-permissions/roles/{id}": { - "get": { - "deprecated": false, - "description": "Retrieve a role depending on its id", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UsersPermissionsRole" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "UsersPermissions - Role" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ] - } - }, - "/users-permissions/roles": { - "get": { - "deprecated": false, - "description": "Retrieve all role documents", - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UsersPermissionsRole" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "summary": "", - "tags": [ - "UsersPermissions - Role" - ], - "parameters": [ - { - "name": "_limit", - "in": "query", - "required": false, - "description": "Maximum number of results possible", - "schema": { - "type": "integer" - }, - "deprecated": false + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false }, { "name": "_sort", @@ -10350,14 +10087,14 @@ }, "post": { "deprecated": false, - "description": "Create a new role", + "description": "Create a new record", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsersPermissionsRole" + "$ref": "#/components/schemas/Unit" } } } @@ -10395,7 +10132,7 @@ }, "summary": "", "tags": [ - "UsersPermissions - Role" + "Unit" ], "requestBody": { "description": "", @@ -10403,24 +10140,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewUsersPermissionsRole" + "$ref": "#/components/schemas/NewUnit" } } } } } }, - "/users-permissions/roles/{role}": { - "put": { + "/units/count": { + "get": { "deprecated": false, - "description": "Update a role", + "description": "", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsersPermissionsRole" + "properties": { + "count": { + "type": "integer" + } + } } } } @@ -10458,46 +10199,22 @@ }, "summary": "", "tags": [ - "UsersPermissions - Role" + "Unit" ], - "parameters": [ - { - "name": "role", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NewUsersPermissionsRole" - } - } - } - } - }, - "delete": { + "parameters": [] + } + }, + "/units/{id}": { + "get": { "deprecated": false, - "description": "Delete a role", + "description": "", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/Unit" } } } @@ -10535,11 +10252,11 @@ }, "summary": "", "tags": [ - "UsersPermissions - Role" + "Unit" ], "parameters": [ { - "name": "role", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -10549,22 +10266,17 @@ } } ] - } - }, - "/users-permissions/search/{id}": { - "get": { + }, + "put": { "deprecated": false, - "description": "Search for users", + "description": "Update a record", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UsersPermissionsUser" - } + "$ref": "#/components/schemas/Unit" } } } @@ -10602,8 +10314,19 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "Unit" ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewUnit" + } + } + } + }, "parameters": [ { "name": "id", @@ -10614,161 +10337,20 @@ "schema": { "type": "string" } - }, - { - "name": "_limit", - "in": "query", - "required": false, - "description": "Maximum number of results possible", - "schema": { - "type": "integer" - }, - "deprecated": false - }, - { - "name": "_sort", - "in": "query", - "required": false, - "description": "Sort according to a specific field.", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_start", - "in": "query", - "required": false, - "description": "Skip a specific number of entries (especially useful for pagination)", - "schema": { - "type": "integer" - }, - "deprecated": false - }, - { - "name": "=", - "in": "query", - "required": false, - "description": "Get entries that matches exactly your input", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_ne", - "in": "query", - "required": false, - "description": "Get records that are not equals to something", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_lt", - "in": "query", - "required": false, - "description": "Get record that are lower than a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_lte", - "in": "query", - "required": false, - "description": "Get records that are lower than or equal to a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_gt", - "in": "query", - "required": false, - "description": "Get records that are greater than a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_gte", - "in": "query", - "required": false, - "description": "Get records that are greater than or equal a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_contains", - "in": "query", - "required": false, - "description": "Get records that contains a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_containss", - "in": "query", - "required": false, - "description": "Get records that contains (case sensitive) a value", - "schema": { - "type": "string" - }, - "deprecated": false - }, - { - "name": "_in", - "in": "query", - "required": false, - "description": "Get records that matches any value in the array of values", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "deprecated": false - }, - { - "name": "_nin", - "in": "query", - "required": false, - "description": "Get records that doesn't match any value in the array of values", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "deprecated": false } ] - } - }, - "/connect/*": { - "get": { + }, + "delete": { "deprecated": false, - "description": "Connect a provider", + "description": "Delete a record", "responses": { "200": { - "description": "response", + "description": "deletes a single record based on the ID supplied", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "type": "integer", + "format": "int64" } } } @@ -10806,15 +10388,26 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "Unit" ], - "parameters": [] + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] } }, - "/auth/local": { + "/email/": { "post": { "deprecated": false, - "description": "Login a user using the identifiers email and password", + "description": "Send an email", "responses": { "200": { "description": "response", @@ -10863,7 +10456,7 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "Email - Email" ], "requestBody": { "description": "", @@ -10882,17 +10475,21 @@ } } }, - "/auth/local/register": { + "/email/test": { "post": { "deprecated": false, - "description": "Register a new user with the default role", + "description": "Send an test email", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsersPermissionsUser" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -10930,7 +10527,7 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "Email - Email" ], "requestBody": { "description": "", @@ -10938,17 +10535,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NewUsersPermissionsUser" + "properties": { + "foo": { + "type": "string" + } + } } } } } } }, - "/auth/{provider}/callback": { + "/email/settings": { "get": { "deprecated": false, - "description": "Successfull redirection after approving a provider", + "description": "Get the email settings", "responses": { "200": { "description": "response", @@ -10997,11 +10598,64 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "Email - Email" + ], + "parameters": [] + } + }, + "/users-permissions/roles/{id}": { + "get": { + "deprecated": false, + "description": "Retrieve a role depending on its id", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersPermissionsRole" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - Role" ], "parameters": [ { - "name": "provider", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -11013,20 +10667,19 @@ ] } }, - "/auth/forgot-password": { - "post": { + "/users-permissions/roles": { + "get": { "deprecated": false, - "description": "Send the reset password email link", + "description": "Retrieve all role documents", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/UsersPermissionsRole" } } } @@ -11065,40 +10718,157 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "UsersPermissions - Role" ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" } - } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false } - } - } - }, - "/auth/reset-password": { + ] + }, "post": { "deprecated": false, - "description": "Reset user password with a code (resetToken)", + "description": "Create a new role", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/UsersPermissionsRole" } } } @@ -11136,7 +10906,7 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "UsersPermissions - Role" ], "requestBody": { "description": "", @@ -11144,32 +10914,24 @@ "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/NewUsersPermissionsRole" } } } } } }, - "/auth/email-confirmation": { - "get": { + "/users-permissions/roles/{role}": { + "put": { "deprecated": false, - "description": "Validate a user account", + "description": "Update a role", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "properties": { - "foo": { - "type": "string" - } - } + "$ref": "#/components/schemas/UsersPermissionsRole" } } } @@ -11207,15 +10969,35 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "UsersPermissions - Role" ], - "parameters": [] - } - }, - "/auth/send-email-confirmation": { - "post": { + "parameters": [ + { + "name": "role", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewUsersPermissionsRole" + } + } + } + } + }, + "delete": { "deprecated": false, - "description": "Send a confirmation email to user", + "description": "Delete a role", "responses": { "200": { "description": "response", @@ -11264,29 +11046,26 @@ }, "summary": "", "tags": [ - "UsersPermissions - User" + "UsersPermissions - Role" ], - "requestBody": { - "description": "", - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "foo": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "role", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" } } - } + ] } }, - "/users": { + "/users-permissions/search/{id}": { "get": { "deprecated": false, - "description": "Retrieve all user documents", + "description": "Search for users", "responses": { "200": { "description": "response", @@ -11337,6 +11116,16 @@ "UsersPermissions - User" ], "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + }, { "name": "_limit", "in": "query", @@ -11476,17 +11265,21 @@ ] } }, - "/users/me": { + "/connect/*": { "get": { "deprecated": false, - "description": "Retrieve the logged in user information", + "description": "Connect a provider", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsersPermissionsUser" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -11529,17 +11322,21 @@ "parameters": [] } }, - "/users/{id}": { - "get": { + "/auth/local": { + "post": { "deprecated": false, - "description": "Retrieve a single user depending on his id", + "description": "Login a user using the identifiers email and password", "responses": { "200": { "description": "response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsersPermissionsUser" + "properties": { + "foo": { + "type": "string" + } + } } } } @@ -11579,22 +11376,27 @@ "tags": [ "UsersPermissions - User" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } } } - ] - }, - "put": { + } + } + }, + "/auth/local/register": { + "post": { "deprecated": false, - "description": "Update an existing user", + "description": "Register a new user with the default role", "responses": { "200": { "description": "response", @@ -11641,18 +11443,6 @@ "tags": [ "UsersPermissions - User" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "string" - } - } - ], "requestBody": { "description": "", "required": true, @@ -11664,10 +11454,12 @@ } } } - }, - "delete": { + } + }, + "/auth/{provider}/callback": { + "get": { "deprecated": false, - "description": "Delete an existing user", + "description": "Successfull redirection after approving a provider", "responses": { "200": { "description": "response", @@ -11720,7 +11512,7 @@ ], "parameters": [ { - "name": "id", + "name": "provider", "in": "path", "description": "", "deprecated": false, @@ -11731,101 +11523,820 @@ } ] } - } - }, - "components": { - "schemas": { - "Activity": { - "required": [ - "id", - "number", - "template" - ], - "properties": { - "id": { - "type": "string" - }, - "lesson_module": { - "required": [ - "id", - "number", - "name" - ], - "properties": { - "id": { - "type": "string" - }, - "number": { - "type": "number" - }, - "name": { - "type": "string" - }, - "expectations": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "type": "string" + }, + "/auth/forgot-password": { + "post": { + "deprecated": false, + "description": "Send the reset password email link", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } } - }, - "unit": { - "type": "string" - }, - "standards": { - "type": "string" - }, - "link": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "updated_by": { - "type": "string" } } }, - "number": { - "type": "integer" - }, - "template": { - "type": "string" - }, - "blocks": { - "type": "array", - "items": { - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "blocks_category": { - "type": "string" - }, - "image_url": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "updated_by": { - "type": "string" + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } }, - "description": { + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + } + } + }, + "/auth/reset-password": { + "post": { + "deprecated": false, + "description": "Reset user password with a code (resetToken)", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + } + } + }, + "/auth/email-confirmation": { + "get": { + "deprecated": false, + "description": "Validate a user account", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "parameters": [] + } + }, + "/auth/send-email-confirmation": { + "post": { + "deprecated": false, + "description": "Send a confirmation email to user", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + } + } + }, + "/users": { + "get": { + "deprecated": false, + "description": "Retrieve all user documents", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UsersPermissionsUser" + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "parameters": [ + { + "name": "_limit", + "in": "query", + "required": false, + "description": "Maximum number of results possible", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "_sort", + "in": "query", + "required": false, + "description": "Sort according to a specific field.", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_start", + "in": "query", + "required": false, + "description": "Skip a specific number of entries (especially useful for pagination)", + "schema": { + "type": "integer" + }, + "deprecated": false + }, + { + "name": "=", + "in": "query", + "required": false, + "description": "Get entries that matches exactly your input", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_ne", + "in": "query", + "required": false, + "description": "Get records that are not equals to something", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lt", + "in": "query", + "required": false, + "description": "Get record that are lower than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_lte", + "in": "query", + "required": false, + "description": "Get records that are lower than or equal to a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gt", + "in": "query", + "required": false, + "description": "Get records that are greater than a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_gte", + "in": "query", + "required": false, + "description": "Get records that are greater than or equal a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_contains", + "in": "query", + "required": false, + "description": "Get records that contains a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_containss", + "in": "query", + "required": false, + "description": "Get records that contains (case sensitive) a value", + "schema": { + "type": "string" + }, + "deprecated": false + }, + { + "name": "_in", + "in": "query", + "required": false, + "description": "Get records that matches any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + }, + { + "name": "_nin", + "in": "query", + "required": false, + "description": "Get records that doesn't match any value in the array of values", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "deprecated": false + } + ] + } + }, + "/users/me": { + "get": { + "deprecated": false, + "description": "Retrieve the logged in user information", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersPermissionsUser" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "parameters": [] + } + }, + "/users/{id}": { + "get": { + "deprecated": false, + "description": "Retrieve a single user depending on his id", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersPermissionsUser" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "put": { + "deprecated": false, + "description": "Update an existing user", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersPermissionsUser" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NewUsersPermissionsUser" + } + } + } + } + }, + "delete": { + "deprecated": false, + "description": "Delete an existing user", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "properties": { + "foo": { + "type": "string" + } + } + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "summary": "", + "tags": [ + "UsersPermissions - User" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "string" + } + } + ] + } + } + }, + "components": { + "schemas": { + "Activity": { + "required": [ + "id", + "number", + "template" + ], + "properties": { + "id": { + "type": "string" + }, + "lesson_module": { + "required": [ + "id", + "number", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "number": { + "type": "number" + }, + "name": { + "type": "string" + }, + "expectations": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "type": "string" + } + }, + "unit": { + "type": "string" + }, + "standards": { + "type": "string" + }, + "link": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "number": { + "type": "integer" + }, + "template": { + "type": "string" + }, + "blocks": { + "type": "array", + "items": { + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "blocks_category": { + "type": "string" + }, + "image_url": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } + }, + "description": { "type": "string" }, "StandardS": { @@ -11873,6 +12384,52 @@ }, "activity_template": { "type": "string" + }, + "galleries": { + "type": "array", + "items": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "users_permissions_user": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "gallery": { + "type": "string" + }, + "submission": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "published_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } } } }, @@ -11918,6 +12475,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, @@ -11972,13 +12535,147 @@ "type": "string" } }, - "classroom": { - "type": "string" - }, - "published_at": { - "type": "string", - "format": "date-time" - }, + "classroom": { + "type": "string" + }, + "published_at": { + "type": "string", + "format": "date-time" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "Block": { + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "blocks_category": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "image_url": { + "type": "string" + } + } + }, + "NewBlock": { + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "blocks_category": { + "type": "string" + }, + "image_url": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "Blocks-category": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "blocks": { + "type": "array", + "items": { + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "blocks_category": { + "type": "string" + }, + "image_url": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } + } + } + }, + "NewBlocks-category": { + "properties": { + "name": { + "type": "string" + }, + "blocks": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, @@ -11987,10 +12684,10 @@ } } }, - "Block": { + "Classroom": { "required": [ "id", - "name" + "code" ], "properties": { "id": { @@ -11999,10 +12696,7 @@ "name": { "type": "string" }, - "description": { - "type": "string" - }, - "blocks_category": { + "school": { "required": [ "id" ], @@ -12013,7 +12707,19 @@ "name": { "type": "string" }, - "blocks": { + "county": { + "type": "string" + }, + "state": { + "type": "string" + }, + "classrooms": { + "type": "array", + "items": { + "type": "string" + } + }, + "mentors": { "type": "array", "items": { "type": "string" @@ -12027,53 +12733,98 @@ } } }, - "image_url": { - "type": "string" - } - } - }, - "NewBlock": { - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "blocks_category": { - "type": "string" - }, - "image_url": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "updated_by": { - "type": "string" - } - } - }, - "Blocks-category": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" + "sessions": { + "type": "array", + "items": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "students": { + "type": "array", + "items": { + "type": "string" + } + }, + "submissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "saves": { + "type": "array", + "items": { + "type": "string" + } + }, + "unit": { + "type": "string" + }, + "grade": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } }, - "name": { - "type": "string" + "mentors": { + "type": "array", + "items": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "school": { + "type": "string" + }, + "classrooms": { + "type": "array", + "items": { + "type": "string" + } + }, + "user": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } }, - "blocks": { + "students": { "type": "array", "items": { "required": [ "id", - "name" + "enrolled" ], "properties": { "id": { @@ -12082,15 +12833,88 @@ "name": { "type": "string" }, - "description": { + "character": { "type": "string" }, - "blocks_category": { + "classroom": { "type": "string" }, - "image_url": { + "sessions": { + "type": "array", + "items": { + "type": "string" + } + }, + "enrolled": { + "type": "boolean" + }, + "last_logged_in": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + } + }, + "code": { + "type": "string" + }, + "grade": { + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "classrooms": { + "type": "array", + "items": { + "type": "string" + } + }, + "units": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "selections": { + "type": "array", + "items": { + "required": [ + "id", + "current" + ], + "properties": { + "id": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "lesson_module": { "type": "string" }, + "current": { + "type": "boolean" + }, "created_by": { "type": "string" }, @@ -12099,15 +12923,51 @@ } } } - } - } - }, - "NewBlocks-category": { - "properties": { - "name": { + } + } + }, + "NewClassroom": { + "required": [ + "code" + ], + "properties": { + "name": { + "type": "string" + }, + "school": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "type": "string" + } + }, + "mentors": { + "type": "array", + "items": { + "type": "string" + } + }, + "students": { + "type": "array", + "items": { + "type": "string" + } + }, + "code": { "type": "string" }, - "blocks": { + "grade": { + "type": "string" + }, + "selections": { + "type": "array", + "items": { + "type": "string" + } + }, + "authorized_workspaces": { "type": "array", "items": { "type": "string" @@ -12121,10 +12981,9 @@ } } }, - "Classroom": { + "Gallery": { "required": [ - "id", - "code" + "id" ], "properties": { "id": { @@ -12133,30 +12992,53 @@ "name": { "type": "string" }, - "school": { + "activity": { "required": [ - "id" + "id", + "number", + "template" ], "properties": { "id": { "type": "string" }, - "name": { + "lesson_module": { "type": "string" }, - "county": { + "number": { + "type": "integer" + }, + "template": { "type": "string" }, - "state": { + "blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { "type": "string" }, - "classrooms": { + "StandardS": { + "type": "string" + }, + "images": { + "type": "string" + }, + "link": { + "type": "string" + }, + "learning_components": { "type": "array", "items": { "type": "string" } }, - "mentors": { + "activity_template": { + "type": "string" + }, + "galleries": { "type": "array", "items": { "type": "string" @@ -12170,140 +13052,94 @@ } } }, - "sessions": { - "type": "array", - "items": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "classroom": { - "type": "string" - }, - "students": { - "type": "array", - "items": { - "type": "string" - } - }, - "submissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "saves": { - "type": "array", - "items": { - "type": "string" - } - }, - "unit": { - "type": "string" - }, - "grade": { - "type": "string" - }, - "lesson_module": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "updated_by": { - "type": "string" - } - } - } - }, - "mentors": { - "type": "array", - "items": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "school": { - "type": "string" - }, - "classrooms": { - "type": "array", - "items": { - "type": "string" - } - }, - "user": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "updated_by": { + "unit": { + "required": [ + "id", + "name", + "number" + ], + "properties": { + "id": { + "type": "string" + }, + "grade": { + "type": "string" + }, + "name": { + "type": "string" + }, + "standards_id": { + "type": "string" + }, + "standards_description": { + "type": "string" + }, + "number": { + "type": "integer" + }, + "lesson_modules": { + "type": "array", + "items": { "type": "string" } + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" } } }, - "students": { - "type": "array", - "items": { - "required": [ - "id", - "enrolled" - ], - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "character": { - "type": "string" - }, - "classroom": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "type": "string" - } - }, - "enrolled": { - "type": "boolean" - }, - "last_logged_in": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "updated_by": { - "type": "string" - } + "users_permissions_user": { + "required": [ + "id", + "username", + "email" + ], + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "password": { + "type": "string" + }, + "resetPasswordToken": { + "type": "string" + }, + "confirmationToken": { + "type": "string" + }, + "confirmed": { + "type": "boolean" + }, + "blocked": { + "type": "boolean" + }, + "role": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" } } }, - "code": { - "type": "string" - }, - "grade": { + "classroom": { "required": [ "id", - "name" + "code" ], "properties": { "id": { @@ -12312,13 +13148,40 @@ "name": { "type": "string" }, - "classrooms": { + "school": { + "type": "string" + }, + "sessions": { "type": "array", "items": { "type": "string" } }, - "units": { + "mentors": { + "type": "array", + "items": { + "type": "string" + } + }, + "students": { + "type": "array", + "items": { + "type": "string" + } + }, + "code": { + "type": "string" + }, + "grade": { + "type": "string" + }, + "selections": { + "type": "array", + "items": { + "type": "string" + } + }, + "authorized_workspaces": { "type": "array", "items": { "type": "string" @@ -12332,83 +13195,183 @@ } } }, - "selections": { - "type": "array", - "items": { - "required": [ - "id", - "current" - ], - "properties": { - "id": { - "type": "string" - }, - "classroom": { - "type": "string" - }, - "lesson_module": { - "type": "string" - }, - "current": { - "type": "boolean" - }, - "created_by": { - "type": "string" - }, - "updated_by": { + "gallery": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "users_permissions_user": { + "type": "string" + }, + "classroom": { + "type": "string" + }, + "gallery": { + "type": "string" + }, + "submission": { + "type": "string" + }, + "lesson_module": { + "type": "string" + }, + "published_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "submission": { + "required": [ + "id", + "status", + "workspace", + "board", + "sketch", + "sandbox" + ], + "properties": { + "id": { + "type": "string" + }, + "status": { + "type": "string" + }, + "workspace": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "hex": { + "type": "string" + }, + "stdout": { + "type": "string" + }, + "stderr": { + "type": "string" + }, + "board": { + "type": "string" + }, + "sketch": { + "type": "string" + }, + "sandbox": { + "type": "boolean" + }, + "session": { + "type": "string" + }, + "activity": { + "type": "string" + }, + "job_id": { + "type": "integer" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" + } + } + }, + "lesson_module": { + "required": [ + "id", + "number", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "number": { + "type": "number" + }, + "name": { + "type": "string" + }, + "expectations": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { "type": "string" } + }, + "unit": { + "type": "string" + }, + "standards": { + "type": "string" + }, + "link": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "updated_by": { + "type": "string" } } + }, + "published_at": { + "type": "string", + "format": "date-time" } } }, - "NewClassroom": { - "required": [ - "code" - ], + "NewGallery": { "properties": { "name": { "type": "string" }, - "school": { + "activity": { "type": "string" }, - "sessions": { - "type": "array", - "items": { - "type": "string" - } + "unit": { + "type": "string" }, - "mentors": { - "type": "array", - "items": { - "type": "string" - } + "users_permissions_user": { + "type": "string" }, - "students": { - "type": "array", - "items": { - "type": "string" - } + "classroom": { + "type": "string" }, - "code": { + "gallery": { "type": "string" }, - "grade": { + "submission": { "type": "string" }, - "selections": { - "type": "array", - "items": { - "type": "string" - } + "lesson_module": { + "type": "string" }, - "authorized_workspaces": { - "type": "array", - "items": { - "type": "string" - } + "published_at": { + "type": "string", + "format": "date-time" }, "created_by": { "type": "string" @@ -12697,6 +13660,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, @@ -12833,6 +13802,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, @@ -13170,6 +14145,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, @@ -14247,6 +15228,12 @@ "activity_template": { "type": "string" }, + "galleries": { + "type": "array", + "items": { + "type": "string" + } + }, "created_by": { "type": "string" }, @@ -14749,6 +15736,9 @@ { "name": "Email" }, + { + "name": "Gallery" + }, { "name": "Grade" }, diff --git a/server/extensions/documentation/public/index.html b/server/extensions/documentation/public/index.html index 4ac662fdc..c0735e676 100644 --- a/server/extensions/documentation/public/index.html +++ b/server/extensions/documentation/public/index.html @@ -33,7 +33,7 @@ window.onload = function() { const ui = SwaggerUIBundle({ url: "https://petstore.swagger.io/v2/swagger.json", - spec: {"openapi":"3.0.0","info":{"version":"1.0.0","title":"DOCUMENTATION","description":"","termsOfService":"YOUR_TERMS_OF_SERVICE_URL","contact":{"name":"TEAM","email":"contact-email@something.io","url":"mywebsite.io"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"x-generation-date":"04/21/2022 9:15:45 PM"},"x-strapi-config":{"path":"/documentation","showGeneratedFiles":true,"generateDefaultResponse":true},"servers":[{"url":"http://localhost:1337","description":"Development server"},{"url":"YOUR_STAGING_SERVER","description":"Staging server"},{"url":"YOUR_PRODUCTION_SERVER","description":"Production server"}],"externalDocs":{"description":"Find out more","url":"https://strapi.io/documentation/developer-docs/latest/getting-started/introduction.html"},"security":[{"bearerAuth":[]}],"paths":{"/blocks":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Block"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlock"}}}}}},"/blocks/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[]}},"/blocks/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlock"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/blocks-categories":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlocks-category"}}}}}},"/blocks-categories/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[]}},"/blocks-categories/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlocks-category"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/authorized-workspaces":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAuthorized-workspace"}}}}}},"/authorized-workspaces/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[]}},"/authorized-workspaces/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAuthorized-workspace"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/authorized-workspaces/toolbox/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/classroom-managers/me":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom-manager"],"parameters":[]}},"/classrooms":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Classroom"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classroom"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClassroom"}}}}}},"/classrooms/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[]}},"/classrooms/student":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[]}},"/classrooms/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classroom"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classroom"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClassroom"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/classroom/workspaces/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"Retrieve classroom document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/classrooms/join/{code}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"code","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/activities":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewActivity"}}}}}},"/activities/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[]}},"/activities/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewActivity"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/activities/toolbox/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/activities/template/{id}":{"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/activities/activity_template/{id}":{"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/bug-report":{"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/grades":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Grade"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grade"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewGrade"}}}}}},"/grades/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[]}},"/grades/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grade"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grade"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewGrade"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/learning-component-types":{"get":{"deprecated":false,"description":"Find all the learning-component-types's records","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new learning-component-types record","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-component-types"}}}}}},"/learning-component-types/count":{"get":{"deprecated":false,"description":"Retrieve the number of learning-component-types documents","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[]}},"/learning-component-types/{id}":{"get":{"deprecated":false,"description":"Find one learning-component-types record","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a single learning-component-types record","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-component-types"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a single learning-component-types record","responses":{"200":{"description":"deletes a single learning-component-types based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/learning-components":{"get":{"deprecated":false,"description":"Find all the learning-components's records","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new learning-components record","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-components"}}}}}},"/learning-components/count":{"get":{"deprecated":false,"description":"Retrieve the number of learning-components documents","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[]}},"/learning-components/{id}":{"get":{"deprecated":false,"description":"Find one learning-components record","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a single learning-components record","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-components"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a single learning-components record","responses":{"200":{"description":"deletes a single learning-components based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/lesson-modules":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-standard"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-standard"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-standard"}}}}}},"/lesson-modules/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-standard"],"parameters":[]}},"/lesson-modules/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-standard"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-standard"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-standard"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-standard"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/mentors":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mentor"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentor"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMentor"}}}}}},"/mentors/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[]}},"/mentors/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentor"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentor"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMentor"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/sandbox/toolbox":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Sandbox"],"parameters":[]}},"/sandbox/submission/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Sandbox"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/sandbox/submission":{"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Sandbox"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/saves":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Save"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Save"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSave"}}}}}},"/saves/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[]}},"/saves/activity/{activity}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"activity","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/saves/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Save"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Save"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSave"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/schools":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/School"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSchool"}}}}}},"/schools/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[]}},"/schools/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSchool"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/selections":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Selection"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSelection"}}}}}},"/selections/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[]}},"/selections/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSelection"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/sessions":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Session"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSession"}}}}}},"/sessions/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[]}},"/sessions/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSession"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/students":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Student"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Student"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStudent"}}}}}},"/students/me":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[]}},"/students/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[]}},"/students/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Student"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Student"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStudent"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/students/enrolled/{id}":{"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/submissions":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Submission"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSubmission"}}}}}},"/submissions/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[]}},"/submissions/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSubmission"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/units":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Unit"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unit"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUnit"}}}}}},"/units/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[]}},"/units/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unit"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unit"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUnit"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/email/":{"post":{"deprecated":false,"description":"Send an email","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email - Email"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/email/test":{"post":{"deprecated":false,"description":"Send an test email","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email - Email"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/email/settings":{"get":{"deprecated":false,"description":"Get the email settings","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email - Email"],"parameters":[]}},"/users-permissions/roles/{id}":{"get":{"deprecated":false,"description":"Retrieve a role depending on its id","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/users-permissions/roles":{"get":{"deprecated":false,"description":"Retrieve all role documents","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsRole"}}}}}},"/users-permissions/roles/{role}":{"put":{"deprecated":false,"description":"Update a role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"role","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsRole"}}}}},"delete":{"deprecated":false,"description":"Delete a role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"role","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/users-permissions/search/{id}":{"get":{"deprecated":false,"description":"Search for users","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}},{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]}},"/connect/*":{"get":{"deprecated":false,"description":"Connect a provider","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[]}},"/auth/local":{"post":{"deprecated":false,"description":"Login a user using the identifiers email and password","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/auth/local/register":{"post":{"deprecated":false,"description":"Register a new user with the default role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsUser"}}}}}},"/auth/{provider}/callback":{"get":{"deprecated":false,"description":"Successfull redirection after approving a provider","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"provider","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/auth/forgot-password":{"post":{"deprecated":false,"description":"Send the reset password email link","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/auth/reset-password":{"post":{"deprecated":false,"description":"Reset user password with a code (resetToken)","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/auth/email-confirmation":{"get":{"deprecated":false,"description":"Validate a user account","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[]}},"/auth/send-email-confirmation":{"post":{"deprecated":false,"description":"Send a confirmation email to user","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/users":{"get":{"deprecated":false,"description":"Retrieve all user documents","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]}},"/users/me":{"get":{"deprecated":false,"description":"Retrieve the logged in user information","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[]}},"/users/{id}":{"get":{"deprecated":false,"description":"Retrieve a single user depending on his id","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update an existing user","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsUser"}}}}},"delete":{"deprecated":false,"description":"Delete an existing user","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}}},"components":{"schemas":{"Block":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"image_url":{"type":"string"}}},"NewBlock":{"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"type":"string"},"image_url":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Blocks-category":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"blocks":{"type":"array","items":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"type":"string"},"image_url":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewBlocks-category":{"properties":{"name":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Authorized-workspace":{"required":["id","name","template"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"template":{"type":"string"},"published_at":{"type":"string","format":"date-time"}}},"NewAuthorized-workspace":{"required":["name","template"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"classroom":{"type":"string"},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"sessions":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"mentors":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"user":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"students":{"type":"array","items":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean"},"last_logged_in":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"code":{"type":"string"},"grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"selections":{"type":"array","items":{"required":["id","current"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"lesson_module":{"type":"string"},"current":{"type":"boolean"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewClassroom":{"required":["code"],"properties":{"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"type":"string"},"image_url":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"description":{"type":"string"},"StandardS":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"learning_component_type":{"type":"string"},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"activity_template":{"type":"string"}}},"NewActivity":{"required":["number","template"],"properties":{"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"units":{"type":"array","items":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewGrade":{"required":["name"],"properties":{"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Learning-component-types":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"learning_components":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"learning_component_type":{"type":"string"},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"published_at":{"type":"string","format":"date-time"}}},"NewLearning-component-types":{"properties":{"name":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Learning-components":{"required":["id"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"activities":{"type":"array","items":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"learning_component_type":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"published_at":{"type":"string","format":"date-time"}}},"NewLearning-components":{"properties":{"type":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"learning_component_type":{"type":"string"},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Learning-standard":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"unit":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"standards":{"type":"string"},"link":{"type":"string"}}},"NewLearning-standard":{"required":["number","name"],"properties":{"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Mentor":{"required":["id"],"properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"classrooms":{"type":"array","items":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"user":{"required":["id","username","email"],"properties":{"id":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"provider":{"type":"string"},"password":{"type":"string"},"resetPasswordToken":{"type":"string"},"confirmationToken":{"type":"string"},"confirmed":{"type":"boolean"},"blocked":{"type":"boolean"},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewMentor":{"properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"user":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Save":{"required":["id","workspace"],"properties":{"id":{"type":"string"},"activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"student":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean"},"last_logged_in":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"workspace":{"type":"string"},"replay":{"type":"object"},"session":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewSave":{"required":["workspace"],"properties":{"activity":{"type":"string"},"student":{"type":"string"},"workspace":{"type":"string"},"replay":{"type":"object"},"session":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"School":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"mentors":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"user":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewSchool":{"properties":{"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Selection":{"required":["id","current"],"properties":{"id":{"type":"string"},"classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"lesson_module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"current":{"type":"boolean","default":true}}},"NewSelection":{"required":["current"],"properties":{"classroom":{"type":"string"},"lesson_module":{"type":"string"},"current":{"type":"boolean","default":true},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Session":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"students":{"type":"array","items":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean"},"last_logged_in":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"submissions":{"type":"array","items":{"required":["id","status","workspace","board","sketch","sandbox"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"workspace":{"type":"string"},"success":{"type":"boolean"},"hex":{"type":"string"},"stdout":{"type":"string"},"stderr":{"type":"string"},"board":{"type":"string"},"sketch":{"type":"string"},"sandbox":{"type":"boolean"},"session":{"type":"string"},"activity":{"type":"string"},"job_id":{"type":"integer"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"saves":{"type":"array","items":{"required":["id","workspace"],"properties":{"id":{"type":"string"},"activity":{"type":"string"},"student":{"type":"string"},"workspace":{"type":"string"},"replay":{"type":"object"},"session":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"unit":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"lesson_module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewSession":{"properties":{"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Student":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"sessions":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"enrolled":{"type":"boolean","default":true},"last_logged_in":{"type":"string","format":"date-time"}}},"NewStudent":{"required":["enrolled"],"properties":{"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean","default":true},"last_logged_in":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Submission":{"required":["id","status","workspace","board","sketch","sandbox"],"properties":{"id":{"type":"string"},"status":{"type":"string","default":"WAITING"},"workspace":{"type":"string"},"success":{"type":"boolean"},"hex":{"type":"string"},"stdout":{"type":"string"},"stderr":{"type":"string"},"board":{"type":"string"},"sketch":{"type":"string"},"sandbox":{"type":"boolean","default":false},"session":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"job_id":{"type":"integer"}}},"NewSubmission":{"required":["status","workspace","board","sketch","sandbox"],"properties":{"status":{"type":"string","default":"WAITING"},"workspace":{"type":"string"},"success":{"type":"boolean"},"hex":{"type":"string"},"stdout":{"type":"string"},"stderr":{"type":"string"},"board":{"type":"string"},"sketch":{"type":"string"},"sandbox":{"type":"boolean","default":false},"session":{"type":"string"},"activity":{"type":"string"},"job_id":{"type":"integer"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Unit":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewUnit":{"required":["name","number"],"properties":{"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"UsersPermissionsRole":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string","minLength":3},"description":{"type":"string"},"type":{"type":"string"},"permissions":{"type":"array","items":{"required":["id","type","controller","action","enabled"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"controller":{"type":"string"},"action":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"type":"string"},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"users":{"type":"array","items":{"required":["id","username","email"],"properties":{"id":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"provider":{"type":"string"},"password":{"type":"string"},"resetPasswordToken":{"type":"string"},"confirmationToken":{"type":"string"},"confirmed":{"type":"boolean"},"blocked":{"type":"boolean"},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewUsersPermissionsRole":{"required":["name"],"properties":{"name":{"type":"string","minLength":3},"description":{"type":"string"},"type":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"UsersPermissionsUser":{"required":["id","username","email"],"properties":{"id":{"type":"string"},"username":{"type":"string","minLength":3},"email":{"type":"string","minLength":6},"provider":{"type":"string"},"confirmed":{"type":"boolean","default":false},"blocked":{"type":"boolean","default":false},"role":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewUsersPermissionsUser":{"required":["username","email"],"properties":{"username":{"type":"string","minLength":3},"email":{"type":"string","minLength":6},"provider":{"type":"string"},"password":{"type":"string","format":"password","minLength":6},"resetPasswordToken":{"type":"string"},"confirmationToken":{"type":"string"},"confirmed":{"type":"boolean","default":false},"blocked":{"type":"boolean","default":false},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"tags":[{"name":"Block"},{"name":"Classroom"},{"name":"Activity"},{"name":"Email"},{"name":"Grade"},{"name":"Mentor"},{"name":"Sandbox"},{"name":"Save"},{"name":"School"},{"name":"Selection"},{"name":"Session"},{"name":"Student"},{"name":"Submission"},{"name":"Unit"},{"name":"Email - Email"},{"name":"UsersPermissions - Role"},{"name":"UsersPermissions - User"}]}, + spec: {"openapi":"3.0.0","info":{"version":"1.0.0","title":"DOCUMENTATION","description":"","termsOfService":"YOUR_TERMS_OF_SERVICE_URL","contact":{"name":"TEAM","email":"contact-email@something.io","url":"mywebsite.io"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"x-generation-date":"11/19/2023 12:55:03 AM"},"x-strapi-config":{"path":"/documentation","showGeneratedFiles":true,"generateDefaultResponse":true},"servers":[{"url":"http://localhost:1337","description":"Development server"},{"url":"YOUR_STAGING_SERVER","description":"Staging server"},{"url":"YOUR_PRODUCTION_SERVER","description":"Production server"}],"externalDocs":{"description":"Find out more","url":"https://strapi.io/documentation/developer-docs/latest/getting-started/introduction.html"},"security":[{"bearerAuth":[]}],"paths":{"/activities":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewActivity"}}}}}},"/activities/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[]}},"/activities/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewActivity"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/activities/toolbox/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/activities/template/{id}":{"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/activities/activity_template/{id}":{"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Activity"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/authorized-workspaces":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAuthorized-workspace"}}}}}},"/authorized-workspaces/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[]}},"/authorized-workspaces/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAuthorized-workspace"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/authorized-workspaces/toolbox/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Authorized-workspace"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/blocks":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Block"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlock"}}}}}},"/blocks/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[]}},"/blocks/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlock"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Block"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/blocks-categories":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlocks-category"}}}}}},"/blocks-categories/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[]}},"/blocks-categories/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBlocks-category"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Blocks-category"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/classroom-managers/me":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom-manager"],"parameters":[]}},"/classrooms":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Classroom"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classroom"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClassroom"}}}}}},"/classrooms/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[]}},"/classrooms/student":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[]}},"/classrooms/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classroom"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classroom"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClassroom"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/classroom/workspaces/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"Retrieve classroom document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/classrooms/join/{code}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"parameters":[{"name":"code","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Classroom"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/bug-report":{"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/galleries":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Gallery"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Gallery"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gallery"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Gallery"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewGallery"}}}}}},"/galleries/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Gallery"],"parameters":[]}},"/galleries/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gallery"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Gallery"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gallery"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Gallery"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewGallery"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Gallery"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/grades":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Grade"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grade"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewGrade"}}}}}},"/grades/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[]}},"/grades/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grade"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grade"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewGrade"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Grade"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/learning-component-types":{"get":{"deprecated":false,"description":"Find all the learning-component-types's records","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new learning-component-types record","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-component-types"}}}}}},"/learning-component-types/count":{"get":{"deprecated":false,"description":"Retrieve the number of learning-component-types documents","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[]}},"/learning-component-types/{id}":{"get":{"deprecated":false,"description":"Find one learning-component-types record","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a single learning-component-types record","responses":{"200":{"description":"Retrieve learning-component-types document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-component-types"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a single learning-component-types record","responses":{"200":{"description":"deletes a single learning-component-types based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-component-types"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/learning-components":{"get":{"deprecated":false,"description":"Find all the learning-components's records","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new learning-components record","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-components"}}}}}},"/learning-components/count":{"get":{"deprecated":false,"description":"Retrieve the number of learning-components documents","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[]}},"/learning-components/{id}":{"get":{"deprecated":false,"description":"Find one learning-components record","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a single learning-components record","responses":{"200":{"description":"Retrieve learning-components document(s)","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLearning-components"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a single learning-components record","responses":{"200":{"description":"deletes a single learning-components based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Learning-components"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/lesson-modules":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Lesson-module"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Lesson-module"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLesson-module"}}}}}},"/lesson-modules/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Lesson-module"],"parameters":[]}},"/lesson-modules/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Lesson-module"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Lesson-module"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLesson-module"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Lesson-module"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/mentors":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mentor"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentor"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMentor"}}}}}},"/mentors/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[]}},"/mentors/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentor"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentor"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMentor"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Mentor"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/sandbox/toolbox":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Sandbox"],"parameters":[]}},"/sandbox/submission/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Sandbox"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/sandbox/submission":{"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Sandbox"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/saves":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Save"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Save"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSave"}}}}}},"/saves/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[]}},"/saves/activity/{activity}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"activity","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/saves/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Save"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Save"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSave"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Save"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/schools":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/School"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSchool"}}}}}},"/schools/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[]}},"/schools/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSchool"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["School"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/selections":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Selection"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSelection"}}}}}},"/selections/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[]}},"/selections/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSelection"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Selection"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/sessions":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Session"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSession"}}}}}},"/sessions/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[]}},"/sessions/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSession"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Session"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/students":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Student"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Student"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStudent"}}}}}},"/students/me":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[]}},"/students/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[]}},"/students/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Student"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Student"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStudent"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/students/enrolled/{id}":{"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Student"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/submissions":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Submission"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSubmission"}}}}}},"/submissions/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[]}},"/submissions/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSubmission"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Submission"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/units":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Unit"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unit"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUnit"}}}}}},"/units/count":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[]}},"/units/{id}":{"get":{"deprecated":false,"description":"","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unit"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update a record","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unit"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUnit"}}}},"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"delete":{"deprecated":false,"description":"Delete a record","responses":{"200":{"description":"deletes a single record based on the ID supplied","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Unit"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/email/":{"post":{"deprecated":false,"description":"Send an email","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email - Email"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/email/test":{"post":{"deprecated":false,"description":"Send an test email","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email - Email"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/email/settings":{"get":{"deprecated":false,"description":"Get the email settings","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["Email - Email"],"parameters":[]}},"/users-permissions/roles/{id}":{"get":{"deprecated":false,"description":"Retrieve a role depending on its id","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/users-permissions/roles":{"get":{"deprecated":false,"description":"Retrieve all role documents","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]},"post":{"deprecated":false,"description":"Create a new role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsRole"}}}}}},"/users-permissions/roles/{role}":{"put":{"deprecated":false,"description":"Update a role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsRole"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"role","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsRole"}}}}},"delete":{"deprecated":false,"description":"Delete a role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - Role"],"parameters":[{"name":"role","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/users-permissions/search/{id}":{"get":{"deprecated":false,"description":"Search for users","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}},{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]}},"/connect/*":{"get":{"deprecated":false,"description":"Connect a provider","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[]}},"/auth/local":{"post":{"deprecated":false,"description":"Login a user using the identifiers email and password","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/auth/local/register":{"post":{"deprecated":false,"description":"Register a new user with the default role","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsUser"}}}}}},"/auth/{provider}/callback":{"get":{"deprecated":false,"description":"Successfull redirection after approving a provider","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"provider","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}},"/auth/forgot-password":{"post":{"deprecated":false,"description":"Send the reset password email link","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/auth/reset-password":{"post":{"deprecated":false,"description":"Reset user password with a code (resetToken)","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/auth/email-confirmation":{"get":{"deprecated":false,"description":"Validate a user account","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[]}},"/auth/send-email-confirmation":{"post":{"deprecated":false,"description":"Send a confirmation email to user","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}}}},"/users":{"get":{"deprecated":false,"description":"Retrieve all user documents","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"_limit","in":"query","required":false,"description":"Maximum number of results possible","schema":{"type":"integer"},"deprecated":false},{"name":"_sort","in":"query","required":false,"description":"Sort according to a specific field.","schema":{"type":"string"},"deprecated":false},{"name":"_start","in":"query","required":false,"description":"Skip a specific number of entries (especially useful for pagination)","schema":{"type":"integer"},"deprecated":false},{"name":"=","in":"query","required":false,"description":"Get entries that matches exactly your input","schema":{"type":"string"},"deprecated":false},{"name":"_ne","in":"query","required":false,"description":"Get records that are not equals to something","schema":{"type":"string"},"deprecated":false},{"name":"_lt","in":"query","required":false,"description":"Get record that are lower than a value","schema":{"type":"string"},"deprecated":false},{"name":"_lte","in":"query","required":false,"description":"Get records that are lower than or equal to a value","schema":{"type":"string"},"deprecated":false},{"name":"_gt","in":"query","required":false,"description":"Get records that are greater than a value","schema":{"type":"string"},"deprecated":false},{"name":"_gte","in":"query","required":false,"description":"Get records that are greater than or equal a value","schema":{"type":"string"},"deprecated":false},{"name":"_contains","in":"query","required":false,"description":"Get records that contains a value","schema":{"type":"string"},"deprecated":false},{"name":"_containss","in":"query","required":false,"description":"Get records that contains (case sensitive) a value","schema":{"type":"string"},"deprecated":false},{"name":"_in","in":"query","required":false,"description":"Get records that matches any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false},{"name":"_nin","in":"query","required":false,"description":"Get records that doesn't match any value in the array of values","schema":{"type":"array","items":{"type":"string"}},"deprecated":false}]}},"/users/me":{"get":{"deprecated":false,"description":"Retrieve the logged in user information","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[]}},"/users/{id}":{"get":{"deprecated":false,"description":"Retrieve a single user depending on his id","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]},"put":{"deprecated":false,"description":"Update an existing user","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPermissionsUser"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUsersPermissionsUser"}}}}},"delete":{"deprecated":false,"description":"Delete an existing user","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"properties":{"foo":{"type":"string"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"","tags":["UsersPermissions - User"],"parameters":[{"name":"id","in":"path","description":"","deprecated":false,"required":true,"schema":{"type":"string"}}]}}},"components":{"schemas":{"Activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"type":"string"},"image_url":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"learning_component_type":{"type":"string"},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"activity":{"type":"string"},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewActivity":{"required":["number","template"],"properties":{"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Authorized-workspace":{"required":["id","name","template"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"template":{"type":"string"},"published_at":{"type":"string","format":"date-time"}}},"NewAuthorized-workspace":{"required":["name","template"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"classroom":{"type":"string"},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Block":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"image_url":{"type":"string"}}},"NewBlock":{"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"type":"string"},"image_url":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Blocks-category":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"blocks":{"type":"array","items":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"blocks_category":{"type":"string"},"image_url":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewBlocks-category":{"properties":{"name":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"sessions":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"mentors":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"user":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"students":{"type":"array","items":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean"},"last_logged_in":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"code":{"type":"string"},"grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"selections":{"type":"array","items":{"required":["id","current"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"lesson_module":{"type":"string"},"current":{"type":"boolean"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewClassroom":{"required":["code"],"properties":{"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Gallery":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"published_at":{"type":"string","format":"date-time"}}},"NewGallery":{"properties":{"name":{"type":"string"},"activity":{"type":"string"},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"units":{"type":"array","items":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewGrade":{"required":["name"],"properties":{"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Learning-component-types":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"learning_components":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"learning_component_type":{"type":"string"},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"published_at":{"type":"string","format":"date-time"}}},"NewLearning-component-types":{"properties":{"name":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Learning-components":{"required":["id"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"activities":{"type":"array","items":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"learning_component_type":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"published_at":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"published_at":{"type":"string","format":"date-time"}}},"NewLearning-components":{"properties":{"type":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"learning_component_type":{"type":"string"},"published_at":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Lesson-module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"unit":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"standards":{"type":"string"},"link":{"type":"string"}}},"NewLesson-module":{"required":["number","name"],"properties":{"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Mentor":{"required":["id"],"properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"classrooms":{"type":"array","items":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"user":{"required":["id","username","email"],"properties":{"id":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"provider":{"type":"string"},"password":{"type":"string"},"resetPasswordToken":{"type":"string"},"confirmationToken":{"type":"string"},"confirmed":{"type":"boolean"},"blocked":{"type":"boolean"},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewMentor":{"properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"user":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Save":{"required":["id","workspace"],"properties":{"id":{"type":"string"},"activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"student":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean"},"last_logged_in":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"workspace":{"type":"string"},"replay":{"type":"object"},"session":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewSave":{"required":["workspace"],"properties":{"activity":{"type":"string"},"student":{"type":"string"},"workspace":{"type":"string"},"replay":{"type":"object"},"session":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"School":{"required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"mentors":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"school":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"user":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewSchool":{"properties":{"name":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Selection":{"required":["id","current"],"properties":{"id":{"type":"string"},"classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"lesson_module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"current":{"type":"boolean","default":true}}},"NewSelection":{"required":["current"],"properties":{"classroom":{"type":"string"},"lesson_module":{"type":"string"},"current":{"type":"boolean","default":true},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Session":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"students":{"type":"array","items":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean"},"last_logged_in":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"submissions":{"type":"array","items":{"required":["id","status","workspace","board","sketch","sandbox"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"workspace":{"type":"string"},"success":{"type":"boolean"},"hex":{"type":"string"},"stdout":{"type":"string"},"stderr":{"type":"string"},"board":{"type":"string"},"sketch":{"type":"string"},"sandbox":{"type":"boolean"},"session":{"type":"string"},"activity":{"type":"string"},"job_id":{"type":"integer"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"saves":{"type":"array","items":{"required":["id","workspace"],"properties":{"id":{"type":"string"},"activity":{"type":"string"},"student":{"type":"string"},"workspace":{"type":"string"},"replay":{"type":"object"},"session":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"unit":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"lesson_module":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewSession":{"properties":{"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Student":{"required":["id","enrolled"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"character":{"type":"string"},"classroom":{"required":["id","code"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"school":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"mentors":{"type":"array","items":{"type":"string"}},"students":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"grade":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}},"authorized_workspaces":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"sessions":{"type":"array","items":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"enrolled":{"type":"boolean","default":true},"last_logged_in":{"type":"string","format":"date-time"}}},"NewStudent":{"required":["enrolled"],"properties":{"name":{"type":"string"},"character":{"type":"string"},"classroom":{"type":"string"},"sessions":{"type":"array","items":{"type":"string"}},"enrolled":{"type":"boolean","default":true},"last_logged_in":{"type":"string","format":"date-time"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Submission":{"required":["id","status","workspace","board","sketch","sandbox"],"properties":{"id":{"type":"string"},"status":{"type":"string","default":"WAITING"},"workspace":{"type":"string"},"success":{"type":"boolean"},"hex":{"type":"string"},"stdout":{"type":"string"},"stderr":{"type":"string"},"board":{"type":"string"},"sketch":{"type":"string"},"sandbox":{"type":"boolean","default":false},"session":{"required":["id"],"properties":{"id":{"type":"string"},"classroom":{"type":"string"},"students":{"type":"array","items":{"type":"string"}},"submissions":{"type":"array","items":{"type":"string"}},"saves":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"grade":{"type":"string"},"lesson_module":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"activity":{"required":["id","number","template"],"properties":{"id":{"type":"string"},"lesson_module":{"type":"string"},"number":{"type":"integer"},"template":{"type":"string"},"blocks":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"StandardS":{"type":"string"},"images":{"type":"string"},"link":{"type":"string"},"learning_components":{"type":"array","items":{"type":"string"}},"activity_template":{"type":"string"},"galleries":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"job_id":{"type":"integer"}}},"NewSubmission":{"required":["status","workspace","board","sketch","sandbox"],"properties":{"status":{"type":"string","default":"WAITING"},"workspace":{"type":"string"},"success":{"type":"boolean"},"hex":{"type":"string"},"stdout":{"type":"string"},"stderr":{"type":"string"},"board":{"type":"string"},"sketch":{"type":"string"},"sandbox":{"type":"boolean","default":false},"session":{"type":"string"},"activity":{"type":"string"},"job_id":{"type":"integer"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Unit":{"required":["id","name","number"],"properties":{"id":{"type":"string"},"grade":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"classrooms":{"type":"array","items":{"type":"string"}},"units":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"required":["id","number","name"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"name":{"type":"string"},"expectations":{"type":"string"},"activities":{"type":"array","items":{"type":"string"}},"unit":{"type":"string"},"standards":{"type":"string"},"link":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewUnit":{"required":["name","number"],"properties":{"grade":{"type":"string"},"name":{"type":"string"},"standards_id":{"type":"string"},"standards_description":{"type":"string"},"number":{"type":"integer"},"lesson_modules":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"UsersPermissionsRole":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string","minLength":3},"description":{"type":"string"},"type":{"type":"string"},"permissions":{"type":"array","items":{"required":["id","type","controller","action","enabled"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"controller":{"type":"string"},"action":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"type":"string"},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}},"users":{"type":"array","items":{"required":["id","username","email"],"properties":{"id":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"provider":{"type":"string"},"password":{"type":"string"},"resetPasswordToken":{"type":"string"},"confirmationToken":{"type":"string"},"confirmed":{"type":"boolean"},"blocked":{"type":"boolean"},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}}},"NewUsersPermissionsRole":{"required":["name"],"properties":{"name":{"type":"string","minLength":3},"description":{"type":"string"},"type":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"UsersPermissionsUser":{"required":["id","username","email"],"properties":{"id":{"type":"string"},"username":{"type":"string","minLength":3},"email":{"type":"string","minLength":6},"provider":{"type":"string"},"confirmed":{"type":"boolean","default":false},"blocked":{"type":"boolean","default":false},"role":{"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"type":"string"}},"created_by":{"type":"string"},"updated_by":{"type":"string"}}}}},"NewUsersPermissionsUser":{"required":["username","email"],"properties":{"username":{"type":"string","minLength":3},"email":{"type":"string","minLength":6},"provider":{"type":"string"},"password":{"type":"string","format":"password","minLength":6},"resetPasswordToken":{"type":"string"},"confirmationToken":{"type":"string"},"confirmed":{"type":"boolean","default":false},"blocked":{"type":"boolean","default":false},"role":{"type":"string"},"created_by":{"type":"string"},"updated_by":{"type":"string"}}},"Error":{"required":["code","message"],"properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"tags":[{"name":"Activity"},{"name":"Block"},{"name":"Classroom"},{"name":"Email"},{"name":"Gallery"},{"name":"Grade"},{"name":"Mentor"},{"name":"Sandbox"},{"name":"Save"},{"name":"School"},{"name":"Selection"},{"name":"Session"},{"name":"Student"},{"name":"Submission"},{"name":"Unit"},{"name":"Email - Email"},{"name":"UsersPermissions - Role"},{"name":"UsersPermissions - User"}]}, dom_id: '#swagger-ui', docExpansion: "none", deepLinking: true, diff --git a/server/extensions/users-permissions/models/User.settings.json b/server/extensions/users-permissions/models/User.settings.json new file mode 100644 index 000000000..bc036460a --- /dev/null +++ b/server/extensions/users-permissions/models/User.settings.json @@ -0,0 +1,63 @@ +{ + "kind": "collectionType", + "collectionName": "users-permissions_user", + "info": { + "name": "user", + "description": "" + }, + "options": { + "draftAndPublish": false, + "timestamps": true + }, + "attributes": { + "username": { + "type": "string", + "minLength": 3, + "unique": true, + "configurable": false, + "required": true + }, + "email": { + "type": "email", + "minLength": 6, + "configurable": false, + "required": true + }, + "provider": { + "type": "string", + "configurable": false + }, + "password": { + "type": "password", + "minLength": 6, + "configurable": false, + "private": true + }, + "resetPasswordToken": { + "type": "string", + "configurable": false, + "private": true + }, + "confirmationToken": { + "type": "string", + "configurable": false, + "private": true + }, + "confirmed": { + "type": "boolean", + "default": false, + "configurable": false + }, + "blocked": { + "type": "boolean", + "default": false, + "configurable": false + }, + "role": { + "model": "role", + "via": "users", + "plugin": "users-permissions", + "configurable": false + } + } +}