Skip to content

Commit a5f1ee5

Browse files
committed
Sodoto
1 parent c6f1491 commit a5f1ee5

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
package-lock.json
3+
public

build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
# exit on error
3+
set -o errexit
4+
5+
npx redocly build-docs sodoto --output ./public/sodoto.html

openapi/sodoto.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
openapi: 3.0.3
3+
info:
4+
title: sodoto
5+
version: 1.0.0
6+
servers:
7+
- url: https://sodoto-api.onrender.com
8+
paths:
9+
"/video_uploads":
10+
get:
11+
summary: index
12+
tags:
13+
- VideoUpload
14+
responses:
15+
'200':
16+
description: returns a list of video uploads
17+
content:
18+
application/json:
19+
schema:
20+
type: array
21+
items: {}
22+
example: []

package.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "docs",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "./build.sh",
7+
"start": "http-server ./public"
8+
},
9+
"license": "ISC",
10+
"dependencies": {
11+
"@redocly/cli": "^1.11.0",
12+
"http-server": "^14.1.1"
13+
}
14+
}

redocly.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apis:
2+
sodoto:
3+
root: ./openapi/sodoto.yaml
4+

0 commit comments

Comments
 (0)