Skip to content

Commit

Permalink
feat(application-api): add EvaluateSubscriptionConsent operation (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfrk authored May 21, 2024
1 parent 44a08a9 commit 351f20e
Show file tree
Hide file tree
Showing 12 changed files with 633 additions and 125 deletions.
2 changes: 1 addition & 1 deletion docs/api/application-api/application-api.info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ import Export from "@theme/ApiDemoPanel/Export";

tapio's Application API enables third party applications to interact with tapio on behalf of their users.

<div style={{"marginBottom":"2rem"}}><h2 id={"authentication"} style={{"marginBottom":"1rem"}}>Authentication</h2><SchemaTabs className={"openapi-tabs__security-schemes"}><TabItem label={"OAuth 2.0: oauth2"} value={"oauth2"}><div><table><tbody><tr><th>Security Scheme Type:</th><td>oauth2</td></tr><tr><th>OAuth Flow (implicit):</th><td><p>Authorization URL: https://login.mytapio.one/32896ed7-d559-401b-85cf-167143d61be0/B2C_1A_Tapio_Signin/oauth2/v2.0/authorize</p><span>Scopes:</span><ul><li>openid: openid</li><li>https://tapiousers.onmicrosoft.com/7ee7f1b0-d030-4d20-9691-9752bdb44315/Consent.ReadWrite: read and write consent</li></ul></td></tr></tbody></table></div></TabItem></SchemaTabs></div><div style={{"display":"flex","flexDirection":"column","marginBottom":"var(--ifm-paragraph-margin-bottom)"}}><h3 style={{"marginBottom":"0.25rem"}}>Contact</h3><span>tapio GmbH: <a href={"mailto:[email protected]"}>[email protected]</a></span><span>URL: <a href={"https://tapio.one"}>https://tapio.one</a></span></div><div style={{"marginBottom":"var(--ifm-paragraph-margin-bottom)"}}><h3 style={{"marginBottom":"0.25rem"}}>Terms of Service</h3><a href={"https://tapio.one/en/tapio-terms-of-use"}>https://tapio.one/en/tapio-terms-of-use</a></div>
<div style={{"marginBottom":"2rem"}}><h2 id={"authentication"} style={{"marginBottom":"1rem"}}>Authentication</h2><SchemaTabs className={"openapi-tabs__security-schemes"}><TabItem label={"OAuth 2.0: oauth2"} value={"oauth2"}><div><table><tbody><tr><th>Security Scheme Type:</th><td>oauth2</td></tr><tr><th>OAuth Flow (implicit):</th><td><p>Authorization URL: https://login.mytapio.one/32896ed7-d559-401b-85cf-167143d61be0/B2C_1A_Tapio_Signin/oauth2/v2.0/authorize</p><span>Scopes:</span><ul><li>openid: openid</li><li>https://tapiousers.onmicrosoft.com/7ee7f1b0-d030-4d20-9691-9752bdb44315/Consent.ReadWrite: read and write consent</li></ul></td></tr><tr><th>OAuth Flow (clientCredentials):</th><td><p>Token URL: https://login.microsoftonline.com/tapiousers.onmicrosoft.com/oauth2/token</p><span>Scopes:</span><ul><li>https://tapiousers.onmicrosoft.com/7ee7f1b0-d030-4d20-9691-9752bdb44315: Read and write consent</li></ul></td></tr></tbody></table></div></TabItem></SchemaTabs></div><div style={{"display":"flex","flexDirection":"column","marginBottom":"var(--ifm-paragraph-margin-bottom)"}}><h3 style={{"marginBottom":"0.25rem"}}>Contact</h3><span>tapio GmbH: <a href={"mailto:[email protected]"}>[email protected]</a></span><span>URL: <a href={"https://tapio.one"}>https://tapio.one</a></span></div><div style={{"marginBottom":"var(--ifm-paragraph-margin-bottom)"}}><h3 style={{"marginBottom":"0.25rem"}}>Terms of Service</h3><a href={"https://tapio.one/en/tapio-terms-of-use"}>https://tapio.one/en/tapio-terms-of-use</a></div>

44 changes: 10 additions & 34 deletions docs/api/application-api/evaluate-consent.api.mdx

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions docs/api/application-api/evaluate-subscription-consent.api.mdx

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/api/application-api/get-consent-subjects.api.mdx

Large diffs are not rendered by default.

45 changes: 10 additions & 35 deletions docs/api/application-api/grant-consent.api.mdx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/application-api/sidebar.js

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

16 changes: 16 additions & 0 deletions docs/api/application-api/subscription.tag.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
id: subscription
title: "Subscription"
description: "Subscription"
custom_edit_url: null
---



```mdx-code-block
import DocCardList from '@theme/DocCardList';
import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
<DocCardList items={useCurrentSidebarCategory().items}/>
```

6 changes: 3 additions & 3 deletions docs/api/gds/get-application-token-profile.api.mdx

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/api/gds/get-subscription-overview.api.mdx

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/api/gds/get-user-profile.api.mdx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/gds/onboard-cloud-connector.api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Onboarding information of the cloud connector

Successful

</div><div><MimeTabs schemaType={"response"}><TabItem label={"text/plain"} value={"text/plain"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"activationCode"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The 12-digit activation code for the machine onboarding","nullable":true}}></SchemaItem><SchemaItem collapsible={false} name={"expiry"} required={false} schemaName={"date-time"} qualifierMessage={undefined} schema={{"type":"string","description":"Expiry date","format":"date-time"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"activationCode\": \"string\",\n \"expiry\": \"2024-02-19T14:06:46.901Z\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem><TabItem label={"application/json"} value={"application/json"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"activationCode"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The 12-digit activation code for the machine onboarding","nullable":true}}></SchemaItem><SchemaItem collapsible={false} name={"expiry"} required={false} schemaName={"date-time"} qualifierMessage={undefined} schema={{"type":"string","description":"Expiry date","format":"date-time"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"activationCode\": \"string\",\n \"expiry\": \"2024-02-19T14:06:46.901Z\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem><TabItem label={"text/json"} value={"text/json"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"activationCode"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The 12-digit activation code for the machine onboarding","nullable":true}}></SchemaItem><SchemaItem collapsible={false} name={"expiry"} required={false} schemaName={"date-time"} qualifierMessage={undefined} schema={{"type":"string","description":"Expiry date","format":"date-time"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"activationCode\": \"string\",\n \"expiry\": \"2024-02-19T14:06:46.901Z\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>
</div><div><MimeTabs schemaType={"response"}><TabItem label={"text/plain"} value={"text/plain"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"activationCode"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The 12-digit activation code for the machine onboarding","nullable":true}}></SchemaItem><SchemaItem collapsible={false} name={"expiry"} required={false} schemaName={"date-time"} qualifierMessage={undefined} schema={{"type":"string","description":"Expiry date","format":"date-time"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"activationCode\": \"string\",\n \"expiry\": \"2024-05-21T11:06:43.561Z\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem><TabItem label={"application/json"} value={"application/json"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"activationCode"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The 12-digit activation code for the machine onboarding","nullable":true}}></SchemaItem><SchemaItem collapsible={false} name={"expiry"} required={false} schemaName={"date-time"} qualifierMessage={undefined} schema={{"type":"string","description":"Expiry date","format":"date-time"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"activationCode\": \"string\",\n \"expiry\": \"2024-05-21T11:06:43.561Z\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem><TabItem label={"text/json"} value={"text/json"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"activationCode"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The 12-digit activation code for the machine onboarding","nullable":true}}></SchemaItem><SchemaItem collapsible={false} name={"expiry"} required={false} schemaName={"date-time"} qualifierMessage={undefined} schema={{"type":"string","description":"Expiry date","format":"date-time"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"activationCode\": \"string\",\n \"expiry\": \"2024-05-21T11:06:43.562Z\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>

Bad request

Expand Down
Loading

0 comments on commit 351f20e

Please sign in to comment.