[api] avoid confusion with the "birthday" field

This commit is contained in:
Andrea 2022-03-05 11:57:46 +01:00
parent 02d5dddeda
commit 3ee186796f
1 changed files with 7 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<T>{{group.header}}</T> <T>{{group.header}}</T>
</h3> </h3>
<ul> <ul>
<li v-for="([method, path, queryString], endpoint) in group.endpoints" class="my-3"> <li v-for="([method, path, queryString, notes], endpoint) in group.endpoints" class="my-3">
<p> <p>
<span class="badge bg-primary text-white">{{method}}</span> <span class="badge bg-primary text-white">{{method}}</span>
<code>{{path}}</code> <code>{{path}}</code>
@ -20,6 +20,11 @@
<T>api.example</T> <T>api.example</T>
</a> </a>
</p> </p>
<ul v-if="notes" class="small">
<li v-for="note in notes">
<span v-html="note"></span>
</li>
</ul>
<p v-if="queryString" class="mb-0 small"> <p v-if="queryString" class="mb-0 small">
<T>api.query</T><T>quotation.colon</T> <T>api.query</T><T>quotation.colon</T>
</p> </p>
@ -88,7 +93,7 @@
header: 'profile.header', header: 'profile.header',
icon: 'id-card', icon: 'id-card',
endpoints: { endpoints: {
profile_get: ['GET', '/api/profile/get/{username}'], profile_get: ['GET', '/api/profile/get/{username}', undefined, ['Note that the <code>birthday</code> field will only be available when querying your own account; otherwise only the calucaled <code>age</code> might be available (if the person has filled out their birthday)']],
}, },
}, { }, {
enabled: this.config.calendar.enabled, enabled: this.config.calendar.enabled,