| 1 | var mockedApiResponse = {}; |
| 2 | |
| 3 | mockedApiResponse.Schema = {"namespace":"wp\/v2","routes":{"\/wp\/v2":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"wp\/v2"},"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2"}},"\/wp\/v2\/posts":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}},"categories":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the categories taxonomy.","type":"array","items":{"type":"integer"}},"categories_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the categories taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the tags taxonomy.","type":"array","items":{"type":"integer"}},"tags_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the tags taxonomy.","type":"array","items":{"type":"integer"}},"sticky":{"required":false,"description":"Limit result set to items that are sticky.","type":"boolean"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard","aside","image","video","quote","link","gallery","audio"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/posts"}},"\/wp\/v2\/posts\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard","aside","image","video","quote","link","gallery","audio"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/posts\/(?P<parent>[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/posts\/(?P<parent>[\\d]+)\/revisions\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as revisions do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/pages":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"menu_order":{"required":false,"description":"Limit result set to posts with a specific menu_order value.","type":"integer"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug","menu_order"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/pages"}},"\/wp\/v2\/pages\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/pages\/(?P<parent>[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/pages\/(?P<parent>[\\d]+)\/revisions\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as revisions do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/media":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"inherit","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["inherit","private","trash"],"type":"string"}},"media_type":{"required":false,"enum":["image","video","text","application","audio"],"description":"Limit result set to attachments of a particular media type.","type":"string"},"mime_type":{"required":false,"description":"Limit result set to attachments of a particular MIME type.","type":"string"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"alt_text":{"required":false,"description":"Alternative text to display when attachment is not displayed.","type":"string"},"caption":{"required":false,"description":"The attachment caption.","type":"object"},"description":{"required":false,"description":"The attachment description.","type":"object"},"post":{"required":false,"description":"The ID for the associated post of the attachment.","type":"integer"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/media"}},"\/wp\/v2\/media\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"alt_text":{"required":false,"description":"Alternative text to display when attachment is not displayed.","type":"string"},"caption":{"required":false,"description":"The attachment caption.","type":"object"},"description":{"required":false,"description":"The attachment description.","type":"object"},"post":{"required":false,"description":"The ID for the associated post of the attachment.","type":"integer"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/types":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/types"}},"\/wp\/v2\/types\/(?P<type>[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/statuses":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/statuses"}},"\/wp\/v2\/statuses\/(?P<status>[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/taxonomies":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"type":{"required":false,"description":"Limit results to taxonomies associated with a specific post type.","type":"string"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/taxonomies"}},"\/wp\/v2\/taxonomies\/(?P<taxonomy>[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/categories":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"parent":{"required":false,"description":"Limit result set to terms assigned to a specific parent.","type":"integer"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with a specific slug.","type":"string"}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/categories"}},"\/wp\/v2\/categories\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/tags":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with a specific slug.","type":"string"}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/tags"}},"\/wp\/v2\/tags\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/users":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","registered_date","slug","email","url"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to users with a specific slug.","type":"string"},"roles":{"required":false,"description":"Limit result set to users matching at least one specific role provided. Accepts csv list or single role.","type":"array","items":{"type":"string"}}}},{"methods":["POST"],"args":{"username":{"required":true,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":true,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","he_IL"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":true,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/users"}},"\/wp\/v2\/users\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{"required":false,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":false,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","he_IL"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":false,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as users do not support trashing.","type":"boolean"},"reassign":{"required":true,"description":"Reassign the deleted user's posts and links to this user ID.","type":"integer"}}}]},"\/wp\/v2\/users\/me":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{"required":false,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":false,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","he_IL"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":false,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as users do not support trashing.","type":"boolean"},"reassign":{"required":true,"description":"Reassign the deleted user's posts and links to this user ID.","type":"integer"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/users\/me"}},"\/wp\/v2\/comments":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to comments published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"description":"Limit result set to comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"description":"Ensure result set excludes comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"}},"author_email":{"required":false,"description":"Limit result set to that from a specific author email. Requires authorization.","type":"string"},"before":{"required":false,"description":"Limit response to comments published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date_gmt","enum":["date","date_gmt","id","include","post","parent","type"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to comments of specific parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific parent IDs.","type":"array","items":{"type":"integer"}},"post":{"required":false,"default":[],"description":"Limit result set to comments assigned to specific post IDs.","type":"array","items":{"type":"integer"}},"status":{"required":false,"default":"approve","description":"Limit result set to comments assigned a specific status. Requires authorization.","type":"string"},"type":{"required":false,"default":"comment","description":"Limit result set to comments assigned a specific type. Requires authorization.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST"],"args":{"author":{"required":false,"description":"The ID of the user object, if author was a user.","type":"integer"},"author_email":{"required":false,"description":"Email address for the object author.","type":"string"},"author_ip":{"required":false,"description":"IP address for the object author.","type":"string"},"author_name":{"required":false,"description":"Display name for the object author.","type":"string"},"author_url":{"required":false,"description":"URL for the object author.","type":"string"},"author_user_agent":{"required":false,"description":"User agent for the object author.","type":"string"},"content":{"required":false,"description":"The content for the object.","type":"object"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"parent":{"required":false,"default":0,"description":"The ID for the parent of the object.","type":"integer"},"post":{"required":false,"default":0,"description":"The ID of the associated post object.","type":"integer"},"status":{"required":false,"description":"State of the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/comments"}},"\/wp\/v2\/comments\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"author":{"required":false,"description":"The ID of the user object, if author was a user.","type":"integer"},"author_email":{"required":false,"description":"Email address for the object author.","type":"string"},"author_ip":{"required":false,"description":"IP address for the object author.","type":"string"},"author_name":{"required":false,"description":"Display name for the object author.","type":"string"},"author_url":{"required":false,"description":"URL for the object author.","type":"string"},"author_user_agent":{"required":false,"description":"User agent for the object author.","type":"string"},"content":{"required":false,"description":"The content for the object.","type":"object"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"post":{"required":false,"description":"The ID of the associated post object.","type":"integer"},"status":{"required":false,"description":"State of the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}}]},"\/wp\/v2\/settings":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"title":{"required":false,"description":"Site title.","type":"string"},"description":{"required":false,"description":"Site tagline.","type":"string"},"url":{"required":false,"description":"Site URL.","type":"string"},"email":{"required":false,"description":"This address is used for admin purposes, like new user notification.","type":"string"},"timezone":{"required":false,"description":"A city in the same timezone as you.","type":"string"},"date_format":{"required":false,"description":"A date format for all date strings.","type":"string"},"time_format":{"required":false,"description":"A time format for all time strings.","type":"string"},"start_of_week":{"required":false,"description":"A day number of the week that the week should start on.","type":"integer"},"language":{"required":false,"description":"WordPress locale code.","type":"string"},"use_smilies":{"required":false,"description":"Convert emoticons like :-) and :-P to graphics on display.","type":"boolean"},"default_category":{"required":false,"description":"Default post category.","type":"integer"},"default_post_format":{"required":false,"description":"Default post format.","type":"string"},"posts_per_page":{"required":false,"description":"Blog pages show at most.","type":"integer"},"default_ping_status":{"required":false,"enum":["open","closed"],"description":"Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.","type":"string"},"default_comment_status":{"required":false,"enum":["open","closed"],"description":"Allow people to post comments on new articles.","type":"string"}}}],"_links":{"self":"http:\/\/wpdev.localhost\/wp-json\/wp\/v2\/settings"}}},"_links":{"up":[{"href":"http:\/\/wpdev.localhost\/wp-json\/"}]}}; |
| 4 | |
| 5 | mockedApiResponse.CategoriesCollection=[{"id":10,"count":357,"description":"","link":"http://wpdev.localhost/category/pod/a-team/","name":"A-Team","slug":"a-team","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/10"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=10"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":8,"count":121,"description":"","link":"http://wpdev.localhost/category/pod/accounts/","name":"Accounts","slug":"accounts","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/8"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=8"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":16,"count":281,"description":"","link":"http://wpdev.localhost/category/pod/buster-pod/","name":"Buster Pod","slug":"buster-pod","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/16"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=16"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":196,"count":0,"description":"","link":"http://wpdev.localhost/category/category-196/","name":"Category 196","slug":"category-196","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/196"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=196"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":197,"count":0,"description":"","link":"http://wpdev.localhost/category/category-197/","name":"Category 197","slug":"category-197","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/197"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=197"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":198,"count":0,"description":"","link":"http://wpdev.localhost/category/category-198/","name":"Category 198","slug":"category-198","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/198"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=198"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":199,"count":0,"description":"","link":"http://wpdev.localhost/category/category-199/","name":"Category 199","slug":"category-199","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/199"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=199"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":200,"count":0,"description":"","link":"http://wpdev.localhost/category/category-200/","name":"Category 200","slug":"category-200","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/200"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=200"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":201,"count":0,"description":"","link":"http://wpdev.localhost/category/category-201/","name":"Category 201","slug":"category-201","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/201"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=201"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":202,"count":0,"description":"","link":"http://wpdev.localhost/category/category-202/","name":"Category 202","slug":"category-202","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/202"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=202"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}]; |
| 6 | |
| 7 | mockedApiResponse.CommentsCollection=[{"id":1,"post":1,"parent":0,"author":0,"author_name":"A WordPress Commenter","author_url":"https://wordpress.org/","date":"2016-10-21T13:32:31","date_gmt":"2016-10-21T13:32:31","content":{"rendered":"<p>Hi, this is a comment.<br />\nTo get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.<br />\nCommenter avatars come from <a href=\"https://gravatar.com\">Gravatar</a>.</p>\n"},"link":"http://wpdev.localhost/hello-world/#comment-1","status":"approved","type":"comment","author_avatar_urls":{"24":"http://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=24&d=mm&r=g","48":"http://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=48&d=mm&r=g","96":"http://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/comments/1"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/comments"}],"up":[{"embeddable":true,"post_type":"post","href":"http://wpdev.localhost/wp-json/wp/v2/posts/1"}]}}]; |
| 8 | |
| 9 | mockedApiResponse.MediaCollection=[{"id":4578,"date":"2016-12-04T10:45:36","date_gmt":"2016-12-04T15:45:36","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"},"modified":"2016-12-04T10:45:36","modified_gmt":"2016-12-04T15:45:36","slug":"_mg_6317-4","type":"attachment","link":"http://wpdev.localhost/_mg_6317-4/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg 580w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, “The child Noaman Tamim Shibly — For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.”</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":580,"height":326,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","width":580,"height":326,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4578"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4578"}]}},{"id":4577,"date":"2016-12-04T10:45:35","date_gmt":"2016-12-04T15:45:35","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg"},"modified":"2016-12-04T10:45:35","modified_gmt":"2016-12-04T15:45:35","slug":"_mg_6317-3","type":"attachment","link":"http://wpdev.localhost/_mg_6317-3/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, “The child Noaman Tamim Shibly — For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.”</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":300,"height":169,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4577"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4577"}]}},{"id":4576,"date":"2016-12-04T10:45:35","date_gmt":"2016-12-04T15:45:35","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg"},"modified":"2016-12-04T10:45:35","modified_gmt":"2016-12-04T15:45:35","slug":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169","type":"attachment","link":"http://wpdev.localhost/_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169/","title":{"rendered":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300×169"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":""},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":300,"height":169,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4576"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4576"}]}},{"id":4575,"date":"2016-12-04T10:45:34","date_gmt":"2016-12-04T15:45:34","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg"},"modified":"2016-12-04T10:45:34","modified_gmt":"2016-12-04T15:45:34","slug":"_mg_6317-2","type":"attachment","link":"http://wpdev.localhost/_mg_6317-2/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg'><img width=\"270\" height=\"152\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, “The child Noaman Tamim Shibly — For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.”</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":270,"height":152,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152-150x150.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg","width":270,"height":152,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4575"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4575"}]}},{"id":4574,"date":"2016-12-04T10:45:34","date_gmt":"2016-12-04T15:45:34","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg"},"modified":"2016-12-04T10:45:34","modified_gmt":"2016-12-04T15:45:34","slug":"_mg_6317","type":"attachment","link":"http://wpdev.localhost/_mg_6317/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg'><img width=\"150\" height=\"150\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, “The child Noaman Tamim Shibly — For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.”</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":150,"height":150,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg","sizes":{},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4574"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4574"}]}},{"id":4573,"date":"2016-12-04T10:45:33","date_gmt":"2016-12-04T15:45:33","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg"},"modified":"2016-12-04T10:45:33","modified_gmt":"2016-12-04T15:45:33","slug":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150","type":"attachment","link":"http://wpdev.localhost/_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150/","title":{"rendered":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150×150"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg'><img width=\"150\" height=\"150\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":""},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":150,"height":150,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg","sizes":{},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4573"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4573"}]}},{"id":4572,"date":"2016-12-04T10:45:31","date_gmt":"2016-12-04T15:45:31","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg"},"modified":"2016-12-04T10:45:31","modified_gmt":"2016-12-04T15:45:31","slug":"_mg_5807-50-11","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-11/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-768x432.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-1024x576.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-624x351.jpg 624w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland — about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1997,"height":1123,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-768x432.jpg","width":768,"height":432,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-768x432.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-1024x576.jpg","width":1024,"height":576,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-1024x576.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-624x351.jpg","width":624,"height":351,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-624x351.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg","width":1997,"height":1123,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4572"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4572"}]}},{"id":4571,"date":"2016-12-04T10:45:30","date_gmt":"2016-12-04T15:45:30","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg"},"modified":"2016-12-04T10:45:30","modified_gmt":"2016-12-04T15:45:30","slug":"_mg_5807-50-10","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-10/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-768x432.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1024x576.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-624x351.jpg 624w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland — about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1997,"height":1123,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-768x432.jpg","width":768,"height":432,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-768x432.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1024x576.jpg","width":1024,"height":576,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1024x576.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-624x351.jpg","width":624,"height":351,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-624x351.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg","width":1997,"height":1123,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4571"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4571"}]}},{"id":4570,"date":"2016-12-04T10:45:28","date_gmt":"2016-12-04T15:45:28","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg"},"modified":"2016-12-04T10:45:28","modified_gmt":"2016-12-04T15:45:28","slug":"_mg_5807-50-9","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-9/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg'><img width=\"300\" height=\"135\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-768x346.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-1024x461.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-624x281.jpg 624w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg 1200w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland — about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1200,"height":540,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg","width":300,"height":135,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-768x346.jpg","width":768,"height":346,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-768x346.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-1024x461.jpg","width":1024,"height":461,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-1024x461.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-624x281.jpg","width":624,"height":281,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-624x281.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg","width":1200,"height":540,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4570"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4570"}]}},{"id":4569,"date":"2016-12-04T10:45:27","date_gmt":"2016-12-04T15:45:27","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg"},"modified":"2016-12-04T10:45:27","modified_gmt":"2016-12-04T15:45:27","slug":"_mg_5807-50-8","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-8/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg'><img width=\"300\" height=\"120\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-768x307.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-1024x410.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-624x250.jpg 624w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg 1200w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland — about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1200,"height":480,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg","width":300,"height":120,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-768x307.jpg","width":768,"height":307,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-768x307.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-1024x410.jpg","width":1024,"height":410,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-1024x410.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-624x250.jpg","width":624,"height":250,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-624x250.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg","width":1200,"height":480,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4569"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4569"}]}}]; |
| 10 | |
| 11 | mockedApiResponse.PagesCollection=[{"id":228,"date":"2016-10-24T17:34:59","date_gmt":"2016-10-24T17:34:59","guid":{"rendered":"http://wpdev.localhost/?page_id=228"},"modified":"2016-10-24T17:34:59","modified_gmt":"2016-10-24T17:34:59","slug":"buc","type":"page","link":"http://wpdev.localhost/buc/","title":{"rendered":"Buc"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=228"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=228"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":15,"date":"2016-10-24T12:41:16","date_gmt":"2016-10-24T12:41:16","guid":{"rendered":"http://wpdev.localhost/?page_id=15"},"modified":"2016-10-24T12:41:16","modified_gmt":"2016-10-24T12:41:16","slug":"moar-page","type":"page","link":"http://wpdev.localhost/moar-page/","title":{"rendered":"moar page"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/15"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=15"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/15/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=15"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":11,"date":"2016-10-24T12:39:04","date_gmt":"2016-10-24T12:39:04","guid":{"rendered":"http://wpdev.localhost/?page_id=11"},"modified":"2016-10-24T12:39:04","modified_gmt":"2016-10-24T12:39:04","slug":"another-page","type":"page","link":"http://wpdev.localhost/another-page/","title":{"rendered":"Another page"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/11"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=11"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/11/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=11"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2,"date":"2016-10-21T13:32:31","date_gmt":"2016-10-21T13:32:31","guid":{"rendered":"http://wpdev.localhost/?page_id=2"},"modified":"2016-10-21T13:32:31","modified_gmt":"2016-10-21T13:32:31","slug":"sample-page","type":"page","link":"http://wpdev.localhost/","title":{"rendered":"Sample Page"},"content":{"rendered":"<p>This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:</p>\n<blockquote><p>Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)</p></blockquote>\n<p>…or something like this:</p>\n<blockquote><p>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</p></blockquote>\n<p>As a new WordPress user, you should go to <a href=\"http://wpdev.localhost/wp-admin/\">your dashboard</a> to delete this page and create new pages for your content. Have fun!</p>\n","protected":false},"excerpt":{"rendered":"<p>This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: Hi there! I’m a bike messenger … </p>\n<p class=\"link-more\"><a href=\"http://wpdev.localhost/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> “Sample Page”</span></a></p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/2"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/2/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}]; |
| 12 | |
| 13 | mockedApiResponse.PostsCollection=[{"id":4492,"date":"2016-12-01T23:05:19","date_gmt":"2016-12-02T04:05:19","guid":{"rendered":"http://wpdev.localhost/?p=4492"},"modified":"2016-12-01T23:17:36","modified_gmt":"2016-12-02T04:17:36","slug":"test-2","type":"post","link":"http://wpdev.localhost/test-2/","title":{"rendered":"test"},"content":{"rendered":"<p>ok</p>\n","protected":false},"excerpt":{"rendered":"<p>ok</p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4492"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=4492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=4492"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=4492"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":3220,"date":"2016-11-22T14:25:50","date_gmt":"2016-11-22T19:25:50","guid":{"rendered":"http://wpdev.localhost/?p=3220"},"modified":"2016-11-22T14:25:50","modified_gmt":"2016-11-22T19:25:50","slug":"ok","type":"post","link":"http://wpdev.localhost/ok/","title":{"rendered":"Ok"},"content":{"rendered":"<p>Lorem ipsum dolor sit amet, minim molestie argumentum est at, pri legere torquatos instructior ex. Vis id odio atomorum oportere, quem modo fabellas sit at, dicat semper est ne. Apeirian detraxit pri eu. No solum accusam has. Ius ne harum mundi clita, eu pro tation audiam.</p>\n","protected":false},"excerpt":{"rendered":"<p>Lorem ipsum dolor sit amet, minim molestie argumentum est at, pri legere torquatos instructior ex. Vis id odio atomorum oportere, quem modo fabellas sit at, dicat semper est ne. Apeirian detraxit pri eu. No solum accusam has. Ius ne harum mundi clita, eu pro tation audiam.</p>\n","protected":false},"author":1,"featured_media":3091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3220"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=3220"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3220/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/media/3091"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=3220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=3220"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=3220"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":3221,"date":"2016-11-22T14:25:33","date_gmt":"2016-11-22T19:25:33","guid":{"rendered":"http://wpdev.localhost/?p=3221"},"modified":"2016-11-22T14:25:33","modified_gmt":"2016-11-22T19:25:33","slug":"this-is-fun","type":"post","link":"http://wpdev.localhost/this-is-fun/","title":{"rendered":"This is fun!"},"content":{"rendered":"<p>spanky</p>\n","protected":false},"excerpt":{"rendered":"<p>spanky</p>\n","protected":false},"author":1,"featured_media":3091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3221"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=3221"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3221/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/media/3091"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=3221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=3221"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=3221"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2418,"date":"2016-11-15T18:31:44","date_gmt":"2016-11-15T23:31:44","guid":{"rendered":"http://wpdev.localhost/?p=2418"},"modified":"2016-11-18T08:29:57","modified_gmt":"2016-11-18T13:29:57","slug":"test","type":"post","link":"http://wpdev.localhost/test/","title":{"rendered":"test"},"content":{"rendered":"<div id=\"h9639\" class=\"curiosity-module\" data-pym-src=\"//wamu.wearehearken.com/curiosity_modules/110\"></div>\n<div id=\"hg07n\" class=\"hkn-vote-module \" data-pym-src=\"//wamu.wearehearken.com/widgets/votes/new\"></div>\n<p><script src=\"//hearken-assets.s3.amazonaws.com/pym.min.js\"></script></p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":3087,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2418"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2418"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2418/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/media/3087"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=2418"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=2418"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2398,"date":"2016-11-09T16:27:41","date_gmt":"2016-11-09T21:27:41","guid":{"rendered":"http://wpdev.localhost/?p=2398"},"modified":"2016-11-09T16:49:43","modified_gmt":"2016-11-09T21:49:43","slug":"1-2","type":"post","link":"http://wpdev.localhost/1-2/","title":{"rendered":"8"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2398"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2398"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2398/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=2398"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=2398"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2393,"date":"2016-11-09T16:24:12","date_gmt":"2016-11-09T21:24:12","guid":{"rendered":"http://wpdev.localhost/?p=2393"},"modified":"2016-11-09T16:24:44","modified_gmt":"2016-11-09T21:24:44","slug":"test-1","type":"post","link":"http://wpdev.localhost/test-1/","title":{"rendered":"test 2"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2393"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2393"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2393/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=2393"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=2393"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":120,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=120"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-103","type":"post","link":"http://wpdev.localhost/post-103/","title":{"rendered":"Post 103"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/120"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=120"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/120/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=120"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":119,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=119"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-102","type":"post","link":"http://wpdev.localhost/post-102/","title":{"rendered":"Post 102"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/119"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=119"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/119/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=119"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":118,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=118"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-101","type":"post","link":"http://wpdev.localhost/post-101/","title":{"rendered":"Post 101"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/118"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=118"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/118/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=118"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":117,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=117"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-100","type":"post","link":"http://wpdev.localhost/post-100/","title":{"rendered":"Post 100"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/117"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=117"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/117/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=117"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}]; |
| 14 | |
| 15 | mockedApiResponse.StatusesCollection={"publish":{"name":"Published","public":true,"queryable":true,"slug":"publish","_links":{"archives":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}]}}}; |
| 16 | |
| 17 | mockedApiResponse.TagsCollection=[{"id":25,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-04/","name":"2016-01-04","slug":"2016-01-04","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/25"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=25"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":26,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-11/","name":"2016-01-11","slug":"2016-01-11","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/26"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=26"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":27,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-18/","name":"2016-01-18","slug":"2016-01-18","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/27"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=27"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":28,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-25/","name":"2016-01-25","slug":"2016-01-25","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/28"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=28"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":29,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-01/","name":"2016-02-01","slug":"2016-02-01","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/29"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=29"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":30,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-08/","name":"2016-02-08","slug":"2016-02-08","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/30"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=30"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":31,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-15/","name":"2016-02-15","slug":"2016-02-15","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/31"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=31"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":32,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-22/","name":"2016-02-22","slug":"2016-02-22","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/32"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=32"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":33,"count":26,"description":"","link":"http://wpdev.localhost/tag/2016-02-29/","name":"2016-02-29","slug":"2016-02-29","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/33"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=33"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":34,"count":27,"description":"","link":"http://wpdev.localhost/tag/2016-03-07/","name":"2016-03-07","slug":"2016-03-07","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/34"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=34"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}]; |
| 18 | |
| 19 | mockedApiResponse.TaxonomiesCollection={"category":{"name":"Categories","slug":"category","description":"","types":["post"],"hierarchical":true,"rest_base":"categories","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},"post_tag":{"name":"Tags","slug":"post_tag","description":"","types":["post"],"hierarchical":false,"rest_base":"tags","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}}; |
| 20 | |
| 21 | mockedApiResponse.TypesCollection={"post":{"description":"","hierarchical":false,"name":"Posts","slug":"post","taxonomies":["category","post_tag"],"rest_base":"posts","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},"page":{"description":"","hierarchical":true,"name":"Pages","slug":"page","taxonomies":[],"rest_base":"pages","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},"attachment":{"description":"","hierarchical":false,"name":"Media","slug":"attachment","taxonomies":[],"rest_base":"media","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}}; |
| 22 | |
| 23 | mockedApiResponse.UsersCollection=[{"id":1,"name":"admin","url":"","description":"","link":"http://wpdev.localhost/author/admin/","slug":"admin","avatar_urls":{"24":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=24&d=mm&r=g","48":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=48&d=mm&r=g","96":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users"}]}}]; |
| 24 | |
| 25 | mockedApiResponse.CategoryModel={"id":10,"count":357,"description":"","link":"http://wpdev.localhost/category/pod/a-team/","name":"A-Team","slug":"a-team","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/10"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=10"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}; |
| 26 | |
| 27 | mockedApiResponse.MediaModel={"id":4578,"date":"2016-12-04T10:45:36","date_gmt":"2016-12-04T15:45:36","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"},"modified":"2016-12-04T10:45:36","modified_gmt":"2016-12-04T15:45:36","slug":"_mg_6317-4","type":"attachment","link":"http://wpdev.localhost/_mg_6317-4/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg 580w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, “The child Noaman Tamim Shibly — For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.”</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":580,"height":326,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","width":580,"height":326,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4578"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4578"}]}}; |
| 28 | |
| 29 | mockedApiResponse.PageModel={"id":228,"date":"2016-10-24T17:34:59","date_gmt":"2016-10-24T17:34:59","guid":{"rendered":"http://wpdev.localhost/?page_id=228"},"modified":"2016-10-24T17:34:59","modified_gmt":"2016-10-24T17:34:59","slug":"buc","type":"page","link":"http://wpdev.localhost/buc/","title":{"rendered":"Buc"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=228"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=228"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}; |
| 30 | |
| 31 | mockedApiResponse.PostModel={"id":4492,"date":"2016-12-01T23:05:19","date_gmt":"2016-12-02T04:05:19","guid":{"rendered":"http://wpdev.localhost/?p=4492"},"modified":"2016-12-01T23:17:36","modified_gmt":"2016-12-02T04:17:36","slug":"test-2","type":"post","link":"http://wpdev.localhost/test-2/","title":{"rendered":"test"},"content":{"rendered":"<p>ok</p>\n","protected":false},"excerpt":{"rendered":"<p>ok</p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4492"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=4492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=4492"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=4492"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}; |
| 32 | |
| 33 | mockedApiResponse.TagModel={"id":25,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-04/","name":"2016-01-04","slug":"2016-01-04","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/25"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=25"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}; |
| 34 | |
| 35 | mockedApiResponse.UserModel={"id":1,"name":"admin","url":"","description":"","link":"http://wpdev.localhost/author/admin/","slug":"admin","avatar_urls":{"24":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=24&d=mm&r=g","48":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=48&d=mm&r=g","96":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users"}]}}; |
| 36 | |
| 37 | mockedApiResponse.TaxonomyModel={"category":{"name":"Categories","slug":"category","description":"","types":["post"],"hierarchical":true,"rest_base":"categories","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},"post_tag":{"name":"Tags","slug":"post_tag","description":"","types":["post"],"hierarchical":false,"rest_base":"tags","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}}; |
| 38 | |
| 39 | mockedApiResponse.StatusModel={"publish":{"name":"Published","public":true,"queryable":true,"slug":"publish","_links":{"archives":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}]}}}; |
| 40 | |
| 41 | mockedApiResponse.TypeModel={"post":{"description":"","hierarchical":false,"name":"Posts","slug":"post","taxonomies":["category","post_tag"],"rest_base":"posts","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},"page":{"description":"","hierarchical":true,"name":"Pages","slug":"page","taxonomies":[],"rest_base":"pages","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},"attachment":{"description":"","hierarchical":false,"name":"Media","slug":"attachment","taxonomies":[],"rest_base":"media","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}}; |
| 42 | |
| 43 | var pathToData = { |
| 44 | 'wp-json/wp/v2/': mockedApiResponse.Schema, |
| 45 | 'wp-json/wp/v2/categories': mockedApiResponse.CategoriesCollection, |
| 46 | 'wp-json/wp/v2/comments': mockedApiResponse.CommentsCollection, |
| 47 | 'wp-json/wp/v2/media': mockedApiResponse.MediaCollection, |
| 48 | 'wp-json/wp/v2/pages': mockedApiResponse.PagesCollection, |
| 49 | 'wp-json/wp/v2/posts': mockedApiResponse.PostsCollection, |
| 50 | 'wp-json/wp/v2/statuses': mockedApiResponse.StatusesCollection, |
| 51 | 'wp-json/wp/v2/tags': mockedApiResponse.TagsCollection, |
| 52 | 'wp-json/wp/v2/taxonomies': mockedApiResponse.TaxonomiesCollection, |
| 53 | 'wp-json/wp/v2/types': mockedApiResponse.TypesCollection, |
| 54 | 'wp-json/wp/v2/users': mockedApiResponse.UsersCollection, |
| 55 | 'wp-json/wp/v2/category': mockedApiResponse.CategoryModel, |
| 56 | 'wp-json/wp/v2/media1': mockedApiResponse.MediaModel, |
| 57 | 'wp-json/wp/v2/page': mockedApiResponse.PageModel, |
| 58 | 'wp-json/wp/v2/post': mockedApiResponse.PostModel, |
| 59 | 'wp-json/wp/v2/tag': mockedApiResponse.TagModel, |
| 60 | 'wp-json/wp/v2/user': mockedApiResponse.UserModel, |
| 61 | 'wp-json/wp/v2/taxonomy': mockedApiResponse.TaxonomyModel, |
| 62 | 'wp-json/wp/v2/status': mockedApiResponse.StatusModel, |
| 63 | 'wp-json/wp/v2/type': mockedApiResponse.TypeModel |
| 64 | }; |
| 65 | |
| 66 | |
| 67 | |
| 68 | /** |
| 69 | * Mock the ajax callbacks for our tests. |
| 70 | * |
| 71 | * @param {object} param The parameters sent to the ajax request. |
| 72 | * |
| 73 | * @return {Object} A jQuery defered object that resolves with the mapped data. |
| 74 | */ |
| 75 | Backbone.ajax = function ( param ) { |
| 76 | |
| 77 | var data, |
| 78 | request = param.url.replace( 'http://localhost/', '' ); |
| 79 | |
| 80 | if ( pathToData[ request ] ) { |
| 81 | data = pathToData[ request ]; |
| 82 | } |
| 83 | |
| 84 | // Call success handler. |
| 85 | param.success( data ); |
| 86 | var deferred = jQuery.Deferred(); |
| 87 | |
| 88 | // Resolve the deferred with the mocked data |
| 89 | deferred.resolve( data ); |
| 90 | |
| 91 | // Return the deferred promise that will resolve with the expected data. |
| 92 | return deferred.promise(); |
| 93 | |
| 94 | }; |