1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

generate api

This commit is contained in:
Nebel 2020-10-06 15:41:56 +09:00
parent 277a453173
commit 9595873b6b
7 changed files with 4933 additions and 0 deletions

2
ts-openapi/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/node_modules/
/.next/

2
ts-openapi/next-env.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />

14
ts-openapi/package.json Normal file
View 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"
}
}

View 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
View 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

File diff suppressed because it is too large Load diff

@ -0,0 +1 @@
Subproject commit 272dd97f40e97f557c7f27d178107cd791432754