mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
71 lines
2.1 KiB
Vue
71 lines
2.1 KiB
Vue
<template>
|
|
<div class="api-docs__item">
|
|
<div class="api-docs__left">
|
|
<h3
|
|
:id="'section-password-field-' + field.id + '-authentication'"
|
|
class="api-docs__heading-3"
|
|
>
|
|
{{
|
|
$t('apiDocsPasswordFieldAuthentication.title', { name: field.name })
|
|
}}
|
|
</h3>
|
|
<MarkdownIt
|
|
class="api-docs__content"
|
|
:content="
|
|
$t('apiDocsPasswordFieldAuthentication.description', {
|
|
name: field.name,
|
|
})
|
|
"
|
|
/>
|
|
<h4 class="api-docs__heading-4">{{ $t('apiDocs.requestBodySchema') }}</h4>
|
|
<ul class="api-docs__parameters">
|
|
<APIDocsParameter name="field_id" :optional="false" type="integer">
|
|
{{ $t('apiDocsPasswordFieldAuthentication.fieldId') }}
|
|
</APIDocsParameter>
|
|
<APIDocsParameter name="row_id" :optional="false" type="integer">
|
|
{{ $t('apiDocsPasswordFieldAuthentication.rowId') }}
|
|
</APIDocsParameter>
|
|
<APIDocsParameter name="password" :optional="false" type="string">
|
|
{{ $t('apiDocsPasswordFieldAuthentication.password') }}
|
|
</APIDocsParameter>
|
|
</ul>
|
|
</div>
|
|
<div class="api-docs__right">
|
|
<APIDocsExample
|
|
:value="value"
|
|
type="POST"
|
|
:url="
|
|
$config.public.publicBackendUrl +
|
|
`/api/database/fields/password-authentication/`
|
|
"
|
|
:request="{ field_id: 1, row_id: 1, password: 'password' }"
|
|
:response="{ is_correct: true }"
|
|
@input="$emit('input', $event)"
|
|
></APIDocsExample>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import APIDocsExample from '@baserow/modules/database/components/docs/APIDocsExample'
|
|
import APIDocsParameter from '@baserow/modules/database/components/docs/APIDocsParameter'
|
|
|
|
export default {
|
|
name: 'APIDocsTablePasswordFieldAuthentication',
|
|
components: {
|
|
APIDocsParameter,
|
|
APIDocsExample,
|
|
},
|
|
props: {
|
|
value: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
table: { type: Object, required: true },
|
|
field: { type: Object, required: true },
|
|
},
|
|
emits: ['input'],
|
|
methods: {},
|
|
}
|
|
</script>
|