-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from sophie-app/chore/refactor
全体的なプロジェクトの整理
- Loading branch information
Showing
23 changed files
with
735 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
|
||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": false, | ||
|
||
"plugins": ["@typespec/prettier-plugin-typespec"], | ||
"overrides": [ | ||
{ | ||
"files": "*.tsp", | ||
"options": { "parser": "typespec" } | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extends: | ||
- recommended | ||
|
||
apis: | ||
odpt@v4: | ||
root: ./dist/openapi/openapi.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
import "@typespec/http"; | ||
import "@typespec/rest"; | ||
import "@typespec/openapi3"; | ||
import "@typespec/openapi"; | ||
import "./routes/index.tsp"; | ||
|
||
import "./common/error.tsp"; | ||
import "./common/class.tsp"; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
import "./search/index.tsp"; | ||
import "./airplane/index.tsp"; | ||
import "./train/index.tsp"; | ||
import "./bus/index.tsp"; | ||
import "./file/index.tsp"; | ||
@service({ | ||
title: "ODPT API", | ||
}) | ||
@server("https://api.odpt.org/api/v4", "公共交通のオープンデータ API") | ||
@server( | ||
"https://api-challenge2024.odpt.org/api/v4", | ||
"公共交通のオープンデータ API (チャレンジ2024専用)" | ||
) | ||
@info({ | ||
license: { | ||
name: "公共交通オープンデータ基本ライセンス, 公共交通オープンデータチャレンジ限定ライセンス", | ||
url: "https://developer.odpt.org/terms", | ||
}, | ||
}) | ||
@useAuth(ApiKeyAuth<ApiKeyLocation.query, "acl:consumerKey">) | ||
namespace OdptAPI; |
Oops, something went wrong.