def get(self, link_id):
    'Get link resource.\n\n        .. :quickref: Link collection.\n\n        **Example request**:\n\n        .. sourcecode:: http\n\n            GET /links/1 HTTP/1.1\n            Host: example.com\n            Accept: application/json, text/javascript\n\n        **Example response**:\n\n        .. sourcecode:: http\n\n            HTTP/1.1 200 OK\n            Vary: Accept\n            Content-Type: text/javascript\n\n            {\n                "data": {\n                    "clicks": 0,\n                    "created": "2018-08-21T19:13:34.157470+00:00",\n                    "short_link": "b",\n                    "updated": null,\n                    "url": "https://www.google.com"\n                },\n                "id": 1,\n                "type": "links",\n                "url": "/links"\n            }\n\n        :jsonparam string url: url for which to create short link.\n        :reqheader Accept: The response content type depends on\n            :mailheader:`Accept` header\n        :reqheader Authorization: Optional authentication token.\n        :resheader Content-Type: this depends on :mailheader:`Accept`\n            header of request\n        :statuscode 201: Link created\n        '
    link = Link.query.filter_by(id=link_id).first()
    (link_data, errors) = self.schema.dump(link)
    if errors:
        current_app.logger.warning(errors)
    response_out = {'id': link.id, 'data': link_data, 'url': '/links', 'type': 'link'}
    return (response_out, 200)
Get link resource.

.. :quickref: Link collection.

**Example request**:

.. sourcecode:: http

    GET /links/1 HTTP/1.1
    Host: example.com
    Accept: application/json, text/javascript

**Example response**:

.. sourcecode:: http

    HTTP/1.1 200 OK
    Vary: Accept
    Content-Type: text/javascript

    {
        "data": {
            "clicks": 0,
            "created": "2018-08-21T19:13:34.157470+00:00",
            "short_link": "b",
            "updated": null,
            "url": "https://www.google.com"
        },
        "id": 1,
        "type": "links",
        "url": "/links"
    }

:jsonparam string url: url for which to create short link.
:reqheader Accept: The response content type depends on
    :mailheader:`Accept` header
:reqheader Authorization: Optional authentication token.
:resheader Content-Type: this depends on :mailheader:`Accept`
    header of request
:statuscode 201: Link created
def get(self, link_id):
    'Get link resource.\n\n        .. :quickref: Link collection.\n\n        **Example request**:\n\n        .. sourcecode:: http\n\n            GET /links/1 HTTP/1.1\n            Host: example.com\n            Accept: application/json, text/javascript\n\n        **Example response**:\n\n        .. sourcecode:: http\n\n            HTTP/1.1 200 OK\n            Vary: Accept\n            Content-Type: text/javascript\n\n            {\n                "data": {\n                    "clicks": 0,\n                    "created": "2018-08-21T19:13:34.157470+00:00",\n                    "short_link": "b",\n                    "updated": null,\n                    "url": "https://www.google.com"\n                },\n                "id": 1,\n                "type": "links",\n                "url": "/links"\n            }\n\n        :jsonparam string url: url for which to create short link.\n        :reqheader Accept: The response content type depends on\n            :mailheader:`Accept` header\n        :reqheader Authorization: Optional authentication token.\n        :resheader Content-Type: this depends on :mailheader:`Accept`\n            header of request\n        :statuscode 201: Link created\n        '
    link = Link.query.filter_by(id=link_id).first()
    (link_data, errors) = self.schema.dump(link)
    if errors:
        current_app.logger.warning(errors)
    response_out = {'id': link.id, 'data': link_data, 'url': '/links', 'type': 'link'}
    return (response_out, 200)