Skip to content

Commit

Permalink
Merge pull request #60 from ggtakec/fix_ghp
Browse files Browse the repository at this point in the history
[gh-pages] Refixed api_tenant(ja).md and fixed api_extdata(ja).md for liquid template
  • Loading branch information
ggtakec authored Jul 7, 2023
2 parents e7795c0 + da57668 commit f086d7d
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 165 deletions.
4 changes: 3 additions & 1 deletion api_extdata.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ next_url:
next_string:
---

# EXTDATA API
# USERDATA API
This page describes K2HR3 EXTRA DATA API.

This API is an API that expands the template defined by the user and returns the expanded data.
Expand Down Expand Up @@ -88,6 +88,7 @@ The template expanded data will be returned. Note that the URL path must contain

##### Example: template
```
{% raw %}
#/bin/sh
ROLE_NAME={{= %K2HR3_ROLE_NAME% }}
Expand All @@ -103,6 +104,7 @@ echo "K2HR3_API_HOST: ${K2HR3_API_HOST}"
echo "ERROR_MSG: ${ERROR_MSG}"
exit 0
{% endraw %}
```

##### Example: response
Expand Down
2 changes: 2 additions & 0 deletions api_extdataja.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Gzip圧縮された場合とTextの場合は共に内容は同じです。(Gzi

##### 例:テンプレート
```
{% raw %}
#/bin/sh
ROLE_NAME={{= %K2HR3_ROLE_NAME% }}
Expand All @@ -106,6 +107,7 @@ echo "K2HR3_API_HOST: ${K2HR3_API_HOST}"
echo "ERROR_MSG: ${ERROR_MSG}"
exit 0
{% endraw %}
```

##### 例:レスポンス
Expand Down
28 changes: 14 additions & 14 deletions api_tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ It is necessary to specify the USER name registered in the K2HR3 system, and if
And the USER name can not set as [YRN](detail_variousen.html) full path.

### Response status
201¿40x
201, 40x

### Response Body(JSON)
```
Expand All @@ -87,7 +87,7 @@ All TENANT APIs require an Unscoped User Token or a Scoped User Token.
If a Scoped User Token is specified, the tenant indicated by that token will be ignored and only the USER information will be used as with the Unscoped User Token.

### Endpoint(URL)
http(s)://_API SERVER:PORT_/v1/tenant{?name=...}
http(s)://_API SERVER:PORT_/v1/tenant?name=_tenant name_&...

### Header
```
Expand All @@ -112,7 +112,7 @@ It is necessary to specify the USER name registered in the K2HR3 system, and if
And the USER name can not set as [YRN](detail_variousen.html) full path.

### Response status
201¿40x
201, 40x

### Response Body(JSON)
```
Expand Down Expand Up @@ -174,7 +174,7 @@ It is necessary to specify the USER name registered in the K2HR3 system, and if
And the USER name can not set as [YRN](detail_variousen.html) full path.

### Response status
201¿40x
201, 40x

### Response Body(JSON)
```
Expand All @@ -196,7 +196,7 @@ All TENANT APIs require an Unscoped User Token or a Scoped User Token.
If a Scoped User Token is specified, the tenant indicated by that token will be ignored and only the USER information will be used as with the Unscoped User Token.

### Endpoint(URL)
http(s)://_API SERVER:PORT_/v1/tenant/_tenant name_{?id=...}
http(s)://_API SERVER:PORT_/v1/tenant/_tenant name_?id=_tenant id_

- tenant name
Specify the K2HR3 cluster Local Tenant(TENANT) name.
Expand Down Expand Up @@ -226,7 +226,7 @@ It is necessary to specify the USER name registered in the K2HR3 system, and if
And the USER name can not set as [YRN](detail_variousen.html) full path.

### Response status
201¿40x
201, 40x

### Response Body(JSON)
```
Expand All @@ -249,7 +249,7 @@ All TENANT APIs require an Unscoped User Token or a Scoped User Token.
If a Scoped User Token is specified, the tenant indicated by that token will be ignored and only the USER information will be used as with the Unscoped User Token.

### Endpoint(URL)
http(s)://_API SERVER:PORT_/v1/tenant{?expand=true/false}
http(s)://_API SERVER:PORT_/v1/tenant?expand=_true or false_

### Header
```
Expand All @@ -264,10 +264,10 @@ Specify _true_ as this value to expand.
When specify _true_, it contains all information for each TENANT.

### Response status
200¿40x
200, 40x

### Response Body(JSON)
- Expanding¿expand=true¿
- Expanding (expand=true)
```
{
result: <true/false>
Expand All @@ -284,7 +284,7 @@ When specify _true_, it contains all information for each TENANT.
]
}
```
- Not expanding¿expand=false¿
- Not expanding(expand=false)
```
{
result: <true/false>
Expand Down Expand Up @@ -334,7 +334,7 @@ x-auth-token: U=<Scoped User Token>
```

### Response status
200¿40x
200, 40x

### Response Body(JSON)
```
Expand Down Expand Up @@ -388,7 +388,7 @@ x-auth-token: U=<Scoped User Token>
```

### Response status
204¿40x
204, 40x

### Response Body(JSON)
Empty
Expand All @@ -403,7 +403,7 @@ All TENANT APIs require an Unscoped User Token or a Scoped User Token.
If a Scoped User Token is specified, the tenant indicated by that token will be ignored and only the USER information will be used as with the Unscoped User Token.

### Endpoint(URL)
http(s)://_API SERVER:PORT_/v1/tenant/_tenant name_{?id=<tenant id>}
http(s)://_API SERVER:PORT_/v1/tenant/_tenant name_?id=_tenant id_

- tenant name
Specify the K2HR3 cluster Local Tenant(TENANT) name.
Expand All @@ -422,7 +422,7 @@ Specify the _ID_ of the K2HR3 cluster Local Tenant(TENANT).
If the K2HR3 Cluster Local Tenant(TENANT) name and this _ID_ value do not match, it will be failure.

### Response status
204¿40x
204, 40x

### Response Body(JSON)
Empty
Loading

0 comments on commit f086d7d

Please sign in to comment.