1.7.46. Service drop (up)
1.7.46.1. Methods
1.7.46.1.1. errors
如果在提交失败后呈现此模型,这将返回发生的错误。
{{ service.errors.name | inline_errors }}
1.7.46.1.2. name
返回服务名称
1.7.46.1.3. system_name
返回服务的系统名称
{% case service.system_name %} {% when 'api' %} API is our newest service! {% when 'old' %} Unfortunately we dont allow more signups to our old service. {% endcase %}
1.7.46.1.4. description
返回服务的描述
1.7.46.1.5. subscribed?
返回服务是否订阅
{% if service.subscribed? %} <p>You already subscribed this service.</p> {% endif %}
1.7.46.1.6. subscription
如果当前登录的用户订阅此服务,则返回订阅(ServiceContract drop
)。
{% if service.subscription %} Your applications for service {{ service.name }} are: {% for app in service.subscription.applications %} {{ app.name }}<br/> {% endfor %} {% else %} <p>You are not subscribed to this.</p> {% endif %}
1.7.46.1.7. subscribable?
1.7.46.1.8. subscribe_url
1.7.46.1.9. application_plans
返回服务的 published 应用计划
{% for service in model.services %} <h4>{{ service.name }} application plans:</h4> <dl> {% for application_plan in service.application_plans %} <dt>{{ application_plan.name }}</dt> <dd>{{ application_plan.system_name }}</dd> {% endfor %} </dl> {% endfor %}
1.7.46.1.10. service_plans
返回服务的 published 服务计划
<p>We offer following service plans:</p> <dl> {% for service in model.services %} {% for service_plan in service.service_plans %} <dt>{{ service_plan.name }}</dt> <dd>{{ service_plan.system_name }}</dd> {% endfor %} {% endfor %} </dl>
1.7.46.1.11. plans
返回服务的应用计划
1.7.46.1.12. 功能
返回服务的可见功能
{% if service.features.size > 0 %} <p>{{ service.name }} has following features:</p> <ul> {% for feature in service.features %} <li>{{ feature.name }}</li> {% endfor %} </ul> {% else %} <p>Unfortunately, {{ service.name }} currently has no features.</p> {% endif %}
1.7.46.1.13. apps_identifier
根据设置的身份验证模式,返回用于 OAuth 身份验证的 'ID'、'API 密钥' 或 'Client ID'。
{{ service.application_key_name }}
1.7.46.1.14. backend_version
1.7.46.1.15. referencerer_filters_required?
1.7.46.1.16. metrics
返回服务指标
<p>On {{ service.name }} we measure following metrics:</p> <ul> {% for metric in service.metrics %} <li>{{ metric.name }}</li> {% endfor %} </ul>
1.7.46.1.17. support_email
支持服务电子邮件