mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
generate api
This commit is contained in:
parent
277a453173
commit
9595873b6b
7 changed files with 4933 additions and 0 deletions
2
ts-openapi/.gitignore
vendored
Normal file
2
ts-openapi/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/node_modules/
|
||||||
|
/.next/
|
2
ts-openapi/next-env.d.ts
vendored
Normal file
2
ts-openapi/next-env.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/// <reference types="next" />
|
||||||
|
/// <reference types="next/types/global" />
|
14
ts-openapi/package.json
Normal file
14
ts-openapi/package.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"name": "ts-openapi",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "index.js",
|
||||||
|
"author": "Kohei Watanabe <kou029w@gmail.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"next": "^9.5.3",
|
||||||
|
"react": "^16.13.1",
|
||||||
|
"react-dom": "^16.13.1",
|
||||||
|
"@types/react": "^16.9.51",
|
||||||
|
"typescript": "^4.0.3"
|
||||||
|
}
|
||||||
|
}
|
6
ts-openapi/pages/api/hello.ts
Normal file
6
ts-openapi/pages/api/hello.ts
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import { NextApiRequest, NextApiResponse } from "next";
|
||||||
|
|
||||||
|
export default (req: NextApiRequest, res: NextApiResponse) => {
|
||||||
|
console.log(req.body);
|
||||||
|
res.end("hello");
|
||||||
|
};
|
29
ts-openapi/tsconfig.json
Normal file
29
ts-openapi/tsconfig.json
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": false,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "preserve"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
|
}
|
4879
ts-openapi/yarn.lock
Normal file
4879
ts-openapi/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
1
vimeo/videojs-videojs-vimeo
Submodule
1
vimeo/videojs-videojs-vimeo
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 272dd97f40e97f557c7f27d178107cd791432754
|
Loading…
Add table
Reference in a new issue