Skip to content

Commit

Permalink
fix account_profile api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Nlhmmh committed Feb 20, 2024
1 parent 84a2b5e commit 7197250
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
8 changes: 4 additions & 4 deletions handler/handler.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions swagger/paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,7 @@
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/AccountProfile"
$ref: "#/components/schemas/AccountProfile"
post:
tags:
- app
Expand Down
16 changes: 4 additions & 12 deletions swagger/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1692,31 +1692,23 @@ <h4 class="field-label">200</h4>

<h3 class="field-label">Return type</h3>
<div class="return-type">
array[<a href="#AccountProfile">AccountProfile</a>]
<a href="#AccountProfile">AccountProfile</a>

</div>

<!--Todo: process Response Object and its headers, schema, examples -->

<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>[ {
"birthday" : "1990-01-01T00:00:00.000+00:00",
"account_id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"gender" : "male",
"updated_at" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "Wallet",
"created_at" : "2000-01-23T04:56:07.000+00:00",
"first_name" : "John"
}, {
<pre class="example"><code>{
"birthday" : "1990-01-01T00:00:00.000+00:00",
"account_id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"gender" : "male",
"updated_at" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "Wallet",
"created_at" : "2000-01-23T04:56:07.000+00:00",
"first_name" : "John"
} ]</code></pre>
}</code></pre>

<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
Expand All @@ -1728,7 +1720,7 @@ <h3 class="field-label">Produces</h3>
<h3 class="field-label">Responses</h3>
<h4 class="field-label">200</h4>
OK

<a href="#AccountProfile">AccountProfile</a>
</div> <!-- method -->
<hr/>
<div class="method"><a name="apiProfilePost"></a>
Expand Down
4 changes: 1 addition & 3 deletions swagger/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,7 @@ paths:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AccountProfile'
$ref: '#/components/schemas/AccountProfile'
post:
tags:
- app
Expand Down

0 comments on commit 7197250

Please sign in to comment.