Skip to content

Commit

Permalink
Merge pull request #21 from yumemi-inc/chara
Browse files Browse the repository at this point in the history
Change the character used as a sample
  • Loading branch information
el-hoshino authored Apr 27, 2023
2 parents a5ace29 + 738593a commit e7de04f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
48 changes: 24 additions & 24 deletions Sources/EndPoint/Index.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private let content = #"""
<td>"name"</td>
<td>String</td>
<td>占う人の名前</td>
<td>"錦木千束"</td>
<td>"ゆめみん"</td>
</tr>
<tr>
<td>"birthday"</td>
Expand Down Expand Up @@ -232,36 +232,36 @@ private let content = #"""
<td>"year"</td>
<td>Int</td>
<td>年</td>
<td>2004</td>
<td>2000</td>
</tr>
<tr>
<td>"month"</td>
<td>Int</td>
<td>月</td>
<td>9</td>
<td>1</td>
</tr>
<tr>
<td>"day"</td>
<td>Int</td>
<td>日</td>
<td>23</td>
<td>27</td>
</tr>
</table>
<p>JSON サンプル</p>
<pre><code>
{
<span class="json-key">"name"</span>: <span class="json-string">"錦木千束"</span>,
<span class="json-key">"name"</span>: <span class="json-string">"ゆめみん"</span>,
<span class="json-key">"birthday"</span>: {
<span class="json-key">"year"</span>: <span class="json-number">2004</span>,
<span class="json-key">"month"</span>: <span class="json-number">9</span>,
<span class="json-key">"day"</span>: <span class="json-number">23</span>
<span class="json-key">"year"</span>: <span class="json-number">2000</span>,
<span class="json-key">"month"</span>: <span class="json-number">1</span>,
<span class="json-key">"day"</span>: <span class="json-number">27</span>
},
<span class="json-key">"blood_type"</span>: <span class="json-string">"ab"</span>,
<span class="json-key">"today"</span>: {
<span class="json-key">"year"</span>: <span class="json-number">2022</span>,
<span class="json-key">"month"</span>: <span class="json-number">7</span>,
<span class="json-key">"day"</span>: <span class="json-number">2</span>
<span class="json-key">"year"</span>: <span class="json-number">2023</span>,
<span class="json-key">"month"</span>: <span class="json-number">5</span>,
<span class="json-key">"day"</span>: <span class="json-number">5</span>
}
}</code></pre>
Expand All @@ -277,13 +277,13 @@ private let content = #"""
<td>"name"</td>
<td>String</td>
<td>都道府県の名前</td>
<td>"福井県"</td>
<td>"富山県"</td>
</tr>
<tr>
<td>"capital"</td>
<td>String</td>
<td>県庁所在地</td>
<td>"福井市"</td>
<td>"富山市"</td>
</tr>
<tr>
<td>"citizen_day"</td>
Expand All @@ -301,13 +301,13 @@ private let content = #"""
<td>"logo_url"</td>
<td>String</td>
<td>ロゴのURL</td>
<td>"https://japan-map.com/wp-content/uploads/fukui.png"</td>
<td>"https://japan-map.com/wp-content/uploads/toyama.png"</td>
</tr>
<tr>
<td>"brief"</td>
<td>String</td>
<td>都道府県の概要</td>
<td>"福井県(ふくいけん)は、日本の中部地方に位置する県。県庁所在地は福井市。\n北陸地方で最も人口が少ない県である。\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』"</td>
<td>"富山県(とやまけん)は、日本の中部地方に位置する県。県庁所在地は富山市。\n中部地方の日本海側、新潟県を含めた場合の北陸地方のほぼ中央にある。\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』"</td>
</tr>
</table>
Expand All @@ -323,28 +323,28 @@ private let content = #"""
<td>"month"</td>
<td>Int</td>
<td>月</td>
<td>9</td>
<td>5</td>
</tr>
<tr>
<td>"day"</td>
<td>Int</td>
<td>日</td>
<td>23</td>
<td>9</td>
</tr>
</table>
<p>JSON サンプル</p>
<pre><code>
{
<span class="json-key">"name"</span>: <span class="json-string">"福井県"</span>,
<span class="json-key">"brief"</span>: <span class="json-string">"福井県(ふくいけん)は、日本の中部地方に位置する県。県庁所在地は福井市。\n北陸地方で最も人口が少ない県である。\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』"</span>,
<span class="json-key">"capital"</span>: <span class="json-string">"福井市"</span>,
<span class="json-key">"name"</span>: <span class="json-string">"富山県"</span>,
<span class="json-key">"has_coast_line"</span>: <span class="json-boolean">true</span>,
<span class="json-key">"citizen_day"</span>: {
<span class="json-key">"month"</span>: <span class="json-number">2</span>,
<span class="json-key">"day"</span>: <span class="json-number">7</span>
<span class="json-key">"month"</span>: <span class="json-number">5</span>,
<span class="json-key">"day"</span>: <span class="json-number">9</span>
},
<span class="json-key">"has_coast_line"</span>: <span class="json-boolean">true</span>,
<span class="json-key">"logo_url"</span>: <span class="json-string">"https://japan-map.com/wp-content/uploads/fukui.png"</span>
<span class="json-key">"capital"</span>: <span class="json-string">"富山市"</span>,
<span class="json-key">"logo_url"</span>: <span class="json-string">"https://japan-map.com/wp-content/uploads/toyama.png"</span>
<span class="json-key">"brief"</span>: <span class="json-string">"富山県(とやまけん)は、日本の中部地方に位置する県。県庁所在地は富山市。\n中部地方の日本海側、新潟県を含めた場合の北陸地方のほぼ中央にある。\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』"</span>,
}</code></pre>
</ul>
Expand Down
24 changes: 12 additions & 12 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ paths:
curl -X POST "https://yumemi-ios-junior-engineer-codecheck.app.swift.cloud/my_fortune" \
-H "API-Version: v1" \
-H "Content-Type: application/json" \
-d '{"name": "錦木千束", "birthday": {"year": 2004, "month": 9, "day": 23}, "blood_type": "ab", "today": {"year": 2022, "month": 7, "day": 2}}'
-d '{"name": "ゆめみん", "birthday": {"year": 2000, "month": 1, "day": 27}, "blood_type": "ab", "today": {"year": 2023, "month": 5, "day": 5}}'
components:
schemas:
MyFortuneRequest:
Expand All @@ -50,7 +50,7 @@ components:
type: string
maxLength: 127
description: "Target's name."
example: 錦木千束
example: "ゆめみん"
birthday:
allOf:
- $ref: "#/components/schemas/YearMonthDay"
Expand All @@ -59,7 +59,7 @@ components:
type: string
enum: ["a", "b", "ab", "o"]
description: "Target's blood type."
example: "a"
example: "ab"
today:
allOf:
- $ref: "#/components/schemas/YearMonthDay"
Expand All @@ -75,15 +75,15 @@ components:
name:
type: string
description: "Result prefecture's name."
example: 福井県
example: "富山県"
brief:
type: string
description: "Result prefecture's brief instruction."
example: "福井県(ふくいけん)は、日本の中部地方に位置する県。県庁所在地は福井市。\n北陸地方で最も人口が少ない県である\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』"
example: "富山県(とやまけん)は、日本の中部地方に位置する県。県庁所在地は富山市。\n中部地方の日本海側、新潟県を含めた場合の北陸地方のほぼ中央にある\n※出典: フリー百科事典『ウィキペディア(Wikipedia)』"
capital:
type: string
description: "Result prefecture's capital city."
example: 福井市
example: "富山市"
citizen_day:
allOf:
- $ref: "#/components/schemas/MonthDay"
Expand All @@ -96,7 +96,7 @@ components:
type: string
format: url
description: "Result prefecture's logo's URL."
example: "https://japan-map.com/wp-content/uploads/fukui.png"
example: "https://japan-map.com/wp-content/uploads/toyama.png"
required:
- name
- brief
Expand All @@ -110,17 +110,17 @@ components:
type: integer
format: int32
description: "Year number"
example: 2004
example: 2000
month:
type: integer
format: int32
description: "Month number"
example: 9
example: 1
day:
type: integer
format: int32
description: "Day number"
example: 23
example: 27
required:
- year
- month
Expand All @@ -132,12 +132,12 @@ components:
type: integer
format: int32
description: "Month number"
example: 2
example: 5
day:
type: integer
format: int32
description: "Day number"
example: 7
example: 9
required:
- month
- day

0 comments on commit e7de04f

Please sign in to comment.