diff --git a/API-Mocks/README.md b/API-Mocks/README.md
new file mode 100644
index 000000000000..37281ab91653
--- /dev/null
+++ b/API-Mocks/README.md
@@ -0,0 +1,41 @@
+Network mocking for testing the WordPress mobile apps based on [WireMock](https://wiremock.org/).
+
+## Usage
+
+To start the WireMock server as a standalone process, you can run it with this command:
+
+```
+./scripts/start.sh 8282
+```
+
+Here `8282` is the port to run the server on. It can now be accessed from `http://localhost:8282`.
+
+## Creating a mock file
+
+The JSON files used by WireMock to handle requests and are located in `src/main/assets`. To generate one of these files
+you're first going to want to set up [Charles Proxy](https://www.charlesproxy.com/) (or similar) to work with your iOS Simulator.
+
+Here's an example of what a mock might look like:
+
+```json
+{
+ "request": {
+ "urlPattern": "/rest/v1.1/me/",
+ "method": "GET"
+ },
+ "response": {
+ "status": 200,
+ "jsonBody": {
+ // Your response here...
+ },
+ "headers": {
+ "Content-Type": "application/json",
+ "Connection": "keep-alive",
+ "Cache-Control": "no-cache, must-revalidate, max-age=0"
+ }
+ }
+}
+```
+
+These files are used to match network requests while the tests are being run. For more on request matching with
+WireMock check out [their documentation](http://wiremock.org/docs/request-matching/).
diff --git a/API-Mocks/Rakefile b/API-Mocks/Rakefile
new file mode 100644
index 000000000000..a7678769bf0a
--- /dev/null
+++ b/API-Mocks/Rakefile
@@ -0,0 +1,81 @@
+# frozen_string_literal: true
+
+require 'json'
+require 'jsonlint'
+require 'git'
+
+desc 'Re-format all JSON files to be pretty-printed'
+task :format, [:silent] do |_, args|
+ args.with_defaults(silent: false)
+
+ for_each_mock_file do |file|
+ puts "Formatting #{file}..." unless args[:silent]
+ json = JSON.parse(File.read(file))
+ File.write(file, JSON.pretty_generate(json))
+ rescue StandardError => e
+ linter = JsonLint::Linter.new
+ linter.check(file)
+ linter.display_errors
+
+ abort("Invalid JSON. See errors above. (#{e})")
+ end
+end
+
+desc 'Check that all files are properly formatted in CI'
+task :checkformat do
+ repo = Git.open('../.')
+
+ abort('Repo is dirty – unable to verify JSON files are correctly formatted') unless repo.diff.lines.zero?
+ Rake::Task['format'].invoke(true)
+
+ if repo.diff.lines.positive?
+ repo.reset_hard
+ abort('Repo contains unformatted JSON files – run `rake format` then commit your changes.')
+ end
+end
+
+desc "Ensure all JSON files are valid and don't contain common mistakes"
+task :lint do
+ file_errors = {}
+
+ for_each_mock_file do |file|
+ # Ensure the file is valid JSON
+ linter = JsonLint::Linter.new
+ linter.check(file)
+ if linter.errors_count.positive?
+ linter.errors.map { |_key, value| value }.each do |error|
+ append_error(file, file_errors, "Invalid JSON: #{error}}")
+ end
+ end
+
+ ## Ensure there are no references to the actual API location – we should use the mocks
+ # base URL – this ensures that any requests made based on the contents of other
+ # requests won't fail.
+ if File.open(file).each_line.any? { |line| line.include?('public-api.wordpress.com') }
+ append_error(file, file_errors, 'Contains references to `https://public-api.wordpress.com`. Replace them with `{{request.requestLine.baseUrl}}`.')
+ end
+ end
+
+ # Output file errors in a pretty way
+ puts "There are errors in #{file_errors.count} files:\n" unless file_errors.empty?
+ file_errors.each do |file, errors|
+ puts "=== #{file}"
+ errors.each do |e|
+ puts " #{e}"
+ end
+ end
+
+ abort unless file_errors.empty?
+ puts 'Lint Complete. Everything looks good.'
+end
+
+def for_each_mock_file
+ Dir.glob('WordPressMocks/**/*.json').each do |file|
+ yield(File.expand_path(file))
+ end
+end
+
+def append_error(file, errors, message)
+ errors[file] = [] if errors[file].nil?
+ errors[file].append(message)
+end
diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/self-hosted/rest_v11_connect_site_info_self-hosted.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/self-hosted/rest_v11_connect_site_info_self-hosted.json
new file mode 100644
index 000000000000..932ca9d777c1
--- /dev/null
+++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/self-hosted/rest_v11_connect_site_info_self-hosted.json
@@ -0,0 +1,29 @@
+{
+ "request": {
+ "method": "GET",
+ "urlPath": "/rest/v1.1/connect/site-info",
+ "queryParameters": {
+ "url": {
+ "matches": "^http(s)?://((?!wordpress.com).)*$"
+ }
+ }
+ },
+ "response": {
+ "status": 200,
+ "jsonBody": {
+ "urlAfterRedirects": "{{request.query.url}}",
+ "exists": true,
+ "isWordPress": true,
+ "hasJetpack": true,
+ "jetpackVersion": "7.3.1",
+ "isJetpackActive": true,
+ "isJetpackConnected": false,
+ "isWordPressDotCom": false
+ },
+ "headers": {
+ "Content-Type": "application/json",
+ "Connection": "keep-alive",
+ "Cache-Control": "no-cache, must-revalidate, max-age=0"
+ }
+ }
+}
\ No newline at end of file
diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/self-hosted/xmlrpcphp-system.listMethods.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/self-hosted/xmlrpcphp-system.listMethods.json
new file mode 100644
index 000000000000..f80802db4e7d
--- /dev/null
+++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/self-hosted/xmlrpcphp-system.listMethods.json
@@ -0,0 +1,19 @@
+{
+ "request": {
+ "url": "/xmlrpc.php",
+ "method": "POST",
+ "bodyPatterns": [
+ {
+ "matches": ".*
This event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n\n\n\n\n" + } + ], + "totals": { + "del": 2, + "add": 3 + } + } + }, + { + "from": 309, + "to": 400, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n\n\n\n\n" + } + ], + "totals": { + "del": 3, + "add": 2 + } + } + }, + { + "from": 303, + "to": 309, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n" + }, + { + "op": "add", + "value": "\n\n\n\n\n\n\n" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "add": 50 + } + } + }, + { + "from": 300, + "to": 303, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n" + }, + { + "op": "del", + "value": "\n\n\n" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 26 + } + } + }, + { + "from": 299, + "to": 300, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!" + }, + { + "op": "del", + "value": " ..." + }, + { + "op": "copy", + "value": "
\n\n\n\n\n\n" + } + ], + "totals": { + "del": 0 + } + } + }, + { + "from": 298, + "to": 299, + "diff": { + "post_title": [ + { + "op": "del", + "value": "(no" + }, + { + "op": "add", + "value": "Summer" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "title)" + }, + { + "op": "add", + "value": "Band Jam" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots! ...
\n\n\n\n\n" + } + ], + "totals": { + "del": 2, + "add": 3 + } + } + }, + { + "from": 297, + "to": 298, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots! ...
\n\n\n\n\n" + } + ], + "totals": { + "del": 3, + "add": 2 + } + } + }, + { + "from": 296, + "to": 297, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!" + }, + { + "op": "add", + "value": " ..." + }, + { + "op": "copy", + "value": "
\n\n\n\n\n\n" + } + ], + "totals": { + "add": 0 + } + } + }, + { + "from": 292, + "to": 296, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n" + }, + { + "op": "del", + "value": "\t \t " + }, + { + "op": "copy", + "value": "\n" + }, + { + "op": "del", + "value": "\t \t " + }, + { + "op": "copy", + "value": "\n\n" + } + ], + "totals": { + "del": 0 + } + } + }, + { + "from": 291, + "to": 292, + "diff": { + "post_title": [ + { + "op": "del", + "value": "(no" + }, + { + "op": "add", + "value": "Summer" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "title)" + }, + { + "op": "add", + "value": "Band Jam" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n" + } + ], + "totals": { + "del": 2, + "add": 3 + } + } + }, + { + "from": 289, + "to": 291, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n" + } + ], + "totals": { + "del": 3, + "add": 2 + } + } + }, + { + "from": 288, + "to": 289, + "diff": { + "post_title": [ + { + "op": "del", + "value": "(no" + }, + { + "op": "add", + "value": "Summer" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "title)" + }, + { + "op": "add", + "value": "Band Jam" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n" + } + ], + "totals": { + "del": 2, + "add": 3 + } + } + }, + { + "from": 287, + "to": 288, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n" + } + ], + "totals": { + "del": 3, + "add": 2 + } + } + }, + { + "from": 286, + "to": 287, + "diff": { + "post_title": [ + { + "op": "del", + "value": "(no" + }, + { + "op": "add", + "value": "Summer" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "title)" + }, + { + "op": "add", + "value": "Band Jam" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n" + } + ], + "totals": { + "del": 2, + "add": 3 + } + } + }, + { + "from": 285, + "to": 286, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n" + } + ], + "totals": { + "del": 3, + "add": 2 + } + } + }, + { + "from": 284, + "to": 285, + "diff": { + "post_title": [ + { + "op": "del", + "value": "(no" + }, + { + "op": "add", + "value": "Summer" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "title)" + }, + { + "op": "add", + "value": "Band Jam" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\n" + }, + { + "op": "del", + "value": "Blue" + }, + { + "op": "add", + "value": "This" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "skies" + }, + { + "op": "add", + "value": "event" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "and" + }, + { + "op": "add", + "value": "was" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "warm" + }, + { + "op": "add", + "value": "so" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "weather" + }, + { + "op": "add", + "value": "much fun" + }, + { + "op": "copy", + "value": ", " + }, + { + "op": "del", + "value": "what's" + }, + { + "op": "add", + "value": "I" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "not" + }, + { + "op": "add", + "value": "couldn’t wait" + }, + { + "op": "copy", + "value": " to " + }, + { + "op": "del", + "value": "love" + }, + { + "op": "add", + "value": "share a few of my" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "about" + }, + { + "op": "add", + "value": "favorite" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "summer?" + }, + { + "op": "add", + "value": "shots!" + }, + { + "op": "copy", + "value": "
\n\n\n\nIt's" + }, + { + "op": "add", + "value": "image" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "a great season for outdoor family portrait sessions and now is the time to book them!" + }, + { + "op": "del", + "value": "
\n\n\n\nWe offer a number of family portrait packages" + }, + { + "op": "add", + "value": ":209}" + }, + { + "op": "del", + "value": " and for a limited time are offering 15% off packages booked before May 1.
\n" + }, + { + "op": "del", + "value": "\n\n" + }, + { + "op": "copy", + "value": "\n" + }, + { + "op": "add", + "value": "\t \t " + }, + { + "op": "copy", + "value": "\n\n" + }, + { + "op": "del", + "value": "\n\nHow to book
\n\n\n\nEmail us to set up a time to visit our studio.
\n" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 127, + "add": 26 + } + } + }, + { + "from": 283, + "to": 284, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\n" + }, + { + "op": "del", + "value": "This" + }, + { + "op": "add", + "value": "Blue" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "event" + }, + { + "op": "add", + "value": "skies" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "was" + }, + { + "op": "add", + "value": "and" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "so" + }, + { + "op": "add", + "value": "warm" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "much fun" + }, + { + "op": "add", + "value": "weather" + }, + { + "op": "copy", + "value": ", " + }, + { + "op": "del", + "value": "I" + }, + { + "op": "add", + "value": "what's" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "couldn’t wait" + }, + { + "op": "add", + "value": "not" + }, + { + "op": "copy", + "value": " to " + }, + { + "op": "del", + "value": "share a few of my" + }, + { + "op": "add", + "value": "love" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "favorite" + }, + { + "op": "add", + "value": "about" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "shots!" + }, + { + "op": "add", + "value": "summer?" + }, + { + "op": "copy", + "value": "
\n\n\n\nIt's" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "add", + "value": "a great season for outdoor family portrait sessions and now is the time to book them!" + }, + { + "op": "del", + "value": "{" + }, + { + "op": "add", + "value": "
\n\n\n\nWe offer a number of family portrait packages" + }, + { + "op": "add", + "value": " and for a limited time are offering 15% off packages booked before May 1.
\n" + }, + { + "op": "del", + "value": "\t" + }, + { + "op": "add", + "value": "\n\n" + }, + { + "op": "copy", + "value": "\n" + }, + { + "op": "del", + "value": "\t \t " + }, + { + "op": "copy", + "value": "\n\n" + }, + { + "op": "add", + "value": "\n\nHow to book
\n\n\n\nEmail us to set up a time to visit our studio.
\n" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 26, + "add": 127 + } + } + }, + { + "from": 280, + "to": 283, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n" + }, + { + "op": "add", + "value": "\n\t \t \n\t \t \n" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "add": 26 + } + } + }, + { + "from": 277, + "to": 280, + "diff": { + "post_title": [ + { + "op": "del", + "value": "(no" + }, + { + "op": "add", + "value": "Summer" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "title)" + }, + { + "op": "add", + "value": "Band Jam" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n" + } + ], + "totals": { + "del": 2, + "add": 3 + } + } + }, + { + "from": 273, + "to": 277, + "diff": { + "post_title": [ + { + "op": "del", + "value": "Summer" + }, + { + "op": "add", + "value": "(no" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "Band Jam" + }, + { + "op": "add", + "value": "title)" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n" + } + ], + "totals": { + "del": 3, + "add": 2 + } + } + }, + { + "from": 267, + "to": 273, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "copy", + "value": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n" + }, + { + "op": "del", + "value": "\n\n\n" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 26 + } + } + }, + { + "from": 240, + "to": 267, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Summer Band Jam" + } + ], + "post_content": [ + { + "op": "add", + "value": "\n" + }, + { + "op": "copy", + "value": "This event was so much fun, I couldn’t wait to share a few of my favorite shots!" + }, + { + "op": "add", + "value": "
\n" + }, + { + "op": "copy", + "value": "\n\n<" + }, + { + "op": "del", + "value": "img" + }, + { + "op": "add", + "value": "!-- wp:image" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "class=" + }, + { + "op": "add", + "value": "{" + }, + { + "op": "copy", + "value": """ + }, + { + "op": "del", + "value": "alignnone" + }, + { + "op": "add", + "value": "id":209}" + }, + { + "op": "copy", + "value": " " + }, + { + "op": "del", + "value": "size" + }, + { + "op": "add", + "value": "" + }, + { + "op": "copy", + "value": "-" + }, + { + "op": "del", + "value": "full" + }, + { + "op": "add", + "value": "->\n\n\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "400": { + "post_date_gmt": "2019-06-28 21:04:40Z", + "post_modified_gmt": "2019-06-28 21:04:40Z", + "post_author": "68646169", + "id": 400, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n\n\n\n\n", + "post_excerpt": "", + "post_title": "" + }, + "309": { + "post_date_gmt": "2019-05-27 21:36:25Z", + "post_modified_gmt": "2019-05-27 21:36:25Z", + "post_author": "742098", + "id": 309, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "303": { + "post_date_gmt": "2019-05-27 19:26:17Z", + "post_modified_gmt": "2019-05-27 19:26:17Z", + "post_author": "742098", + "id": 303, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "300": { + "post_date_gmt": "2019-04-17 10:45:45Z", + "post_modified_gmt": "2019-04-17 10:45:45Z", + "post_author": "67626417", + "id": 300, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "299": { + "post_date_gmt": "2019-04-17 10:45:25Z", + "post_modified_gmt": "2019-04-17 10:45:25Z", + "post_author": "67626417", + "id": 299, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots! ...
\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "298": { + "post_date_gmt": "2019-04-17 10:44:49Z", + "post_modified_gmt": "2019-04-17 10:44:49Z", + "post_author": "68646169", + "id": 298, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots! ...
\n\n\n\n\n", + "post_excerpt": "", + "post_title": "" + }, + "297": { + "post_date_gmt": "2019-04-17 10:44:12Z", + "post_modified_gmt": "2019-04-17 10:44:12Z", + "post_author": "67626417", + "id": 297, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots! ...
\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "296": { + "post_date_gmt": "2019-04-17 10:42:14Z", + "post_modified_gmt": "2019-04-17 10:42:14Z", + "post_author": "67626417", + "id": 296, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "292": { + "post_date_gmt": "2019-04-17 10:39:09Z", + "post_modified_gmt": "2019-04-17 10:39:09Z", + "post_author": "67626417", + "id": 292, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "291": { + "post_date_gmt": "2019-04-17 10:36:25Z", + "post_modified_gmt": "2019-04-17 10:36:25Z", + "post_author": "68646169", + "id": 291, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "" + }, + "289": { + "post_date_gmt": "2019-04-17 10:29:16Z", + "post_modified_gmt": "2019-04-17 10:29:16Z", + "post_author": "67626417", + "id": 289, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "288": { + "post_date_gmt": "2019-04-17 10:28:37Z", + "post_modified_gmt": "2019-04-17 10:28:37Z", + "post_author": "68646169", + "id": 288, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "" + }, + "287": { + "post_date_gmt": "2019-04-17 10:27:45Z", + "post_modified_gmt": "2019-04-17 10:27:45Z", + "post_author": "67626417", + "id": 287, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "286": { + "post_date_gmt": "2019-04-17 10:27:13Z", + "post_modified_gmt": "2019-04-17 10:27:13Z", + "post_author": "68646169", + "id": 286, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "" + }, + "285": { + "post_date_gmt": "2019-04-17 09:35:57Z", + "post_modified_gmt": "2019-04-17 09:35:57Z", + "post_author": "67626417", + "id": 285, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "284": { + "post_date_gmt": "2019-04-17 09:32:58Z", + "post_modified_gmt": "2019-04-17 09:32:58Z", + "post_author": "68646169", + "id": 284, + "post_content": "\nBlue skies and warm weather, what's not to love about summer?
\n\n\n\nIt's a great season for outdoor family portrait sessions and now is the time to book them!
\n\n\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before May 1.
\n\n\n\n\n\n\n\nHow to book
\n\n\n\nEmail us to set up a time to visit our studio.
\n", + "post_excerpt": "", + "post_title": "" + }, + "283": { + "post_date_gmt": "2019-04-17 09:32:34Z", + "post_modified_gmt": "2019-04-17 09:32:34Z", + "post_author": "67626417", + "id": 283, + "post_content": "\r\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\r\n\r\n\r\n\t \t \r\n\t \t \r\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "280": { + "post_date_gmt": "2019-04-17 09:23:35Z", + "post_modified_gmt": "2019-04-17 09:23:35Z", + "post_author": "67626417", + "id": 280, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "277": { + "post_date_gmt": "2019-04-16 14:21:22Z", + "post_modified_gmt": "2019-04-16 14:21:22Z", + "post_author": "68646169", + "id": 277, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n", + "post_excerpt": "", + "post_title": "" + }, + "273": { + "post_date_gmt": "2019-03-21 17:23:26Z", + "post_modified_gmt": "2019-03-21 17:23:26Z", + "post_author": "68646169", + "id": 273, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "267": { + "post_date_gmt": "2019-03-21 17:17:59Z", + "post_modified_gmt": "2019-03-21 17:17:59Z", + "post_author": "68646169", + "id": 267, + "post_content": "\nThis event was so much fun, I couldn’t wait to share a few of my favorite shots!
\n\n\n\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "240": { + "post_date_gmt": "2019-03-20 23:45:49Z", + "post_modified_gmt": "2019-03-20 23:45:49Z", + "post_author": "14151046", + "id": 240, + "post_content": "This event was so much fun, I couldn’t wait to share a few of my favorite shots!\n\n", + "post_excerpt": "", + "post_title": "Summer Band Jam" + }, + "214": { + "post_date_gmt": "2019-02-15 23:26:48Z", + "post_modified_gmt": "2019-02-15 23:26:48Z", + "post_author": "68646169", + "id": 214, + "post_content": "This event was so much fun, I couldn’t wait to share a few of my favorite shots!", + "post_excerpt": "", + "post_title": "Summer Band Jam" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_215_diffs.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_215_diffs.json new file mode 100644 index 000000000000..d6f530c3fee7 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_215_diffs.json @@ -0,0 +1,71 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/post/215/diffs/", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "diffs": [ + { + "from": 0, + "to": 216, + "diff": { + "post_title": [ + { + "op": "del", + "value": "" + }, + { + "op": "add", + "value": "Ideas" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "add", + "value": "Returning client special - Offer a discount to clients who have left a review." + }, + { + "op": "copy", + "value": "\n\n" + }, + { + "op": "add", + "value": "Photography classes at the local" + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 0, + "add": 20 + } + } + } + ], + "revisions": { + "216": { + "post_date_gmt": "2019-02-15 23:27:13Z", + "post_modified_gmt": "2019-02-15 23:27:13Z", + "post_author": "68646169", + "id": 216, + "post_content": "Returning client special - Offer a discount to clients who have left a review.\n\nPhotography classes at the local", + "post_excerpt": "", + "post_title": "Ideas" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_387_diffs.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_387_diffs.json new file mode 100644 index 000000000000..4e1dbb8b8a10 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_387_diffs.json @@ -0,0 +1,71 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/post/387/diffs/", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "diffs": [ + { + "from": 0, + "to": 390, + "diff": { + "post_title": [ + { + "op": "del", + "value": "" + }, + { + "op": "add", + "value": "Time to Book Summer Sessions" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "add", + "value": "Blue skies and warm weather, what's not to love about summer?" + }, + { + "op": "copy", + "value": "\n\n" + }, + { + "op": "add", + "value": "It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before May 1.\n\n\n\nHow to book\nEmail us to set up a time to visit our studio." + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 0, + "add": 86 + } + } + } + ], + "revisions": { + "390": { + "post_date_gmt": "2019-05-28 21:03:03Z", + "post_modified_gmt": "2019-05-28 21:03:03Z", + "post_author": "742098", + "id": 390, + "post_content": "Blue skies and warm weather, what's not to love about summer?\n\nIt's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before May 1.\n\n\n\nHow to book\nEmail us to set up a time to visit our studio.", + "post_excerpt": "", + "post_title": "Time to Book Summer Sessions" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_396_diffs.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_396_diffs.json new file mode 100644 index 000000000000..5634833bff6f --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/post_396_diffs.json @@ -0,0 +1,130 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/post/396/diffs/", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "diffs": [ + { + "from": 398, + "to": 399, + "diff": { + "post_title": [ + { + "op": "copy", + "value": "Now Booking Summer Sessions" + } + ], + "post_content": [ + { + "op": "copy", + "value": "“One must maintain a little bit of summer, even in the middle of winter.”\n\n– Henry David Thoreau\n" + }, + { + "op": "add", + "value": "\n" + }, + { + "op": "copy", + "value": "\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n\nHow to book" + }, + { + "op": "del", + "value": "\n<" + }, + { + "op": "add", + "value": "<" + }, + { + "op": "copy", + "value": "/strong>" + }, + { + "op": "add", + "value": "\n\n\n" + }, + { + "op": "copy", + "value": "Email us to set up a time to visit our studio.\n" + } + ], + "totals": { + "add": 0, + "del": 0 + } + } + }, + { + "from": 0, + "to": 398, + "diff": { + "post_title": [ + { + "op": "del", + "value": "" + }, + { + "op": "add", + "value": "Now Booking Summer Sessions" + }, + { + "op": "copy", + "value": "\n" + } + ], + "post_content": [ + { + "op": "add", + "value": "
“One must maintain a little bit of summer, even in the middle of winter.”" + }, + { + "op": "copy", + "value": "\n\n" + }, + { + "op": "add", + "value": "– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n\nHow to book\nEmail us to set up a time to visit our studio." + }, + { + "op": "copy", + "value": "\n" + } + ], + "totals": { + "del": 0, + "add": 101 + } + } + } + ], + "revisions": { + "399": { + "post_date_gmt": "2019-05-28 21:06:50Z", + "post_modified_gmt": "2019-05-28 21:06:50Z", + "post_author": "742098", + "id": 399, + "post_content": "
“One must maintain a little bit of summer, even in the middle of winter.”\n\n– Henry David Thoreau\n\n\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n\nHow to book\n\n\nEmail us to set up a time to visit our studio.", + "post_excerpt": "", + "post_title": "Now Booking Summer Sessions" + }, + "398": { + "post_date_gmt": "2019-05-28 21:05:17Z", + "post_modified_gmt": "2019-05-28 21:05:17Z", + "post_author": "742098", + "id": 398, + "post_content": "
“One must maintain a little bit of summer, even in the middle of winter.”\n\n– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n\nHow to book\nEmail us to set up a time to visit our studio.", + "post_excerpt": "", + "post_title": "Now Booking Summer Sessions" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-diff.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-diff.json new file mode 100644 index 000000000000..e5687df6fdba --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-diff.json @@ -0,0 +1,38 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/", + "queryParameters": { + "after": { + "matches": "(.*)" + }, + "before": { + "matches": "(.*)" + }, + "fields": { + "equalTo": "ID, title, URL" + }, + "number": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 0, + "posts": [ + + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/post-counts/post" + }, + "wpcom": true + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-draft,pending.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-draft,pending.json new file mode 100644 index 000000000000..6dd5353c09bb --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-draft,pending.json @@ -0,0 +1,78 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/", + "queryParameters": { + "number": { + "equalTo": "60" + }, + "context": { + "equalTo": "edit" + }, + "order_by": { + "equalTo": "date" + }, + "fields": { + "equalTo": "ID,modified,status,meta,date" + }, + "order": { + "equalTo": "DESC" + }, + "status": { + "equalTo": "draft,pending" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 7, + "posts": [ + { + "ID": 213, + "modified": "2019-07-16T02:39:45+00:00", + "status": "draft" + }, + { + "ID": 396, + "modified": "2019-05-28T21:08:03+00:00", + "status": "draft" + }, + { + "ID": 387, + "modified": "2019-05-28T21:03:22+00:00", + "status": "draft" + }, + { + "ID": 265, + "modified": "2019-04-17T10:41:03+00:00", + "status": "draft" + }, + { + "ID": 134, + "modified": "2019-05-27T21:39:08+00:00", + "status": "draft" + }, + { + "ID": 215, + "modified": "2019-02-15T23:27:13+00:00", + "status": "draft" + }, + { + "ID": 225, + "modified": "2019-03-21T17:20:44+00:00", + "status": "draft" + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/post-counts/post" + }, + "wpcom": true + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-draft,pending_v2.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-draft,pending_v2.json new file mode 100644 index 000000000000..da83a98cc5b0 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-draft,pending_v2.json @@ -0,0 +1,1308 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.2/sites/106707880/posts", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "context": { + "equalTo": "edit" + }, + "meta": { + "equalTo": "autosave" + }, + "number": { + "equalTo": "40" + }, + "status": { + "equalTo": "draft,pending" + }, + "type": { + "equalTo": "post" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 7, + "posts": [ + { + "ID": 213, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@gmail.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2020-08-24T12:17:14-07:00", + "modified": "2020-08-27T16:31:00-07:00", + "title": "Our Services", + "URL": "https://fourpawsdoggrooming.wordpress.com/our-services/", + "short_URL": "https://wp.me/Pcj1SD-J", + "content": "\n
Our deluxe grooming service includes:
\n\n\n\nDeluxe Cut and Groom
\n\n\n\nOur deluxe cut and groom package includes everything in the deluxe groom plus a haircut.
\n\n\n\nAdd on services
\n\n\n\nPamper your pup even more with one of our signature add on services:
\n\n\n\n“One must maintain a little bit of summer, even in the middle of winter.”\n\n– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n\nHow to book\n\nEmail us to set up a time to visit our studio.", + "excerpt": "", + "slug": "", + "guid": "http://infocusphotographers.com/?p=396", + "status": "draft", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": false, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "276e4cea0342ec68e69a0ca537acfce1", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "742", + "key": "sharing_disabled", + "value": [ + + ] + }, + { + "id": "741", + "key": "switch_like_status", + "value": "" + }, + { + "id": "743", + "key": "_edit_lock", + "value": "1565368199:742098" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/396/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 399, + 398 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/05/28/%postname%/", + "suggested_slug": "now-booking-summer-sessions-2" + } + }, + { + "ID": 387, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@gmail.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2019-05-28T21:03:22+00:00", + "modified": "2019-05-28T21:03:22+00:00", + "title": "Time to Book Summer Sessions", + "URL": "http://infocusphotographers.com/?p=387", + "short_URL": "https://wp.me/p7dJAQ-6f", + "content": "Blue skies and warm weather, what's not to love about summer?\n\nIt's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before May 1.\n\n\n\nHow to book\nEmail us to set up a time to visit our studio.", + "excerpt": "", + "slug": "", + "guid": "http://infocusphotographers.com/?p=387", + "status": "draft", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "a9037bde04073835b078a1b1bb48b7de", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "731", + "key": "_edit_lock", + "value": "1559077396:742098" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/387", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/387/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/387/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/387/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 390 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/05/28/%postname%/", + "suggested_slug": "time-to-book-summer-sessions" + } + }, + { + "ID": 265, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@gmail.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2019-04-17T10:40:39+00:00", + "modified": "2019-04-17T10:41:03+00:00", + "title": "What we've been doing lately", + "URL": "http://infocusphotographers.com/?p=265", + "short_URL": "https://wp.me/p7dJAQ-4h", + "content": "\r\n
The last few weeks have been a blur! Here are a few shots we really like. What do you think?
\r\n\r\n\r\n\r\n“One must maintain a little bit of summer, even in the middle of winter.” \n\n– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n
“One must maintain a little bit of summer, even in the middle of winter.” \n\n– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n
\n\n\n\n“One must maintain a little bit of summer, even in the middle of winter.
– Henry David Thoreau
Blue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!
\n\n\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.
\n\n\n\n\n\n\n\nHow to book
\n\n\n\nEmail us to set up a time to visit our studio.
\n", + "excerpt": "", + "slug": "__trashed-2", + "guid": "http://infocusphotographers.com/?p=225", + "status": "draft", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "2d07f957bcc110149b8aa37bd1231ad1", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + "243": { + "ID": 243, + "URL": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg", + "date": "2019-03-20T23:56:52+00:00", + "post_ID": 225, + "author_ID": 14151046, + "file": "beach-children-family-39691.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "beach-children-family-39691", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg?w=150", + "medium": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg?w=300", + "large": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg?w=1024" + }, + "height": 2446, + "width": 3669, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/media/243", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/media/243/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "558", + "key": "_edit_lock", + "value": "1559077412:742098" + }, + { + "id": "468", + "key": "_wp_desired_post_slug", + "value": "" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/225/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 271, + 235, + 229, + 228, + 227, + 226 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/01/01/%postname%/", + "suggested_slug": "__trashed-2" + } + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/post-counts/post" + }, + "wpcom": true + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-first.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-first.json new file mode 100644 index 000000000000..99bef23f4ce7 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-first.json @@ -0,0 +1,60 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/posts/.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "fields": { + "equalTo": "ID, title, URL, discussion, like_count, date" + }, + "number": { + "matches": "1" + }, + "order_by": { + "equalTo": "date" + }, + "type": { + "equalTo": "post" + } + } + }, + "response": { + "status": 200, + "fixedDelayMilliseconds": 1000, + "jsonBody": { + "found": 2, + "posts": [ + { + "ID": 106, + "date": "2016-04-19T21:28:27+00:00", + "title": "Some News to Share", + "URL": "http://infocusphotographers.com/2016/04/19/some-news-to-share/", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "like_count": 0 + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/post-counts/post" + }, + "next_page": "value=2016-04-19T21%3A28%3A27%2B00%3A00&id=106", + "wpcom": true + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + }, + "scenarioName": "new-post", + "newScenarioState": "Post Published" +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-future.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-future.json new file mode 100644 index 000000000000..36a6269b1b62 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-future.json @@ -0,0 +1,44 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/", + "queryParameters": { + "number": { + "equalTo": "60" + }, + "context": { + "equalTo": "edit" + }, + "order_by": { + "equalTo": "date" + }, + "fields": { + "matches": "ID,modified,status(,meta)?(,date)?" + }, + "order": { + "equalTo": "DESC" + }, + "status": { + "equalTo": "future" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 0, + "posts": [ + + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/post-counts/post" + }, + "wpcom": true + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-new-after.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-new-after.json new file mode 100644 index 000000000000..5dd572a60bdc --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-new-after.json @@ -0,0 +1,56 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/106707880/posts(/)\\?($|\\?.*)", + "queryParameters": { + "context": { + "equalTo": "edit" + }, + "status": { + "equalTo": "publish,private" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 4, + "posts": [ + { + "ID": 5, + "modified": "2019-03-12T15:00:53+00:00", + "status": "publish" + }, + { + "ID": 237, + "modified": "2019-03-21T17:19:25+00:00", + "status": "private" + }, + { + "ID": 106, + "modified": "2018-03-23T00:20:36+00:00", + "status": "publish" + }, + { + "ID": 90, + "modified": "2016-03-16T02:01:50+00:00", + "status": "publish" + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/post-counts/post" + }, + "next_page": "value=&id=29", + "wpcom": true + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + }, + "scenarioName": "new-post", + "requiredScenarioState": "Post Published" +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-new.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-new.json new file mode 100644 index 000000000000..e9bbdb4c3058 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-new.json @@ -0,0 +1,146 @@ +{ + "request": { + "method": "POST", + "urlPattern": "/rest/v1.2/sites/.*/posts/new(/)?($|\\?.*)", + "queryParameters": { + "context": { + "equalTo": "edit" + } + } + }, + "response": { + "status": 200, + "fixedDelayMilliseconds": 1000, + "jsonBody": { + "ID": 5, + "site_ID": 106707880, + "author": { + "ID": 152748359, + "login": "e2eflowtestingmobile", + "email": "e2eflowtestingmobile@example.com", + "name": "e2eflowtestingmobile", + "first_name": "", + "last_name": "", + "nice_name": "e2eflowtestingmobile", + "URL": "https://infocusphotographers.com", + "avatar_URL": "https://1.gravatar.com/avatar/7a4015c11be6a342f65e0e169092d402?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/e2eflowtestingmobile", + "site_ID": 1 + }, + "date": "2019-03-12T15:00:53+00:00", + "modified": "2019-03-12T15:00:53+00:00", + "title": "{{jsonPath request.body '$.title'}}", + "URL": "https://lowtestingmobile.wordpress.com/2019/03/12/title-33/", + "short_URL": "https://e/paIC9Y-1r", + "content": "\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Nam congue efficitur leo eget porta.
\n", + "excerpt": "", + "slug": "title-33", + "guid": "https://infocusphotographers.com/2019/03/12/title-33/", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "127876e9017a09034bcf41ee80428027", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 82, + "parent": 0, + "meta": { + "links": { + "self": "https://ic-api.wordpress.com/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "https://ic-api.wordpress.com/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "https://ic-api.wordpress.com/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 82, + "parent": 0, + "meta": { + "links": { + "self": "https://ic-api.wordpress.com/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "https://ic-api.wordpress.com/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "https://ic-api.wordpress.com/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "909", + "key": "jabber_published", + "value": "1552402855" + } + ], + "meta": { + "links": { + "self": "https://ic-api.wordpress.com/rest/v1.1/sites/106707880/posts/5", + "help": "https://ic-api.wordpress.com/rest/v1.2/sites/106707880/posts/5/help", + "site": "https://ic-api.wordpress.com/rest/v1.2/sites/106707880", + "replies": "https://ic-api.wordpress.com/rest/v1.1/sites/106707880/posts/5/replies/", + "likes": "https://ic-api.wordpress.com/rest/v1.1/sites/106707880/posts/5/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "other_URLs": { + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + }, + "scenarioName": "new-post", + "newScenarioState": "Post Published" +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-private,publish.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-private,publish.json new file mode 100644 index 000000000000..dcb60cf5f74e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-private,publish.json @@ -0,0 +1,58 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/", + "queryParameters": { + "number": { + "equalTo": "60" + }, + "context": { + "equalTo": "edit" + }, + "order_by": { + "equalTo": "date" + }, + "fields": { + "equalTo": "ID,modified,status,meta,date" + }, + "order": { + "equalTo": "DESC" + }, + "status": { + "equalTo": "publish,private" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 3, + "posts": [ + { + "ID": 237, + "modified": "2019-03-21T17:19:25+00:00", + "status": "private" + }, + { + "ID": 106, + "modified": "2018-03-23T00:20:36+00:00", + "status": "publish" + }, + { + "ID": 90, + "modified": "2016-03-16T02:01:50+00:00", + "status": "publish" + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/post-counts/post" + }, + "wpcom": true + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-private,publish_v2.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-private,publish_v2.json new file mode 100644 index 000000000000..f4209469721d --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts-private,publish_v2.json @@ -0,0 +1,677 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.2/sites/.*/posts.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "context": { + "equalTo": "edit" + }, + "meta": { + "equalTo": "autosave" + }, + "number": { + "matches": "(.*)" + }, + "status": { + "equalTo": "publish,private" + }, + "type": { + "equalTo": "post" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 3, + "posts": [ + { + "ID": 237, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@gmail.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2019-03-13T23:48:58+00:00", + "modified": "2019-03-21T17:19:25+00:00", + "title": "Photo Contest", + "URL": "http://infocusphotographers.com/2019/03/13/some-news-to-share-2/", + "short_URL": "https://wp.me/p7dJAQ-3P", + "content": "\nIn Focus Photography was nominated for an international photo award!
\n\n\n\n\n", + "excerpt": "", + "slug": "some-news-to-share-2", + "guid": "http://infocusphotographers.com/?p=237", + "status": "private", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "9dc6f7941b6a68fc2323b652c4e9516b", + "featured_image": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "post_thumbnail": { + "ID": 238, + "URL": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "mime_type": "image/jpeg", + "width": 4256, + "height": 2628 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + "238": { + "ID": 238, + "URL": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "date": "2019-03-20T23:44:49+00:00", + "post_ID": 237, + "author_ID": 14151046, + "file": "art-bright-celebration-1313817.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "art-bright-celebration-1313817", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg?w=150", + "medium": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg?w=300", + "large": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg?w=1024" + }, + "height": 2628, + "width": 4256, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/media/238", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/media/238/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "493", + "key": "email_notification", + "value": "1553125740" + }, + { + "id": "486", + "key": "jabber_published", + "value": "1553125739" + }, + { + "id": "491", + "key": "timeline_notification", + "value": "1553125810" + }, + { + "id": "557", + "key": "_edit_lock", + "value": "1553188814:68646169" + }, + { + "id": "492", + "key": "_publicize_job_id", + "value": "28865445244" + }, + { + "id": "490", + "key": "_rest_api_client_id", + "value": "-1" + }, + { + "id": "489", + "key": "_rest_api_published", + "value": "1" + }, + { + "id": "484", + "key": "_thumbnail_id", + "value": "238" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/237/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 269, + 263, + 239 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/03/13/%postname%/", + "suggested_slug": "some-news-to-share-2" + } + }, + { + "ID": 106, + "site_ID": 106707880, + "author": { + "ID": 100907762, + "login": "leahelainerand", + "email": "andreazoellner+leahrand@gmail.com", + "name": "Leah Elaine Rand", + "first_name": "Leah", + "last_name": "Rand", + "nice_name": "leahelainerand", + "URL": "", + "avatar_URL": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/leahelainerand", + "site_ID": 106523982 + }, + "date": "2016-04-19T21:28:27+00:00", + "modified": "2018-03-23T00:20:36+00:00", + "title": "Some News to Share", + "URL": "http://infocusphotographers.com/2016/04/19/some-news-to-share/", + "short_URL": "https://wp.me/p7dJAQ-1I", + "content": "John was shortlisted for the World Press Photo competition, an international celebration of the best photojournalism of the year.\n\nhttps://twitter.com/wordpressdotcom/status/702181837079187456", + "excerpt": "", + "slug": "some-news-to-share", + "guid": "https://infocusphotographers.wordpress.com/?p=106", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "3a10a002b4f389596205c24992732a3e", + "featured_image": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1449761485030-c9bf16154670.jpg", + "post_thumbnail": { + "ID": 62, + "URL": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1449761485030-c9bf16154670.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2016/02/photo-1449761485030-c9bf16154670.jpg", + "mime_type": "image/jpeg", + "width": 1080, + "height": 720 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "254", + "key": "jabber_published", + "value": "1461101308" + }, + { + "id": "267", + "key": "_oembed_00ce3f36d70c72c174774d1222895a08", + "value": " " + }, + { + "id": "294", + "key": "_oembed_33aac0b04f7a7bc31eec252936d4ae4a", + "value": " " + }, + { + "id": "257", + "key": "_oembed_4e3318c4371cf9880f6705450efd7fe6", + "value": " " + }, + { + "id": "251", + "key": "_oembed_8655c52bd5f940727d92329c248de249", + "value": " " + }, + { + "id": "262", + "key": "_oembed_eb2de30a8aa65d93ca387e4a12fd9f06", + "value": " " + }, + { + "id": "268", + "key": "_oembed_time_00ce3f36d70c72c174774d1222895a08", + "value": "1461200444" + }, + { + "id": "295", + "key": "_oembed_time_33aac0b04f7a7bc31eec252936d4ae4a", + "value": "1521764439" + }, + { + "id": "258", + "key": "_oembed_time_4e3318c4371cf9880f6705450efd7fe6", + "value": "1461101310" + }, + { + "id": "252", + "key": "_oembed_time_8655c52bd5f940727d92329c248de249", + "value": "1461101270" + }, + { + "id": "263", + "key": "_oembed_time_eb2de30a8aa65d93ca387e4a12fd9f06", + "value": "1461101311" + }, + { + "id": "261", + "key": "_publicize_job_id", + "value": "21955598041" + }, + { + "id": "260", + "key": "_rest_api_client_id", + "value": "-1" + }, + { + "id": "259", + "key": "_rest_api_published", + "value": "1" + }, + { + "id": "266", + "key": "_thumbnail_id", + "value": "62" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/106/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/likes/", + "autosave": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/autosave" + }, + "data": { + "autosave": { + "ID": 262, + "author_ID": "14151046", + "post_ID": 106, + "title": "Photo Contest", + "content": "John was shortlisted for the World Press Photo competition, an international celebration of the best photojournalism of the year.\n\nhttps://twitter.com/wordpressdotcom/status/702181837079187456", + "excerpt": "", + "preview_URL": "http://infocusphotographers.com/2016/04/19/some-news-to-share/?preview=true&preview_nonce=ef0913f6c4", + "modified": "2019-03-21T00:23:25+00:00" + } + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 262, + 109, + 108, + 107 + ], + "other_URLs": { + } + }, + { + "ID": 90, + "site_ID": 106707880, + "author": { + "ID": 100907762, + "login": "leahelainerand", + "email": "andreazoellner+leahrand@gmail.com", + "name": "Leah Elaine Rand", + "first_name": "Leah", + "last_name": "Rand", + "nice_name": "leahelainerand", + "URL": "", + "avatar_URL": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/leahelainerand", + "site_ID": 106523982 + }, + "date": "2016-03-07T18:32:11+00:00", + "modified": "2016-03-16T02:01:50+00:00", + "title": "Martin and Amy's Wedding", + "URL": "http://infocusphotographers.com/2016/03/07/martin-and-amys-wedding/", + "short_URL": "https://wp.me/p7dJAQ-1s", + "content": "Martin and Amy are a wonderful couple that John and I were lucky to photograph. The theme for their wedding was sophisticated but warm and everything had a clearly personal touch.\n\nThey decided they wanted the bulk of their wedding photos to be black and white. While some couples like personal, goofy photos, Amy and Martin found a perfect balance between classic elegance and shots with personality.\n\n \n\nhttps://www.instagram.com/p/BCF4Z6UjRjE/?taken-by=photomatt\n\n \n\nhttps://www.instagram.com/p/8qwIAWDRum/?taken-by=photomatt\n\n ", + "excerpt": "", + "slug": "martin-and-amys-wedding", + "guid": "https://infocusphotographers.wordpress.com/?p=90", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "8ffbda2c616a90c6b92efe4fb016fe95", + "featured_image": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1453857271477-4f9a4081966e1.jpeg", + "post_thumbnail": { + "ID": 82, + "URL": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1453857271477-4f9a4081966e1.jpeg", + "guid": "http://infocusphotographers.files.wordpress.com/2016/02/photo-1453857271477-4f9a4081966e1.jpeg", + "mime_type": "image/jpeg", + "width": 3853, + "height": 2384 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Wedding": { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Wedding": { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "201", + "key": "jabber_published", + "value": "1457375532" + }, + { + "id": "562", + "key": "_edit_lock", + "value": "1555492632:67626417" + }, + { + "id": "248", + "key": "_oembed_4e3318c4371cf9880f6705450efd7fe6", + "value": " " + }, + { + "id": "249", + "key": "_oembed_time_4e3318c4371cf9880f6705450efd7fe6", + "value": "1461101264" + }, + { + "id": "233", + "key": "_publicize_done_13969716", + "value": "1" + }, + { + "id": "232", + "key": "_publicize_done_external", + "value": { + "facebook": { + "13895248": "https://facebook.com/10208752052869141" + } + } + }, + { + "id": "206", + "key": "_publicize_job_id", + "value": "20665553278" + }, + { + "id": "205", + "key": "_rest_api_client_id", + "value": "-1" + }, + { + "id": "204", + "key": "_rest_api_published", + "value": "1" + }, + { + "id": "198", + "key": "_thumbnail_id", + "value": "82" + }, + { + "id": "234", + "key": "_wpas_done_13895248", + "value": "1" + }, + { + "id": "231", + "key": "_wpas_mess", + "value": "An amazing weekend, a wonderful couple, and beautiful photos to match! Check it out!" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/90/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 102, + 101, + 100, + 93, + 92, + 91 + ], + "other_URLs": { + } + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/post-counts/post" + }, + "wpcom": true + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_106.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_106.json new file mode 100644 index 000000000000..a13aaf8e9b34 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_106.json @@ -0,0 +1,160 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/106/", + "queryParameters": { + "context": { + "equalTo": "edit" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 106, + "site_ID": 106707880, + "author": { + "ID": 100907762, + "login": "leahelainerand", + "email": "andreazoellner+leahrand@gmail.com", + "name": "Leah Elaine Rand", + "first_name": "Leah", + "last_name": "Rand", + "nice_name": "leahelainerand", + "URL": "", + "avatar_URL": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/leahelainerand", + "site_ID": 106523982 + }, + "date": "2016-04-19T21:28:27+00:00", + "modified": "2018-03-23T00:20:36+00:00", + "title": "Some News to Share", + "URL": "http://infocusphotographers.com/2016/04/19/some-news-to-share/", + "short_URL": "https://wp.me/p7dJAQ-1I", + "content": "John was shortlisted for the World Press Photo competition, an international celebration of the best photojournalism of the year.\n\nhttps://twitter.com/wordpressdotcom/status/702181837079187456", + "excerpt": "", + "slug": "some-news-to-share", + "guid": "https://infocusphotographers.wordpress.com/?p=106", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "3a10a002b4f389596205c24992732a3e", + "featured_image": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1449761485030-c9bf16154670.jpg", + "post_thumbnail": { + "ID": 62, + "URL": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1449761485030-c9bf16154670.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2016/02/photo-1449761485030-c9bf16154670.jpg", + "mime_type": "image/jpeg", + "width": 1080, + "height": 720 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "254", + "key": "jabber_published", + "value": "1461101308" + }, + { + "id": "266", + "key": "_thumbnail_id", + "value": "62" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/likes/", + "autosave": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/106/autosave" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 262, + 109, + 108, + 107 + ], + "other_URLs": { + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_134.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_134.json new file mode 100644 index 000000000000..7037dd231942 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_134.json @@ -0,0 +1,151 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/134/", + "queryParameters": { + "context": { + "equalTo": "edit" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 134, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@wordpress.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2019-03-19T03:08:16+00:00", + "modified": "2019-05-27T21:39:08+00:00", + "title": "Now Booking Summer Sessions", + "URL": "http://infocusphotographers.com/?p=134", + "short_URL": "https://wp.me/p7dJAQ-2a", + "content": "“One must maintain a little bit of summer, even in the middle of winter.” \n\n– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n
Our deluxe grooming service includes:
\n\n\n\nDeluxe Cut and Groom
\n\n\n\nOur deluxe cut and groom package includes everything in the deluxe groom plus a haircut.
\n\n\n\nAdd on services
\n\n\n\nPamper your pup even more with one of our signature add on services:
\n\n\n\n\n\n\n\n“One must maintain a little bit of summer, even in the middle of winter.”
– Henry David Thoreau
Blue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!
\n\n\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.
\n\n\n\n\n\n\n\nHow to book
\n\n\n\nEmail us to set up a time to visit our studio.
\n", + "excerpt": "", + "slug": "__trashed-2", + "guid": "http://infocusphotographers.com/?p=225", + "status": "draft", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "2d07f957bcc110149b8aa37bd1231ad1", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "attachments": { + "243": { + "ID": 243, + "URL": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg", + "date": "2019-03-20T23:56:52+00:00", + "post_ID": 225, + "author_ID": 14151046, + "file": "beach-children-family-39691.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "beach-children-family-39691", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg?w=150", + "medium": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg?w=300", + "large": "https://infocusphotographers.files.wordpress.com/2019/01/beach-children-family-39691.jpg?w=1024" + }, + "height": 2446, + "width": 3669, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/media/243", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/media/243/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225" + } + } + } + }, + "attachment_count": 1, + "metadata": false, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/225/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 271, + 235, + 229, + 228, + 227, + 226 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/01/01/%postname%/", + "suggested_slug": "__trashed-2" + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_237.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_237.json new file mode 100644 index 000000000000..886c2c03c1e9 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_237.json @@ -0,0 +1,216 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/237/", + "queryParameters": { + "context": { + "equalTo": "edit" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 237, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@wordpress.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2019-03-13T23:48:58+00:00", + "modified": "2019-03-21T17:19:25+00:00", + "title": "Photo Contest", + "URL": "http://infocusphotographers.com/2019/03/13/some-news-to-share-2/", + "short_URL": "https://wp.me/p7dJAQ-3P", + "content": "\nIn Focus Photography was nominated for an international photo award!
\n\n\n\n\n", + "excerpt": "", + "slug": "some-news-to-share-2", + "guid": "http://infocusphotographers.com/?p=237", + "status": "private", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "9dc6f7941b6a68fc2323b652c4e9516b", + "featured_image": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "post_thumbnail": { + "ID": 238, + "URL": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "mime_type": "image/jpeg", + "width": 4256, + "height": 2628 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "attachments": { + "238": { + "ID": 238, + "URL": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "guid": "http://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg", + "date": "2019-03-20T23:44:49+00:00", + "post_ID": 237, + "author_ID": 14151046, + "file": "art-bright-celebration-1313817.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "art-bright-celebration-1313817", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg?w=150", + "medium": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg?w=300", + "large": "https://infocusphotographers.files.wordpress.com/2019/03/art-bright-celebration-1313817.jpg?w=1024" + }, + "height": 2628, + "width": 4256, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/media/238", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/media/238/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "493", + "key": "email_notification", + "value": "1553125740" + }, + { + "id": "486", + "key": "jabber_published", + "value": "1553125739" + }, + { + "id": "491", + "key": "timeline_notification", + "value": "1553125810" + }, + { + "id": "484", + "key": "_thumbnail_id", + "value": "238" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/237/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 269, + 263, + 239 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/03/13/%postname%/", + "suggested_slug": "some-news-to-share-2" + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_265.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_265.json new file mode 100644 index 000000000000..d9353f7b5fed --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_265.json @@ -0,0 +1,148 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/265/", + "queryParameters": { + "context": { + "equalTo": "edit" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 265, + "site_ID": 106707880, + "author": { + "ID": 68646169, + "login": "thenomadicwordsmith", + "email": "thenomadicwordsmith@wordpress.com", + "name": "thenomadicwordsmith", + "first_name": "Nomadic", + "last_name": "Wordsmith", + "nice_name": "thenomadicwordsmith", + "URL": "http://thenomadicwordsmith.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/9ba48385fc40dfd9a55a3348d8e7f4d9?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/thenomadicwordsmith", + "site_ID": 71769073 + }, + "date": "2019-04-17T10:40:39+00:00", + "modified": "2019-04-17T10:41:03+00:00", + "title": "What we've been doing lately", + "URL": "http://infocusphotographers.com/?p=265", + "short_URL": "https://wp.me/p7dJAQ-4h", + "content": "\r\nThe last few weeks have been a blur! Here are a few shots we really like. What do you think?
\r\n\r\n\r\n\r\n“One must maintain a little bit of summer, even in the middle of winter.”\n\n– Henry David Thoreau\nBlue skies and warm weather, what's not to love about summer? It's a great season for outdoor family portrait sessions and now is the time to book them!\n\nWe offer a number of family portrait packages and for a limited time are offering 15% off packages booked before April 1.\n\nHow to book\n\nEmail us to set up a time to visit our studio.", + "excerpt": "", + "slug": "", + "guid": "http://infocusphotographers.com/?p=396", + "status": "draft", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": false, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "276e4cea0342ec68e69a0ca537acfce1", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "742", + "key": "sharing_disabled", + "value": [ + + ] + }, + { + "id": "741", + "key": "switch_like_status", + "value": "" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/396/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 399, + 398 + ], + "other_URLs": { + "permalink_URL": "http://infocusphotographers.com/2019/05/28/%postname%/", + "suggested_slug": "now-booking-summer-sessions-2" + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_90.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_90.json new file mode 100644 index 000000000000..c9e49d952aee --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/posts_90.json @@ -0,0 +1,171 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/posts/90/", + "queryParameters": { + "context": { + "equalTo": "edit" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 90, + "site_ID": 106707880, + "author": { + "ID": 100907762, + "login": "leahelainerand", + "email": "andreazoellner+leahrand@gmail.com", + "name": "Leah Elaine Rand", + "first_name": "Leah", + "last_name": "Rand", + "nice_name": "leahelainerand", + "URL": "", + "avatar_URL": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/leahelainerand", + "site_ID": 106523982 + }, + "date": "2016-03-07T18:32:11+00:00", + "modified": "2016-03-16T02:01:50+00:00", + "title": "Martin and Amy's Wedding", + "URL": "http://infocusphotographers.com/2016/03/07/martin-and-amys-wedding/", + "short_URL": "https://wp.me/p7dJAQ-1s", + "content": "Martin and Amy are a wonderful couple that John and I were lucky to photograph. The theme for their wedding was sophisticated but warm and everything had a clearly personal touch.\n\nThey decided they wanted the bulk of their wedding photos to be black and white. While some couples like personal, goofy photos, Amy and Martin found a perfect balance between classic elegance and shots with personality.\n\n \n\nhttps://www.instagram.com/p/BCF4Z6UjRjE/?taken-by=photomatt\n\n \n\nhttps://www.instagram.com/p/8qwIAWDRum/?taken-by=photomatt\n\n ", + "excerpt": "", + "slug": "martin-and-amys-wedding", + "guid": "https://infocusphotographers.wordpress.com/?p=90", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "8ffbda2c616a90c6b92efe4fb016fe95", + "featured_image": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1453857271477-4f9a4081966e1.jpeg", + "post_thumbnail": { + "ID": 82, + "URL": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1453857271477-4f9a4081966e1.jpeg", + "guid": "http://infocusphotographers.files.wordpress.com/2016/02/photo-1453857271477-4f9a4081966e1.jpeg", + "mime_type": "image/jpeg", + "width": 3853, + "height": 2384 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Wedding": { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + }, + "categories": { + "Wedding": { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "201", + "key": "jabber_published", + "value": "1457375532" + }, + { + "id": "198", + "key": "_thumbnail_id", + "value": "82" + }, + { + "id": "234", + "key": "_wpas_done_13895248", + "value": "1" + }, + { + "id": "231", + "key": "_wpas_mess", + "value": "An amazing weekend, a wonderful couple, and beautiful photos to match! Check it out!" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/90/likes/" + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "revisions": [ + 102, + 101, + 100, + 93, + 92, + 91 + ], + "other_URLs": { + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/rest_v12_sites_181851495_posts-draft,pending.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/rest_v12_sites_181851495_posts-draft,pending.json new file mode 100644 index 000000000000..6d342ae93832 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/posts/rest_v12_sites_181851495_posts-draft,pending.json @@ -0,0 +1,163 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.2/sites/181851495/posts", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "context": { + "equalTo": "edit" + }, + "meta": { + "equalTo": "autosave" + }, + "number": { + "equalTo": "40" + }, + "status": { + "equalTo": "draft,pending" + }, + "type": { + "equalTo": "post" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 1, + "posts": [ + { + "ID": 67, + "site_ID": 181851495, + "author": { + "ID": 152748359, + "login": "appstorescreens", + "email": "main.ee0zglcj@mailosaur.io", + "name": "appstorescreens", + "first_name": "", + "last_name": "", + "nice_name": "appstorescreens", + "URL": "http://tricountyrealestate.wordpress.com", + "avatar_URL": "https://0.gravatar.com/avatar/35029b2103460109f574c38dfeea5f3f?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/appstorescreens", + "site_ID": 181851541 + }, + "date": "2020-10-05T05:10:17-07:00", + "modified": "2020-10-05T05:12:29-07:00", + "title": "Our Services", + "URL": "https://fourpawsdoggrooming.wordpress.com/our-services/", + "short_URL": "https://wp.me/pcj1SD-15", + "content": "\n
Our deluxe grooming service includes:
\n\n\n\nDeluxe Cut and Groom
\n\n\n\nOur deluxe cut and groom package includes everything in the deluxe groom plus a haircut.
\n\n\n\nAdd on services
\n\n\n\nPamper your pup even more with one of our signature add on services:
\n\n\n\nThe most impossible sounding thing about the Impossible Burger isn’t the idea of a delicious meatless protein — some of us have been eating delicious meat substitutes for years — it’s hearing people talk about this food product in terms of scalability, optics, engineering, and “manufacturable prototypes.” The future has arrived, and it tastes better than it sounds. Chris Ip writes for Engadget about the brief history, challenges, and ambitions of Impossible Foods’ meat-free technology, and how its success relates to a planet that’s warming partly because of industrial beef production.
\n\n\n", + "excerpt": "“Ethical consumerism is a failure and doesn’t really accomplish what we want it to accomplish,” said Michael Selden, CEO and founder of Finless Foods, a cell-based seafood startup. “What you need to do is create things that are ethical and moral as a baseline but make them compete on metrics of taste, price and convenience, which is what people actually buy food on, and Impossible has really embodied that.”
\nThere’s a comparison to sustainable energy here: We all need it and we’re barely willing to curtail our electricity demands, but if there’s a price-competitive, clean alternative, then sure. With food, it’s an acknowledgement that — solely for the guaranteed sensory enjoyment that those who are food secure might enjoy each day — taste is the key driver to change our habits.
\nThis leaves Impossible in a nice position. The global economic demand for meat combined with the swelling cultural-political urgency to curtail it could be great for business if you have a legitimate alternative. And the high-risk-high-reward venture capital system demands startups that can pitch themselves as limitlessly scalable. A worldwide problem of this degree means that Impossible can plausibly — and not disingenuously — bridge both a business goal of sky’s-the-limit growth and a messianic narrative. Brown’s social mission aligns with his profit-seeking obligation in ways that can make as much sense to private equity as to Katy Perry.
Can Impossible Foods’ meat facsimiles save us from our carnivorous appetites?
\n", + "slug": "optimizing-meat-2-0", + "guid": "http://longreads.com/?p=125073", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 34, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "06ab8cb0a8b05a409928d97bcbf022e0", + "featured_image": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg", + "post_thumbnail": { + "ID": 125103, + "URL": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg", + "guid": "http://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg", + "mime_type": "image/jpeg", + "width": 6000, + "height": 4000 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "culture": { + "ID": 1098, + "name": "culture", + "slug": "culture", + "description": "", + "post_count": 88, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Editor's Pick": { + "ID": 259543, + "name": "Editor's Pick", + "slug": "editors-pick", + "description": "", + "post_count": 1395, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:editors-pick", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:editors-pick/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Food": { + "ID": 586, + "name": "Food", + "slug": "food", + "description": "", + "post_count": 95, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:food", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:food/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Nonfiction": { + "ID": 35009777, + "name": "Nonfiction", + "slug": "nonfiction", + "description": "", + "post_count": 3803, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:nonfiction", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:nonfiction/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Quotes": { + "ID": 28016040, + "name": "Quotes", + "slug": "quotes", + "description": "", + "post_count": 2544, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:quotes", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:quotes/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + } + }, + "post_tag": { + "Chris Ip": { + "ID": 89063115, + "name": "Chris Ip", + "slug": "chris-ip", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:chris-ip", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:chris-ip/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Engadget": { + "ID": 70021, + "name": "Engadget", + "slug": "engadget", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:engadget", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:engadget/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "fake meat": { + "ID": 506195, + "name": "fake meat", + "slug": "fake-meat", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:fake-meat", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:fake-meat/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "food technology": { + "ID": 1272213, + "name": "food technology", + "slug": "food-technology", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:food-technology", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:food-technology/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "food writing": { + "ID": 93032, + "name": "food writing", + "slug": "food-writing", + "description": "", + "post_count": 30, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:food-writing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:food-writing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "meat industry": { + "ID": 231639, + "name": "meat industry", + "slug": "meat-industry", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:meat-industry", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:meat-industry/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "Chris Ip": { + "ID": 89063115, + "name": "Chris Ip", + "slug": "chris-ip", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:chris-ip", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:chris-ip/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + }, + "display_name": "chris-ip" + }, + "Engadget": { + "ID": 70021, + "name": "Engadget", + "slug": "engadget", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:engadget", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:engadget/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + }, + "display_name": "engadget" + }, + "fake meat": { + "ID": 506195, + "name": "fake meat", + "slug": "fake-meat", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:fake-meat", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:fake-meat/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + }, + "display_name": "fake-meat" + }, + "food technology": { + "ID": 1272213, + "name": "food technology", + "slug": "food-technology", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:food-technology", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:food-technology/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + }, + "display_name": "food-technology" + }, + "food writing": { + "ID": 93032, + "name": "food writing", + "slug": "food-writing", + "description": "", + "post_count": 30, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:food-writing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:food-writing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + }, + "display_name": "food-writing" + }, + "meat industry": { + "ID": 231639, + "name": "meat industry", + "slug": "meat-industry", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/tags/slug:meat-industry", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/tags/slug:meat-industry/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + }, + "display_name": "meat-industry" + } + }, + "categories": { + "culture": { + "ID": 1098, + "name": "culture", + "slug": "culture", + "description": "", + "post_count": 88, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Editor's Pick": { + "ID": 259543, + "name": "Editor's Pick", + "slug": "editors-pick", + "description": "", + "post_count": 1395, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:editors-pick", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:editors-pick/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Food": { + "ID": 586, + "name": "Food", + "slug": "food", + "description": "", + "post_count": 95, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:food", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:food/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Nonfiction": { + "ID": 35009777, + "name": "Nonfiction", + "slug": "nonfiction", + "description": "", + "post_count": 3803, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:nonfiction", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:nonfiction/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + }, + "Quotes": { + "ID": 28016040, + "name": "Quotes", + "slug": "quotes", + "description": "", + "post_count": 2544, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/categories/slug:quotes", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/categories/slug:quotes/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762" + } + } + } + }, + "attachments": { + "125103": { + "ID": 125103, + "URL": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg", + "guid": "http://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg", + "date": "2019-05-22T15:59:07-04:00", + "post_ID": 125073, + "author_ID": 7867135, + "file": "ap_19093580335314.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "The New Meat", + "caption": "AP Photo/Nati Harnik", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg?w=150", + "medium": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg?w=300", + "large": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg?w=1024" + }, + "height": 4000, + "width": 6000, + "exif": { + "aperture": "10", + "credit": "AP", + "camera": "ILCE-7M3", + "caption": "FILE- This Jan. 11, 2019, file photo shows the Impossible Burger, a plant-based burger containing wheat protein, coconut oil and potato protein among it's ingredients in Bellevue, Neb. From soy-based sliders to ground lentil sausages, plant-based meat substitutes are surging in popularity. Growing demand for healthier, more sustainable food is one reason people are seeking plant-based meats. (AP Photo/Nati Harnik, File)", + "created_timestamp": "1547234932", + "copyright": "Copyright 2019 The Associated Press. All rights reserved", + "focal_length": "50", + "iso": "800", + "shutter_speed": "0.01", + "title": "The New Meat", + "orientation": "1", + "keywords": [ + "faux meat;fake meat;vegan" + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/media/125103", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/media/125103/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/posts/125073" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "463770", + "key": "geo_public", + "value": "0" + }, + { + "id": "463900", + "key": "_thumbnail_id", + "value": "125103" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/posts/125073", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/posts/125073/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/posts/125073/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/posts/125073/likes/" + }, + "data": { + "site": { + "ID": 70135762, + "name": "Longreads", + "description": "The best longform stories on the web", + "URL": "http://longreads.com", + "jetpack": false, + "post_count": 6794, + "subscribers_count": 41078065, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/e68667ec6ee7cdd0c6b5416a84c52a9c", + "ico": "https://secure.gravatar.com/blavatar/e68667ec6ee7cdd0c6b5416a84c52a9c" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/70135762/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/70135762/comments/", + "xmlrpc": "https://longreadsblog.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "pseudo_ID": "06ab8cb0a8b05a409928d97bcbf022e0", + "is_external": false, + "site_name": "Longreads", + "site_URL": "http://longreads.com", + "site_is_private": false, + "featured_media": { + "uri": "https://longreadsblog.files.wordpress.com/2019/05/ap_19093580335314.jpg", + "width": 6000, + "height": 4000, + "type": "image" + }, + "feed_ID": 22973954, + "feed_URL": "http://longreads.com", + "is_jetpack": false, + "use_excerpt": false, + "feed_item_ID": 2286928700, + "word_count": 327, + "is_following_conversation": false + }, + { + "ID": 441, + "site_ID": 106707880, + "author": { + "ID": 152748359, + "login": "e2eflowtestingmobile", + "email": false, + "name": "e2eflowtestingmobile", + "first_name": "", + "last_name": "", + "nice_name": "e2eflowtestingmobile", + "URL": "http://e2eflowtestingmobile.wordpress.com", + "avatar_URL": "https://1.gravatar.com/avatar/7a4015c11be6a342f65e0e169092d402?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/e2eflowtestingmobile", + "site_ID": 106707880, + "has_avatar": false + }, + "date": "2019-05-23T12:48:28+00:00", + "modified": "2019-05-23T12:48:28+00:00", + "title": "Dolor Sit Elit", + "URL": "https://e2eflowtestingmobile.wordpress.com/2019/05/23/dolor-sit-elit/", + "short_URL": "https://wp.me/paIC9Y-77", + "content": "\nProin dictum non ligula aliquam varius. Nam congue efficitur leo eget porta. Nam congue efficitur leo eget porta. Nam congue efficitur leo eget porta.
\n\n\n\nProin dictum non ligula aliquam varius. Nam congue efficitur leo eget porta. Nam congue efficitur leo eget porta. Nam congue efficitur leo eget porta.
\n", + "slug": "dolor-sit-elit", + "guid": "https://e2eflowtestingmobile.wordpress.com/2019/05/23/dolor-sit-elit/", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "3a68b6b54d7e3f2fb5f69904c4039c49", + "featured_image": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg", + "post_thumbnail": { + "ID": 440, + "URL": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg", + "guid": "http://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg", + "mime_type": "image/jpeg", + "width": 1024, + "height": 768 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "iOS Test": { + "ID": 43134051, + "name": "iOS Test", + "slug": "ios-test", + "description": "", + "post_count": 58, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:ios-test", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:ios-test/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + "tag 2019-05-23 01:47:54271": { + "ID": 680249593, + "name": "tag 2019-05-23 01:47:54271", + "slug": "tag-2019-05-23-014754271", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/tags/slug:tag-2019-05-23-014754271", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/tags/slug:tag-2019-05-23-014754271/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "tag 2019-05-23 01:47:54271": { + "ID": 680249593, + "name": "tag 2019-05-23 01:47:54271", + "slug": "tag-2019-05-23-014754271", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/tags/slug:tag-2019-05-23-014754271", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/tags/slug:tag-2019-05-23-014754271/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + }, + "display_name": "tag-2019-05-23-014754271" + } + }, + "categories": { + "iOS Test": { + "ID": 43134051, + "name": "iOS Test", + "slug": "ios-test", + "description": "", + "post_count": 58, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:ios-test", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:ios-test/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + "440": { + "ID": 440, + "URL": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg", + "guid": "http://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg", + "date": "2019-05-23T12:48:14+00:00", + "post_ID": 441, + "author_ID": 152748359, + "file": "test-image-device-photo-gps-7.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "test-image-device-photo-gps", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg?w=150", + "medium": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg?w=300", + "large": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg?w=1024" + }, + "height": 768, + "width": 1024, + "exif": { + "aperture": "2.2", + "credit": "", + "camera": "iPhone 6 Plus", + "caption": "", + "created_timestamp": "1438604307", + "copyright": "", + "focal_length": "4.15", + "iso": "32", + "shutter_speed": "0.00055586436909394", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/media/440", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/media/440/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/441" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "3496", + "key": "jabber_published", + "value": "1558615709" + }, + { + "id": "3507", + "key": "timeline_notification", + "value": "1558615711" + }, + { + "id": "3501", + "key": "_thumbnail_id", + "value": "440" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/441", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/441/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/441/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/441/likes/" + }, + "data": { + "site": { + "ID": 106707880, + "name": "Mobile E2E Testing", + "description": "", + "URL": "https://e2eflowtestingmobile.wordpress.com", + "capabilities": { + "edit_pages": true, + "edit_posts": true, + "edit_others_posts": true, + "edit_others_pages": true, + "delete_posts": true, + "delete_others_posts": true, + "edit_theme_options": true, + "edit_users": false, + "list_users": true, + "manage_categories": true, + "manage_options": true, + "moderate_comments": true, + "activate_wordads": true, + "promote_users": true, + "publish_posts": true, + "upload_files": true, + "delete_users": false, + "remove_users": true, + "view_stats": true + }, + "jetpack": false, + "is_multisite": true, + "post_count": 261, + "subscribers_count": 1, + "locale": "en", + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "single_user_site": true, + "is_vip": false, + "is_following": true, + "options": { + "timezone": "", + "gmt_offset": 0, + "blog_public": 1, + "videopress_enabled": false, + "upgraded_filetypes_enabled": false, + "login_url": "https://e2eflowtestingmobile.wordpress.com/wp-login.php", + "admin_url": "https://e2eflowtestingmobile.wordpress.com/wp-admin/", + "is_mapped_domain": false, + "is_redirect": false, + "unmapped_url": "https://e2eflowtestingmobile.wordpress.com", + "featured_images_enabled": false, + "theme_slug": "pub/independent-publisher-2", + "header_image": false, + "background_color": false, + "image_default_link_type": "none", + "image_thumbnail_width": 150, + "image_thumbnail_height": 150, + "image_thumbnail_crop": 0, + "image_medium_width": 300, + "image_medium_height": 300, + "image_large_width": 1024, + "image_large_height": 1024, + "permalink_structure": "/%year%/%monthnum%/%day%/%postname%/", + "post_formats": [ + + ], + "default_post_format": "standard", + "default_category": 1, + "allowed_file_types": [ + "jpg", + "jpeg", + "png", + "gif", + "pdf", + "doc", + "ppt", + "odt", + "pptx", + "docx", + "pps", + "ppsx", + "xls", + "xlsx", + "key" + ], + "show_on_front": "posts", + "default_likes_enabled": true, + "default_sharing_status": true, + "default_comment_status": true, + "default_ping_status": true, + "software_version": "5.2.2-alpha-45377", + "created_at": "2019-02-14T09:49:46+00:00", + "wordads": false, + "publicize_permanently_disabled": false, + "frame_nonce": "4f06a891f5", + "jetpack_frame_nonce": "4f06a891f5", + "headstart": false, + "headstart_is_fresh": false, + "ak_vp_bundle_enabled": null, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "verification_services_codes": null, + "podcasting_archive": null, + "is_domain_only": false, + "is_automated_transfer": false, + "is_wpcom_atomic": false, + "is_wpcom_store": false, + "woocommerce_is_active": false, + "design_type": "blog", + "site_goals": null, + "site_segment": null + }, + "plan": { + "product_id": 1, + "product_slug": "free_plan", + "product_name_short": "Free", + "expired": false, + "user_is_owner": false, + "is_free": true, + "features": { + "active": [ + "free-blog", + "space", + "support" + ], + "available": { + "free-blog": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "custom-domain": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "space": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "support": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "no-adverts/no-adverts.php": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "custom-design": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "videopress": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "unlimited_themes": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "live_support": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "simple-payments": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "premium-themes": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "google-analytics": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ] + } + } + }, + "jetpack_modules": null, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/comments/", + "xmlrpc": "https://e2eflowtestingmobile.wordpress.com/xmlrpc.php" + } + }, + "quota": { + "space_allowed": 3221225472, + "space_used": 586919661, + "percent_used": 18.22038432583213, + "space_available": 2634305811 + } + } + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "other_URLs": { + }, + "pseudo_ID": "3a68b6b54d7e3f2fb5f69904c4039c49", + "is_external": false, + "site_name": "Mobile E2E Testing", + "site_URL": "https://e2eflowtestingmobile.wordpress.com", + "site_is_private": false, + "featured_media": { + "uri": "https://e2eflowtestingmobile.files.wordpress.com/2019/05/test-image-device-photo-gps-7.jpg", + "width": 1024, + "height": 768, + "type": "image" + }, + "feed_ID": 93780362, + "feed_URL": "http://e2eflowtestingmobile.wordpress.com", + "is_jetpack": false, + "use_excerpt": false, + "feed_item_ID": 2286909370, + "word_count": 23, + "is_following_conversation": true + }, + { + "ID": 439, + "site_ID": 106707880, + "author": { + "ID": 152748359, + "login": "e2eflowtestingmobile", + "email": false, + "name": "e2eflowtestingmobile", + "first_name": "", + "last_name": "", + "nice_name": "e2eflowtestingmobile", + "URL": "http://e2eflowtestingmobile.wordpress.com", + "avatar_URL": "https://1.gravatar.com/avatar/7a4015c11be6a342f65e0e169092d402?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/e2eflowtestingmobile", + "site_ID": 106707880, + "has_avatar": false + }, + "date": "2019-05-23T12:46:55+00:00", + "modified": "2019-05-23T12:46:55+00:00", + "title": "Sit Elit Adipiscing Elit Dolor Lorem", + "URL": "https://e2eflowtestingmobile.wordpress.com/2019/05/23/sit-elit-adipiscing-elit-dolor-lorem/", + "short_URL": "https://wp.me/paIC9Y-75", + "content": "\nAenean vehicula nunc in sapien rutrum, nec vehicula enim iaculis. Aenean vehicula nunc in sapien rutrum, nec vehicula enim iaculis. Proin dictum non ligula aliquam varius. Nam ornare accumsan ante, sollicitudin bibendum erat bibendum nec. Aenean vehicula nunc in sapien rutrum, nec vehicula enim iaculis.
\n", + "excerpt": "Aenean vehicula nunc in sapien rutrum, nec vehicula enim iaculis. Aenean vehicula nunc in sapien rutrum, nec vehicula enim iaculis. Proin dictum non ligula aliquam varius. Nam ornare accumsan ante, sollicitudin bibendum erat bibendum nec. Aenean vehicula nunc in sapien rutrum, nec vehicula enim iaculis.
\n", + "slug": "sit-elit-adipiscing-elit-dolor-lorem", + "guid": "https://e2eflowtestingmobile.wordpress.com/2019/05/23/sit-elit-adipiscing-elit-dolor-lorem/", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 0, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "d0a5af2d4026b8326ef145c4986e9ecc", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 196, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "post_tag": { + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": [ + + ], + "categories": { + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 196, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "3482", + "key": "jabber_published", + "value": "1558615616" + }, + { + "id": "3490", + "key": "timeline_notification", + "value": "1558615617" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/439", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/439/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/439/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/439/likes/" + }, + "data": { + "site": { + "ID": 106707880, + "name": "Mobile E2E Testing", + "description": "", + "URL": "https://e2eflowtestingmobile.wordpress.com", + "capabilities": { + "edit_pages": true, + "edit_posts": true, + "edit_others_posts": true, + "edit_others_pages": true, + "delete_posts": true, + "delete_others_posts": true, + "edit_theme_options": true, + "edit_users": false, + "list_users": true, + "manage_categories": true, + "manage_options": true, + "moderate_comments": true, + "activate_wordads": true, + "promote_users": true, + "publish_posts": true, + "upload_files": true, + "delete_users": false, + "remove_users": true, + "view_stats": true + }, + "jetpack": false, + "is_multisite": true, + "post_count": 261, + "subscribers_count": 1, + "locale": "en", + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "single_user_site": true, + "is_vip": false, + "is_following": true, + "options": { + "timezone": "", + "gmt_offset": 0, + "blog_public": 1, + "videopress_enabled": false, + "upgraded_filetypes_enabled": false, + "login_url": "https://e2eflowtestingmobile.wordpress.com/wp-login.php", + "admin_url": "https://e2eflowtestingmobile.wordpress.com/wp-admin/", + "is_mapped_domain": false, + "is_redirect": false, + "unmapped_url": "https://e2eflowtestingmobile.wordpress.com", + "featured_images_enabled": false, + "theme_slug": "pub/independent-publisher-2", + "header_image": false, + "background_color": false, + "image_default_link_type": "none", + "image_thumbnail_width": 150, + "image_thumbnail_height": 150, + "image_thumbnail_crop": 0, + "image_medium_width": 300, + "image_medium_height": 300, + "image_large_width": 1024, + "image_large_height": 1024, + "permalink_structure": "/%year%/%monthnum%/%day%/%postname%/", + "post_formats": [ + + ], + "default_post_format": "standard", + "default_category": 1, + "allowed_file_types": [ + "jpg", + "jpeg", + "png", + "gif", + "pdf", + "doc", + "ppt", + "odt", + "pptx", + "docx", + "pps", + "ppsx", + "xls", + "xlsx", + "key" + ], + "show_on_front": "posts", + "default_likes_enabled": true, + "default_sharing_status": true, + "default_comment_status": true, + "default_ping_status": true, + "software_version": "5.2.2-alpha-45377", + "created_at": "2019-02-14T09:49:46+00:00", + "wordads": false, + "publicize_permanently_disabled": false, + "frame_nonce": "4f06a891f5", + "jetpack_frame_nonce": "4f06a891f5", + "headstart": false, + "headstart_is_fresh": false, + "ak_vp_bundle_enabled": null, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "verification_services_codes": null, + "podcasting_archive": null, + "is_domain_only": false, + "is_automated_transfer": false, + "is_wpcom_atomic": false, + "is_wpcom_store": false, + "woocommerce_is_active": false, + "design_type": "blog", + "site_goals": null, + "site_segment": null + }, + "plan": { + "product_id": 1, + "product_slug": "free_plan", + "product_name_short": "Free", + "expired": false, + "user_is_owner": false, + "is_free": true, + "features": { + "active": [ + "free-blog", + "space", + "support" + ], + "available": { + "free-blog": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "custom-domain": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "space": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "support": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "no-adverts/no-adverts.php": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "custom-design": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "videopress": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "unlimited_themes": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "live_support": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "simple-payments": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "premium-themes": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ], + "google-analytics": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y" + ] + } + } + }, + "jetpack_modules": null, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/106707880/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/comments/", + "xmlrpc": "https://e2eflowtestingmobile.wordpress.com/xmlrpc.php" + } + }, + "quota": { + "space_allowed": 3221225472, + "space_used": 586919661, + "percent_used": 18.22038432583213, + "space_available": 2634305811 + } + } + } + }, + "capabilities": { + "publish_post": true, + "delete_post": true, + "edit_post": true + }, + "other_URLs": { + }, + "pseudo_ID": "d0a5af2d4026b8326ef145c4986e9ecc", + "is_external": false, + "site_name": "Mobile E2E Testing", + "site_URL": "https://e2eflowtestingmobile.wordpress.com", + "site_is_private": false, + "featured_media": { + }, + "feed_ID": 93780362, + "feed_URL": "http://e2eflowtestingmobile.wordpress.com", + "is_jetpack": false, + "use_excerpt": false, + "feed_item_ID": 2286906998, + "word_count": 44, + "is_following_conversation": true + } + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_menu.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_menu.json new file mode 100644 index 000000000000..ba05ef634cbf --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_menu.json @@ -0,0 +1,226 @@ +{ + "request": { + "urlPath": "/rest/v1.2/read/menu", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "default": { + "following": { + "title": "Followed Sites", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/following" + }, + "discover": { + "title": "Discover", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/sites/53424024/posts" + }, + "liked": { + "title": "My Likes", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/liked" + } + }, + "subscribed": { + "436": { + "ID": "436", + "title": "Photography", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/photography/posts", + "slug": "photography", + "display_name": "photography", + "type": "tag" + } + }, + "recommended": { + "116": { + "ID": 116, + "title": "Religion", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/religion/posts", + "slug": "religion", + "display_name": "religion", + "type": "tag" + }, + "178": { + "ID": 178, + "title": "Books", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/books/posts", + "slug": "books", + "display_name": "books", + "type": "tag" + }, + "200": { + "ID": 200, + "title": "Travel", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/travel/posts", + "slug": "travel", + "display_name": "travel", + "type": "tag" + }, + "376": { + "ID": 376, + "title": "Humor", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/humor/posts", + "slug": "humor", + "display_name": "humor", + "type": "tag" + }, + "406": { + "ID": 406, + "title": "Family", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/family/posts", + "slug": "family", + "display_name": "family", + "type": "tag" + }, + "436": { + "ID": 436, + "title": "Photography", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/photography/posts", + "slug": "photography", + "display_name": "photography", + "type": "tag" + }, + "586": { + "ID": 586, + "title": "Food", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/food/posts", + "slug": "food", + "display_name": "food", + "type": "tag" + }, + "676": { + "ID": 676, + "title": "Websites", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/websites/posts", + "slug": "websites", + "display_name": "websites", + "type": "tag" + }, + "1098": { + "ID": 1098, + "title": "Culture", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/culture/posts", + "slug": "culture", + "display_name": "culture", + "type": "tag" + }, + "2806": { + "ID": 2806, + "title": "Art & Design", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/art-design/posts", + "slug": "art-design", + "display_name": "art-design", + "type": "tag" + }, + "3750": { + "ID": 3750, + "title": "Magazines", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/magazines/posts", + "slug": "magazines", + "display_name": "magazines", + "type": "tag" + }, + "13985": { + "ID": 13985, + "title": "Health & Wellness", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/health-wellness/posts", + "slug": "health-wellness", + "display_name": "health-wellness", + "type": "tag" + }, + "26879": { + "ID": 26879, + "title": "Portfolios", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/portfolios/posts", + "slug": "portfolios", + "display_name": "portfolios", + "type": "tag" + }, + "38881": { + "ID": 38881, + "title": "Science & Nature", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/science-nature/posts", + "slug": "science-nature", + "display_name": "science-nature", + "type": "tag" + }, + "84776": { + "ID": 84776, + "title": "News & Current Events", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/news-current-events/posts", + "slug": "news-current-events", + "display_name": "news-current-events", + "type": "tag" + }, + "258845": { + "ID": 258845, + "title": "Business & Technology", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/business-technology/posts", + "slug": "business-technology", + "display_name": "business-technology", + "type": "tag" + }, + "960817": { + "ID": 960817, + "title": "Fiction & Poetry", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/fiction-poetry/posts", + "slug": "fiction-poetry", + "display_name": "fiction-poetry", + "type": "tag" + }, + "998458": { + "ID": 998458, + "title": "Writing & Blogging", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/writing-blogging/posts", + "slug": "writing-blogging", + "display_name": "writing-blogging", + "type": "tag" + }, + "1446729": { + "ID": 1446729, + "title": "Sports & Gaming", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/sports-gaming/posts", + "slug": "sports-gaming", + "display_name": "sports-gaming", + "type": "tag" + }, + "10016773": { + "ID": 10016773, + "title": "Musings & Personal", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/musings-personal/posts", + "slug": "musings-personal", + "display_name": "musings-personal", + "type": "tag" + }, + "35328892": { + "ID": 35328892, + "title": "Longreads", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/longreads/posts", + "slug": "longreads", + "display_name": "longreads", + "type": "tag" + }, + "63611190": { + "ID": 63611190, + "title": "Crafts & Fashion", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/crafts-fashion/posts", + "slug": "crafts-fashion", + "display_name": "crafts-fashion", + "type": "tag" + }, + "87210105": { + "ID": 87210105, + "title": "Popular Culture & Entertainment", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/popular-culture-entertainment/posts", + "slug": "popular-culture-entertainment", + "display_name": "popular-culture-entertainment", + "type": "tag" + } + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_sites_discover.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_sites_discover.json new file mode 100644 index 000000000000..fc2ab7799478 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_sites_discover.json @@ -0,0 +1,88 @@ +{ + "request": { + "urlPattern": "/rest/v1.2/read/sites/53424024(/)?($|\\?.*)", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3620, + "subscribers_count": 35560543, + "lang": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php", + "featured": "{{request.requestLine.baseUrl}}/rest/v1.2/read/sites/53424024/featured" + } + }, + "launch_status": false, + "capabilities": { + "edit_pages": false, + "edit_posts": false, + "edit_others_posts": false, + "edit_theme_options": false, + "list_users": false, + "manage_categories": false, + "manage_options": false, + "publish_posts": false, + "upload_files": false, + "view_stats": false + }, + "is_multi_author": true, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "header_image": false, + "owner": { + "ID": 26957695, + "login": "a8cuser", + "name": "Automattic", + "first_name": "Automattic", + "last_name": "", + "nice_name": "a8cuser", + "URL": "", + "avatar_URL": "https://1.gravatar.com/avatar/a64c4a50f3f38f02cd27a9bfb3f11b62?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/a8cuser", + "ip_address": false, + "site_visible": true, + "has_avatar": true + }, + "subscription": { + "delivery_methods": { + "email": null, + "notification": { + "send_posts": false + } + } + }, + "is_blocked": false + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_sites_discover_posts.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_sites_discover_posts.json new file mode 100644 index 000000000000..baa805b51bda --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v12_read_sites_discover_posts.json @@ -0,0 +1,2431 @@ +{ + "request": { + "urlPattern": "/rest/v1.2/read/sites/53424024/posts(/)?($|\\?.*)", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "found": 10, + "posts": [ + { + "ID": 37222, + "site_ID": 53424024, + "author": { + "ID": 47411601, + "login": "benhuberman", + "email": false, + "name": "Ben Huberman", + "first_name": "Ben", + "last_name": "Huberman", + "nice_name": "benhuberman", + "URL": "https://benz.blog/", + "avatar_URL": "https://0.gravatar.com/avatar/663dcd498e8c5f255bfb230a7ba07678?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/benhuberman", + "site_ID": 122910962, + "has_avatar": true + }, + "date": "2019-05-27T09:00:17-04:00", + "modified": "2019-05-21T23:55:05-04:00", + "title": "Kelsey Montague Art", + "URL": "https://discover.wordpress.com/2019/05/27/kelsey-montague-art/", + "short_URL": "https://wp.me/p3Ca1O-9Gm", + "content": "Explore mural artist Kelsey Montague’s work, stay up-to-date on her latest projects, and shop for prints on her Anything Is Possible-featured website.
\r\n\r\n\r\n\r\n", + "excerpt": "Explore mural artist Kelsey Montague’s work, stay up-to-date on her latest projects, and shop for prints on her Anything Is Possible-featured website.
\n", + "slug": "kelsey-montague-art", + "guid": "https://discover.wordpress.com/?p=37222", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 33, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "b06fd6b4fd1b95644d71981f34f747f8", + "featured_image": "https://discover.files.wordpress.com/2019/05/img_3760.jpg", + "post_thumbnail": { + "ID": 37226, + "URL": "https://discover.files.wordpress.com/2019/05/img_3760.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/img_3760.jpg", + "mime_type": "image/jpeg", + "width": 1280, + "height": 1706 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Art": { + "ID": 177, + "name": "Art", + "slug": "art", + "description": "Artists' sites, powerful artwork in multiple genres in a variety of mediums, and news from the art world.", + "post_count": 370, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Culture": { + "ID": 1098, + "name": "Culture", + "slug": "culture", + "description": "A curated collection of WordPress sites on society, culture in all its forms, and diverse art forms from around the world.", + "post_count": 414, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Diversity": { + "ID": 47458, + "name": "Diversity", + "slug": "diversity", + "description": "Blogs, stories, and web projects that highlight activists working towards greater diversity in culture, politics, and the business world.", + "post_count": 131, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:diversity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:diversity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Feminism": { + "ID": 553, + "name": "Feminism", + "slug": "feminism", + "description": "Magazines, collaborative websites, and feminist blogs that cover important issues in politics, culture, diversity, and the fight for gender equality.", + "post_count": 99, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:feminism", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:feminism/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Popular Culture": { + "ID": 2437, + "name": "Popular Culture", + "slug": "popular-culture", + "description": "The web's leading pop culture magazines and blogs, covering music, film, television, gaming, and more.", + "post_count": 198, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:popular-culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:popular-culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "AnythingIsPossible": { + "ID": 109479402, + "name": "AnythingIsPossible", + "slug": "anythingispossible", + "description": "", + "post_count": 15, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:anythingispossible", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:anythingispossible/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "mural": { + "ID": 159763, + "name": "mural", + "slug": "mural", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "mural art": { + "ID": 5762997, + "name": "mural art", + "slug": "mural-art", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "murals": { + "ID": 135373, + "name": "murals", + "slug": "murals", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:murals", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:murals/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "street art": { + "ID": 57447, + "name": "street art", + "slug": "street-art", + "description": "", + "post_count": 18, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:street-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:street-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "urban art": { + "ID": 28923, + "name": "urban art", + "slug": "urban-art", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:urban-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:urban-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "AnythingIsPossible": { + "ID": 109479402, + "name": "AnythingIsPossible", + "slug": "anythingispossible", + "description": "", + "post_count": 15, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:anythingispossible", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:anythingispossible/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "anythingispossible" + }, + "mural": { + "ID": 159763, + "name": "mural", + "slug": "mural", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "mural" + }, + "mural art": { + "ID": 5762997, + "name": "mural art", + "slug": "mural-art", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "mural-art" + }, + "murals": { + "ID": 135373, + "name": "murals", + "slug": "murals", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:murals", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:murals/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "murals" + }, + "street art": { + "ID": 57447, + "name": "street art", + "slug": "street-art", + "description": "", + "post_count": 18, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:street-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:street-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "street-art" + }, + "urban art": { + "ID": 28923, + "name": "urban art", + "slug": "urban-art", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:urban-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:urban-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "urban-art" + } + }, + "categories": { + "Art": { + "ID": 177, + "name": "Art", + "slug": "art", + "description": "Artists' sites, powerful artwork in multiple genres in a variety of mediums, and news from the art world.", + "post_count": 370, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Culture": { + "ID": 1098, + "name": "Culture", + "slug": "culture", + "description": "A curated collection of WordPress sites on society, culture in all its forms, and diverse art forms from around the world.", + "post_count": 414, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Diversity": { + "ID": 47458, + "name": "Diversity", + "slug": "diversity", + "description": "Blogs, stories, and web projects that highlight activists working towards greater diversity in culture, politics, and the business world.", + "post_count": 131, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:diversity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:diversity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Feminism": { + "ID": 553, + "name": "Feminism", + "slug": "feminism", + "description": "Magazines, collaborative websites, and feminist blogs that cover important issues in politics, culture, diversity, and the fight for gender equality.", + "post_count": 99, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:feminism", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:feminism/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Popular Culture": { + "ID": 2437, + "name": "Popular Culture", + "slug": "popular-culture", + "description": "The web's leading pop culture magazines and blogs, covering music, film, television, gaming, and more.", + "post_count": 198, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:popular-culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:popular-culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + "37226": { + "ID": 37226, + "URL": "https://discover.files.wordpress.com/2019/05/img_3760.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/img_3760.jpg", + "date": "2019-05-21T23:48:08-04:00", + "post_ID": 37222, + "author_ID": 47411601, + "file": "img_3760.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "IMG_3760", + "caption": "", + "description": "", + "alt": "Kelsey Montague mural art", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/img_3760.jpg?w=113", + "medium": "https://discover.files.wordpress.com/2019/05/img_3760.jpg?w=311", + "large": "https://discover.files.wordpress.com/2019/05/img_3760.jpg?w=768" + }, + "height": 1706, + "width": 1280, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1536421883", + "copyright": "", + "focal_length": "3.99", + "iso": "20", + "shutter_speed": "0.0014836795252226", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37226", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37226/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37222" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "130242", + "key": "geo_public", + "value": "0" + }, + { + "id": "130230", + "key": "_thumbnail_id", + "value": "37226" + }, + { + "id": "130401", + "key": "_wpas_done_17927786", + "value": "1" + }, + { + "id": "130238", + "key": "_wpas_mess", + "value": "Visit @kelsmontagueart's website - featured on @wordpressdotcom's #AnythingIsPossible list - for inspiration, prints, and updates on Kelsey's latest mural projects." + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37222", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37222/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37222/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37222/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://kelseymontagueart.com/", + "attribution": { + "author_name": "Krista Stevens", + "author_url": "https://kelseymontagueart.com/", + "blog_name": "Kelsey Montague Art", + "blog_url": "https://kelseymontagueart.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/kelsey-thumbnail.png?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Site Pick", + "slug": "site-pick", + "id": 308219249 + } + ], + "featured_post_wpcom_data": { + "blog_id": 161169196 + } + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "b06fd6b4fd1b95644d71981f34f747f8", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + }, + "use_excerpt": false, + "is_following_conversation": false + }, + { + "ID": 37189, + "site_ID": 53424024, + "author": { + "ID": 10183950, + "login": "cherilucas", + "email": false, + "name": "Cheri Lucas Rowlands", + "first_name": "Cheri", + "last_name": "Rowlands", + "nice_name": "cherilucas", + "URL": "http://cherilucasrowlands.com", + "avatar_URL": "https://0.gravatar.com/avatar/36207d4c7c014b0999b995ca3971d383?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/cherilucas", + "site_ID": 9838404, + "has_avatar": true + }, + "date": "2019-05-26T09:00:58-04:00", + "modified": "2019-05-22T17:07:55-04:00", + "title": "The Radical Notion of Not Letting Work Define You", + "URL": "https://discover.wordpress.com/2019/05/26/the-radical-notion-of-not-letting-work-define-you/", + "short_URL": "https://wp.me/p3Ca1O-9FP", + "content": "“Just because something can’t be a career doesn’t have to mean that it can’t be part of your life and identity.” At Man Repeller, Molly Conway muses on imposter syndrome, work and identity, and being a playwright.
\n", + "excerpt": "“Just because something can’t be a career doesn’t have to mean that it can’t be part of your life and identity.” At Man Repeller, Molly Conway muses on imposter syndrome, work and identity, and being a playwright.
\n", + "slug": "the-radical-notion-of-not-letting-work-define-you", + "guid": "https://discover.wordpress.com/?p=37189", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 102, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "eedec98542f8cbec7df4d4c608c847ef", + "featured_image": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "post_thumbnail": { + "ID": 37191, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "mime_type": "image/png", + "width": 1482, + "height": 988 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Identity": { + "ID": 10679, + "name": "Identity", + "slug": "identity", + "description": "Engaging conversations and writing around the topics of identity, diversity, and the search for authenticity.", + "post_count": 166, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:identity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:identity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Essay": { + "ID": 253221, + "name": "Personal Essay", + "slug": "personal-essay", + "description": "Personal and introspective essays and longform from new and established writers and authors.", + "post_count": 156, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-essay", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-essay/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Musings": { + "ID": 5316, + "name": "Personal Musings", + "slug": "personal-musings", + "description": "Introspective and self-reflective writing in various formats.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-musings", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-musings/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Writing": { + "ID": 349, + "name": "Writing", + "slug": "writing", + "description": "Writing, advice, and commentary on the act and process of writing, blogging, and publishing.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:writing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:writing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "imposter syndrome": { + "ID": 392126, + "name": "imposter syndrome", + "slug": "imposter-syndrome", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imposter-syndrome", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imposter-syndrome/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "playwright": { + "ID": 160393, + "name": "playwright", + "slug": "playwright", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:playwright", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:playwright/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "PoweredByWordPress": { + "ID": 76162589, + "name": "PoweredByWordPress", + "slug": "poweredbywordpress", + "description": "", + "post_count": 42, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:poweredbywordpress", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:poweredbywordpress/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "writers": { + "ID": 16761, + "name": "writers", + "slug": "writers", + "description": "", + "post_count": 70, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:writers", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:writers/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "imposter syndrome": { + "ID": 392126, + "name": "imposter syndrome", + "slug": "imposter-syndrome", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imposter-syndrome", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imposter-syndrome/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "imposter-syndrome" + }, + "playwright": { + "ID": 160393, + "name": "playwright", + "slug": "playwright", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:playwright", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:playwright/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "playwright" + }, + "PoweredByWordPress": { + "ID": 76162589, + "name": "PoweredByWordPress", + "slug": "poweredbywordpress", + "description": "", + "post_count": 42, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:poweredbywordpress", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:poweredbywordpress/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "poweredbywordpress" + }, + "writers": { + "ID": 16761, + "name": "writers", + "slug": "writers", + "description": "", + "post_count": 70, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:writers", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:writers/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "writers" + } + }, + "categories": { + "Identity": { + "ID": 10679, + "name": "Identity", + "slug": "identity", + "description": "Engaging conversations and writing around the topics of identity, diversity, and the search for authenticity.", + "post_count": 166, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:identity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:identity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Essay": { + "ID": 253221, + "name": "Personal Essay", + "slug": "personal-essay", + "description": "Personal and introspective essays and longform from new and established writers and authors.", + "post_count": 156, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-essay", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-essay/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Musings": { + "ID": 5316, + "name": "Personal Musings", + "slug": "personal-musings", + "description": "Introspective and self-reflective writing in various formats.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-musings", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-musings/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Writing": { + "ID": 349, + "name": "Writing", + "slug": "writing", + "description": "Writing, advice, and commentary on the act and process of writing, blogging, and publishing.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:writing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:writing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + "37191": { + "ID": 37191, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "date": "2019-05-20T14:50:23-04:00", + "post_ID": 37189, + "author_ID": 10183950, + "file": "screen-shot-2019-05-20-at-11.50.07-am.png", + "mime_type": "image/png", + "extension": "png", + "title": "man repeller header image", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png?w=315", + "large": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png?w=1220" + }, + "height": 988, + "width": 1482, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37191", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37191/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189" + } + } + }, + "37192": { + "ID": 37192, + "URL": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg", + "date": "2019-05-20T14:50:47-04:00", + "post_ID": 37189, + "author_ID": 10183950, + "file": "man-repeller-logo.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "man repeller logo", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=315", + "large": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=400" + }, + "height": 400, + "width": 400, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37192", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37192/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189" + } + } + } + }, + "attachment_count": 2, + "metadata": [ + { + "id": "130145", + "key": "geo_public", + "value": "0" + }, + { + "id": "130142", + "key": "_thumbnail_id", + "value": "37191" + }, + { + "id": "130392", + "key": "_wpas_done_17926349", + "value": "1" + }, + { + "id": "130146", + "key": "_wpas_mess", + "value": "\"Just because something can’t be a career doesn’t have to mean that it can’t be part of your life and identity.\" Molly Conway muses on imposter syndrome, work and identity, and being a playwright. (@ManRepeller)" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37189", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37189/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://www.manrepeller.com/2019/05/work-identity.html", + "attribution": { + "author_name": "Molly Conway", + "author_url": "https://www.manrepeller.com/author/molly-conway", + "blog_name": "Man Repeller", + "blog_url": "https://www.manrepeller.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Standard Pick", + "slug": "standard-pick", + "id": 337879995 + } + ], + "featured_post_wpcom_data": { + "blog_id": 61780023 + } + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "eedec98542f8cbec7df4d4c608c847ef", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + "uri": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "width": 1482, + "height": 988, + "type": "image" + }, + "use_excerpt": false, + "is_following_conversation": false + }, + { + "ID": 37205, + "site_ID": 53424024, + "author": { + "ID": 47411601, + "login": "benhuberman", + "email": false, + "name": "Ben Huberman", + "first_name": "Ben", + "last_name": "Huberman", + "nice_name": "benhuberman", + "URL": "https://benz.blog/", + "avatar_URL": "https://0.gravatar.com/avatar/663dcd498e8c5f255bfb230a7ba07678?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/benhuberman", + "site_ID": 122910962, + "has_avatar": true + }, + "date": "2019-05-25T09:00:36-04:00", + "modified": "2019-05-21T23:45:15-04:00", + "title": "Barista Hustle", + "URL": "https://discover.wordpress.com/2019/05/25/barista-hustle/", + "short_URL": "https://wp.me/p3Ca1O-9G5", + "content": "\nThe team at Barista Hustle, a leading coffee-education hub, creates resources and shares their extensive knowledge on topics ranging from cutting-edge gear to latte art.
\n", + "excerpt": "The team at Barista Hustle, a leading coffee-education hub, creates resources and shares their extensive knowledge on topics ranging from cutting-edge gear to latte art.
\n", + "slug": "barista-hustle", + "guid": "https://discover.wordpress.com/?p=37205", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 58, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "5344123ea1ee2da1788f11183966d068", + "featured_image": "https://discover.files.wordpress.com/2019/05/bh-home-header-element-wide-final.jpg", + "post_thumbnail": { + "ID": 37206, + "URL": "https://discover.files.wordpress.com/2019/05/bh-home-header-element-wide-final.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/bh-home-header-element-wide-final.jpg", + "mime_type": "image/jpeg", + "width": 2800, + "height": 1500 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Business": { + "ID": 179, + "name": "Business", + "slug": "business", + "description": "Small business and ecommerce resources, writing for professionals, and commentary on business, economics, and related topics.", + "post_count": 88, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Food": { + "ID": 586, + "name": "Food", + "slug": "food", + "description": "Recipes, writing on food and culinary culture, and food photography or visual art.", + "post_count": 215, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:food", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:food/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Lifestyle": { + "ID": 278, + "name": "Lifestyle", + "slug": "lifestyle", + "description": "Sites devoted to fashion and beauty, interior design, travel, alternative ways of living, and more.", + "post_count": 127, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:lifestyle", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:lifestyle/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "Baristas": { + "ID": 831444, + "name": "Baristas", + "slug": "baristas", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:baristas", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:baristas/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "business blog": { + "ID": 287435, + "name": "business blog", + "slug": "business-blog", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:business-blog", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:business-blog/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "coffee": { + "ID": 16166, + "name": "coffee", + "slug": "coffee", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:coffee", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:coffee/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "ecommerce": { + "ID": 11160, + "name": "ecommerce", + "slug": "ecommerce", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:ecommerce", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:ecommerce/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Small Business": { + "ID": 10585, + "name": "Small Business", + "slug": "small-business", + "description": "", + "post_count": 37, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:small-business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:small-business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "Baristas": { + "ID": 831444, + "name": "Baristas", + "slug": "baristas", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:baristas", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:baristas/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "baristas" + }, + "business blog": { + "ID": 287435, + "name": "business blog", + "slug": "business-blog", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:business-blog", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:business-blog/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "business-blog" + }, + "coffee": { + "ID": 16166, + "name": "coffee", + "slug": "coffee", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:coffee", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:coffee/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "coffee" + }, + "ecommerce": { + "ID": 11160, + "name": "ecommerce", + "slug": "ecommerce", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:ecommerce", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:ecommerce/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "ecommerce" + }, + "Small Business": { + "ID": 10585, + "name": "Small Business", + "slug": "small-business", + "description": "", + "post_count": 37, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:small-business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:small-business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "small-business" + } + }, + "categories": { + "Business": { + "ID": 179, + "name": "Business", + "slug": "business", + "description": "Small business and ecommerce resources, writing for professionals, and commentary on business, economics, and related topics.", + "post_count": 88, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Food": { + "ID": 586, + "name": "Food", + "slug": "food", + "description": "Recipes, writing on food and culinary culture, and food photography or visual art.", + "post_count": 215, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:food", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:food/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Lifestyle": { + "ID": 278, + "name": "Lifestyle", + "slug": "lifestyle", + "description": "Sites devoted to fashion and beauty, interior design, travel, alternative ways of living, and more.", + "post_count": 127, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:lifestyle", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:lifestyle/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "130216", + "key": "geo_public", + "value": "0" + }, + { + "id": "130206", + "key": "_thumbnail_id", + "value": "37206" + }, + { + "id": "130379", + "key": "_wpas_done_17927786", + "value": "1" + }, + { + "id": "130212", + "key": "_wpas_mess", + "value": "Whether you're a coffee professional, an aspiring latte artist, or just looking to improve your next cup, check out the resources and courses @BaristaHustle, a #PoweredByWordPress website:" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37205", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37205/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37205/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37205/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://baristahustle.com/", + "attribution": { + "author_name": "Krista Stevens", + "author_url": "https://baristahustle.com/", + "blog_name": "Barista Hustle", + "blog_url": "https://baristahustle.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/bh-logo-new-512-1-400x400.png?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Site Pick", + "slug": "site-pick", + "id": 308219249 + } + ], + "featured_post_wpcom_data": { + "blog_id": 82609915 + } + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "5344123ea1ee2da1788f11183966d068", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + }, + "use_excerpt": false, + "is_following_conversation": false + }, + { + "ID": 37123, + "site_ID": 53424024, + "author": { + "ID": 10183950, + "login": "cherilucas", + "email": false, + "name": "Cheri Lucas Rowlands", + "first_name": "Cheri", + "last_name": "Rowlands", + "nice_name": "cherilucas", + "URL": "http://cherilucasrowlands.com", + "avatar_URL": "https://0.gravatar.com/avatar/36207d4c7c014b0999b995ca3971d383?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/cherilucas", + "site_ID": 9838404, + "has_avatar": true + }, + "date": "2019-05-24T09:00:50-04:00", + "modified": "2019-05-22T17:07:30-04:00", + "title": "Lonely Planet Kids", + "URL": "https://discover.wordpress.com/2019/05/24/lonely-planet-kids/", + "short_URL": "https://wp.me/p3Ca1O-9EL", + "content": "Lonely Planet Kids — an offshoot of the popular travel guide company –inspires children to be curious about the world. The site features books, activities, family travel posts, and more.
\n", + "excerpt": "Lonely Planet Kids — an offshoot of the popular travel guide company –inspires children to be curious about the world. The site features books, activities, family travel posts, and more.
\n", + "slug": "lonely-planet-kids", + "guid": "https://discover.wordpress.com/?p=37123", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 49, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "12ac818a3de41e3b0cf84fea7efa2592", + "featured_image": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "post_thumbnail": { + "ID": 37125, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "mime_type": "image/png", + "width": 1434, + "height": 808 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Books": { + "ID": 178, + "name": "Books", + "slug": "books", + "description": "Writing, reviews, resources, and news on books, authors, reading, and publishing.", + "post_count": 233, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:books", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:books/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Exploration": { + "ID": 7543, + "name": "Exploration", + "slug": "exploration", + "description": "Writing and photography on travel, self-discovery, research, observation, and more.", + "post_count": 147, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:exploration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:exploration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Family": { + "ID": 406, + "name": "Family", + "slug": "family", + "description": "Writing that encompasses aspects of family, including marriage, parenting, childhood, relationships, and ancestry.", + "post_count": 226, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:family", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:family/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Parenting": { + "ID": 5309, + "name": "Parenting", + "slug": "parenting", + "description": "Writing and resources on parenting, motherhood, marriage, and family.", + "post_count": 141, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:parenting", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:parenting/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Publishing": { + "ID": 3330, + "name": "Publishing", + "slug": "publishing", + "description": "Writers and editors discussing publishing-industry news, the ins and outs of the literary world, and their own journey to a published book.", + "post_count": 124, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:publishing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:publishing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Reading": { + "ID": 1473, + "name": "Reading", + "slug": "reading", + "description": "Posts and book blogs that focus on authors, book reviews, and the pleasures of reading in the digital age.", + "post_count": 143, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:reading", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:reading/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Travel": { + "ID": 200, + "name": "Travel", + "slug": "travel", + "description": "Blogs, online guides, and trip planning resources devoted to travel, exploration, the outdoors, expat life, and global culture.", + "post_count": 247, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Wanderlust": { + "ID": 13181, + "name": "Wanderlust", + "slug": "wanderlust", + "description": "Stunning travel photography, travel and lifestyle sites, and blog posts on the joys and rewards of exploring new destinations.", + "post_count": 97, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:wanderlust", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:wanderlust/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "activities": { + "ID": 6751, + "name": "activities", + "slug": "activities", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:activities", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:activities/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "children": { + "ID": 1343, + "name": "children", + "slug": "children", + "description": "", + "post_count": 28, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:children", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:children/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "family travel": { + "ID": 421426, + "name": "family travel", + "slug": "family-travel", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:family-travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:family-travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "imagination": { + "ID": 10906, + "name": "imagination", + "slug": "imagination", + "description": "", + "post_count": 7, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imagination", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imagination/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "kids": { + "ID": 3374, + "name": "kids", + "slug": "kids", + "description": "", + "post_count": 14, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:kids", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:kids/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Lonely Planet": { + "ID": 232853, + "name": "Lonely Planet", + "slug": "lonely-planet", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:lonely-planet", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:lonely-planet/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Teaching": { + "ID": 1591, + "name": "Teaching", + "slug": "teaching", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:teaching", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:teaching/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "activities": { + "ID": 6751, + "name": "activities", + "slug": "activities", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:activities", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:activities/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "activities" + }, + "children": { + "ID": 1343, + "name": "children", + "slug": "children", + "description": "", + "post_count": 28, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:children", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:children/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "children" + }, + "family travel": { + "ID": 421426, + "name": "family travel", + "slug": "family-travel", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:family-travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:family-travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "family-travel" + }, + "imagination": { + "ID": 10906, + "name": "imagination", + "slug": "imagination", + "description": "", + "post_count": 7, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imagination", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imagination/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "imagination" + }, + "kids": { + "ID": 3374, + "name": "kids", + "slug": "kids", + "description": "", + "post_count": 14, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:kids", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:kids/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "kids" + }, + "Lonely Planet": { + "ID": 232853, + "name": "Lonely Planet", + "slug": "lonely-planet", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:lonely-planet", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:lonely-planet/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "lonely-planet" + }, + "Teaching": { + "ID": 1591, + "name": "Teaching", + "slug": "teaching", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:teaching", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:teaching/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "teaching" + } + }, + "categories": { + "Books": { + "ID": 178, + "name": "Books", + "slug": "books", + "description": "Writing, reviews, resources, and news on books, authors, reading, and publishing.", + "post_count": 233, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:books", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:books/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Exploration": { + "ID": 7543, + "name": "Exploration", + "slug": "exploration", + "description": "Writing and photography on travel, self-discovery, research, observation, and more.", + "post_count": 147, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:exploration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:exploration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Family": { + "ID": 406, + "name": "Family", + "slug": "family", + "description": "Writing that encompasses aspects of family, including marriage, parenting, childhood, relationships, and ancestry.", + "post_count": 226, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:family", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:family/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Parenting": { + "ID": 5309, + "name": "Parenting", + "slug": "parenting", + "description": "Writing and resources on parenting, motherhood, marriage, and family.", + "post_count": 141, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:parenting", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:parenting/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Publishing": { + "ID": 3330, + "name": "Publishing", + "slug": "publishing", + "description": "Writers and editors discussing publishing-industry news, the ins and outs of the literary world, and their own journey to a published book.", + "post_count": 124, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:publishing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:publishing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Reading": { + "ID": 1473, + "name": "Reading", + "slug": "reading", + "description": "Posts and book blogs that focus on authors, book reviews, and the pleasures of reading in the digital age.", + "post_count": 143, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:reading", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:reading/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Travel": { + "ID": 200, + "name": "Travel", + "slug": "travel", + "description": "Blogs, online guides, and trip planning resources devoted to travel, exploration, the outdoors, expat life, and global culture.", + "post_count": 247, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Wanderlust": { + "ID": 13181, + "name": "Wanderlust", + "slug": "wanderlust", + "description": "Stunning travel photography, travel and lifestyle sites, and blog posts on the joys and rewards of exploring new destinations.", + "post_count": 97, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:wanderlust", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:wanderlust/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + "37125": { + "ID": 37125, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "date": "2019-05-10T18:53:26-04:00", + "post_ID": 37123, + "author_ID": 10183950, + "file": "screen-shot-2019-05-10-at-3.53.09-pm.png", + "mime_type": "image/png", + "extension": "png", + "title": "lonely planet kids header", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png?w=315", + "large": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png?w=1220" + }, + "height": 808, + "width": 1434, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37125", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37125/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123" + } + } + }, + "37126": { + "ID": 37126, + "URL": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png", + "guid": "http://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png", + "date": "2019-05-10T18:53:28-04:00", + "post_ID": 37123, + "author_ID": 10183950, + "file": "lonely-planet-kids-logo.png", + "mime_type": "image/png", + "extension": "png", + "title": "lonely planet kids logo", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=315", + "large": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=400" + }, + "height": 400, + "width": 400, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37126", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37126/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123" + } + } + } + }, + "attachment_count": 2, + "metadata": [ + { + "id": "129821", + "key": "geo_public", + "value": "0" + }, + { + "id": "129818", + "key": "_thumbnail_id", + "value": "37125" + }, + { + "id": "130369", + "key": "_wpas_done_17926349", + "value": "1" + }, + { + "id": "129822", + "key": "_wpas_mess", + "value": "Lonely Planet Kids (@lpkids) inspires children to be curious about the world. The #PoweredByWordPress site features children's books, activities, family travel resources, and more." + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37123", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37123/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://www.lonelyplanet.com/kids/", + "attribution": { + "author_name": "Contributors", + "author_url": "https://www.lonelyplanet.com/kids/about/", + "blog_name": "Lonely Planet Kids", + "blog_url": "https://www.lonelyplanet.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Site Pick", + "slug": "site-pick", + "id": 308219249 + } + ] + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "12ac818a3de41e3b0cf84fea7efa2592", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + "uri": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "width": 1434, + "height": 808, + "type": "image" + }, + "use_excerpt": false, + "is_following_conversation": false + } + ], + "meta": { + "links": { + "counts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/post-counts/post" + }, + "next_page": "value=2019-04-21T09%3A00%3A08-04%3A00&id=36933", + "wpcom": true + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v13_read_menu.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v13_read_menu.json new file mode 100644 index 000000000000..db84b584799d --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v13_read_menu.json @@ -0,0 +1,250 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.3/read/menu" + }, + "response": { + "status": 200, + "jsonBody": { + "default": { + "following": { + "title": "Followed Sites", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/following" + }, + "discover": { + "title": "Discover", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/sites/53424024/posts" + }, + "liked": { + "title": "My Likes", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/liked" + } + }, + "subscribed": { + "412": { + "ID": "412", + "title": "Video", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/video/posts", + "slug": "video", + "display_name": "video", + "type": "tag" + }, + "678": { + "ID": "678", + "title": "History", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/history/posts", + "slug": "history", + "display_name": "history", + "type": "tag" + }, + "3263": { + "ID": "3263", + "title": "gallery", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/gallery/posts", + "slug": "gallery", + "display_name": "gallery", + "type": "tag" + }, + "239173": { + "ID": "239173", + "title": "gif", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/gif/posts", + "slug": "gif", + "display_name": "gif", + "type": "tag" + } + }, + "recommended": { + "116": { + "ID": 116, + "title": "Religion", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/religion/posts", + "slug": "religion", + "display_name": "religion", + "type": "tag" + }, + "178": { + "ID": 178, + "title": "Books", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/books/posts", + "slug": "books", + "display_name": "books", + "type": "tag" + }, + "200": { + "ID": 200, + "title": "Travel", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/travel/posts", + "slug": "travel", + "display_name": "travel", + "type": "tag" + }, + "376": { + "ID": 376, + "title": "Humor", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/humor/posts", + "slug": "humor", + "display_name": "humor", + "type": "tag" + }, + "406": { + "ID": 406, + "title": "Family", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/family/posts", + "slug": "family", + "display_name": "family", + "type": "tag" + }, + "436": { + "ID": 436, + "title": "Photography", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/photography/posts", + "slug": "photography", + "display_name": "photography", + "type": "tag" + }, + "586": { + "ID": 586, + "title": "Food", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/food/posts", + "slug": "food", + "display_name": "food", + "type": "tag" + }, + "676": { + "ID": 676, + "title": "Websites", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/websites/posts", + "slug": "websites", + "display_name": "websites", + "type": "tag" + }, + "1098": { + "ID": 1098, + "title": "Culture", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/culture/posts", + "slug": "culture", + "display_name": "culture", + "type": "tag" + }, + "2806": { + "ID": 2806, + "title": "Art & Design", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/art-design/posts", + "slug": "art-design", + "display_name": "art-design", + "type": "tag" + }, + "3750": { + "ID": 3750, + "title": "Magazines", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/magazines/posts", + "slug": "magazines", + "display_name": "magazines", + "type": "tag" + }, + "13985": { + "ID": 13985, + "title": "Health & Wellness", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/health-wellness/posts", + "slug": "health-wellness", + "display_name": "health-wellness", + "type": "tag" + }, + "26879": { + "ID": 26879, + "title": "Portfolios", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/portfolios/posts", + "slug": "portfolios", + "display_name": "portfolios", + "type": "tag" + }, + "38881": { + "ID": 38881, + "title": "Science & Nature", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/science-nature/posts", + "slug": "science-nature", + "display_name": "science-nature", + "type": "tag" + }, + "84776": { + "ID": 84776, + "title": "News & Current Events", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/news-current-events/posts", + "slug": "news-current-events", + "display_name": "news-current-events", + "type": "tag" + }, + "258845": { + "ID": 258845, + "title": "Business & Technology", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/business-technology/posts", + "slug": "business-technology", + "display_name": "business-technology", + "type": "tag" + }, + "960817": { + "ID": 960817, + "title": "Fiction & Poetry", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/fiction-poetry/posts", + "slug": "fiction-poetry", + "display_name": "fiction-poetry", + "type": "tag" + }, + "998458": { + "ID": 998458, + "title": "Writing & Blogging", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/writing-blogging/posts", + "slug": "writing-blogging", + "display_name": "writing-blogging", + "type": "tag" + }, + "1446729": { + "ID": 1446729, + "title": "Sports & Gaming", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/sports-gaming/posts", + "slug": "sports-gaming", + "display_name": "sports-gaming", + "type": "tag" + }, + "10016773": { + "ID": 10016773, + "title": "Musings & Personal", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/musings-personal/posts", + "slug": "musings-personal", + "display_name": "musings-personal", + "type": "tag" + }, + "35328892": { + "ID": 35328892, + "title": "Longreads", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/longreads/posts", + "slug": "longreads", + "display_name": "longreads", + "type": "tag" + }, + "63611190": { + "ID": 63611190, + "title": "Crafts & Fashion", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/crafts-fashion/posts", + "slug": "crafts-fashion", + "display_name": "crafts-fashion", + "type": "tag" + }, + "87210105": { + "ID": 87210105, + "title": "Popular Culture & Entertainment", + "URL": "{{request.requestLine.baseUrl}}/rest/v1.2/read/tags/popular-culture-entertainment/posts", + "slug": "popular-culture-entertainment", + "display_name": "popular-culture-entertainment", + "type": "tag" + } + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v2_read_interests.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v2_read_interests.json new file mode 100644 index 000000000000..23247d854d2e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v2_read_interests.json @@ -0,0 +1,395 @@ +{ + "request": { + "method": "GET", + "urlPath": "/wpcom/v2/read/interests" + }, + "response": { + "status": 200, + "jsonBody": { + "success": true, + "interests": [ + { + "title": "Activism", + "slug": "activism" + }, + { + "title": "Advice", + "slug": "advice" + }, + { + "title": "Adventure", + "slug": "adventure" + }, + { + "title": "Animals", + "slug": "animals" + }, + { + "title": "Architecture", + "slug": "architecture" + }, + { + "title": "Art", + "slug": "art" + }, + { + "title": "Authors", + "slug": "authors" + }, + { + "title": "Baking", + "slug": "baking" + }, + { + "title": "Beauty", + "slug": "beauty" + }, + { + "title": "Beer", + "slug": "beer" + }, + { + "title": "Blogging", + "slug": "blogging" + }, + { + "title": "Books", + "slug": "books" + }, + { + "title": "Business", + "slug": "business" + }, + { + "title": "Camping", + "slug": "camping" + }, + { + "title": "Cars", + "slug": "cars" + }, + { + "title": "Cocktails", + "slug": "cocktails" + }, + { + "title": "Coding", + "slug": "coding" + }, + { + "title": "Comics", + "slug": "comics" + }, + { + "title": "Cooking", + "slug": "cooking" + }, + { + "title": "Community", + "slug": "community" + }, + { + "title": "Comics", + "slug": "comics" + }, + { + "title": "Crafts", + "slug": "crafts" + }, + { + "title": "Creativity", + "slug": "creativity" + }, + { + "title": "Culture", + "slug": "culture" + }, + { + "title": "Current Events", + "slug": "current-events" + }, + { + "title": "Dance", + "slug": "dance" + }, + { + "title": "Decorating", + "slug": "decorating" + }, + { + "title": "Design", + "slug": "design" + }, + { + "title": "Diversity", + "slug": "diversity" + }, + { + "title": "DIY", + "slug": "diy" + }, + { + "title": "Drawing", + "slug": "drawing" + }, + { + "title": "Ecommerce", + "slug": "ecommerce" + }, + { + "title": "Education", + "slug": "education" + }, + { + "title": "Entertainment", + "slug": "entertainment" + }, + { + "title": "Environment", + "slug": "environment" + }, + { + "title": "Family", + "slug": "family" + }, + { + "title": "Farming", + "slug": "farming" + }, + { + "title": "Fashion", + "slug": "fashion" + }, + { + "title": "Fiction", + "slug": "fiction" + }, + { + "title": "Finance", + "slug": "finance" + }, + { + "title": "Fitness", + "slug": "fitness" + }, + { + "title": "Food", + "slug": "food" + }, + { + "title": "Gaming", + "slug": "gaming" + }, + { + "title": "Gardening", + "slug": "gardening" + }, + { + "title": "Health", + "slug": "health" + }, + { + "title": "History", + "slug": "history" + }, + { + "title": "Homeschooling", + "slug": "homeschooling" + }, + { + "title": "Humor", + "slug": "humor" + }, + { + "title": "Identity", + "slug": "identity" + }, + { + "title": "Illustration", + "slug": "illustration" + }, + { + "title": "Inspiration", + "slug": "inspiration" + }, + { + "title": "Internet", + "slug": "internet" + }, + { + "title": "Journalism", + "slug": "journalism" + }, + { + "title": "Kids", + "slug": "kids" + }, + { + "title": "Language", + "slug": "language" + }, + { + "title": "LGBTQ", + "slug": "lgbtq" + }, + { + "title": "Lifestyle", + "slug": "lifestyle" + }, + { + "title": "Literature", + "slug": "literature" + }, + { + "title": "Mathematics", + "slug": "mathematics" + }, + { + "title": "Media", + "slug": "media" + }, + { + "title": "Mental Health", + "slug": "mental-health" + }, + { + "title": "Military", + "slug": "military" + }, + { + "title": "Movies", + "slug": "movies" + }, + { + "title": "Music", + "slug": "music" + }, + { + "title": "Nature", + "slug": "nature" + }, + { + "title": "Nonfiction", + "slug": "nonfiction" + }, + { + "title": "Nostalgia", + "slug": "nostalgia" + }, + { + "title": "Outdoors", + "slug": "outdoors" + }, + { + "title": "Parenting", + "slug": "parenting" + }, + { + "title": "Pets", + "slug": "pets" + }, + { + "title": "Photography", + "slug": "photography" + }, + { + "title": "Poetry", + "slug": "poetry" + }, + { + "title": "Politics", + "slug": "politics" + }, + { + "title": "Publishing", + "slug": "publishing" + }, + { + "title": "Reading", + "slug": "reading" + }, + { + "title": "Recipes", + "slug": "recipes" + }, + { + "title": "Relationships", + "slug": "relationships" + }, + { + "title": "Religion", + "slug": "religion" + }, + { + "title": "Science", + "slug": "science" + }, + { + "title": "Self-Improvement", + "slug": "self-improvement" + }, + { + "title": "Self-Publishing", + "slug": "self-publishing" + }, + { + "title": "Sewing", + "slug": "sewing" + }, + { + "title": "Social Media", + "slug": "social-media" + }, + { + "title": "Sports", + "slug": "sports" + }, + { + "title": "Teaching", + "slug": "teaching" + }, + { + "title": "Technology", + "slug": "technology" + }, + { + "title": "Television", + "slug": "television" + }, + { + "title": "Travel", + "slug": "travel" + }, + { + "title": "Weddings", + "slug": "weddings" + }, + { + "title": "Wellness", + "slug": "wellness" + }, + { + "title": "Wine", + "slug": "wine" + }, + { + "title": "WordPress", + "slug": "wordpress" + }, + { + "title": "Work", + "slug": "work" + }, + { + "title": "Writing", + "slug": "writing" + } + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v2_read_tags_cards.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v2_read_tags_cards.json new file mode 100644 index 000000000000..9ec802157b54 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/reader/rest_v2_read_tags_cards.json @@ -0,0 +1,3946 @@ +{ + "request": { + "method": "GET", + "urlPath": "/wpcom/v2/read/tags/cards" + }, + "response": { + "status": 200, + "jsonBody": { + "success": true, + "tags": [ + "photography" + ], + "sort": "popularity", + "lang": "en", + "page": 1, + "refresh": 1, + "cards": [ + { + "type": "interests_you_may_like", + "data": [ + { + "slug": "blogging", + "title": "Blogging", + "score": 278 + }, + { + "slug": "travel", + "title": "Travel", + "score": 251 + }, + { + "slug": "photos", + "title": "Photos", + "score": 173 + }, + { + "slug": "technology", + "title": "Technology", + "score": 139 + } + ] + }, + { + "type": "post", + "data": { + "ID": 37222, + "site_ID": 53424024, + "author": { + "ID": 47411601, + "login": "benhuberman", + "email": false, + "name": "Ben Huberman", + "first_name": "Ben", + "last_name": "Huberman", + "nice_name": "benhuberman", + "URL": "https://benz.blog/", + "avatar_URL": "https://0.gravatar.com/avatar/663dcd498e8c5f255bfb230a7ba07678?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/benhuberman", + "site_ID": 122910962, + "has_avatar": true + }, + "date": "{{now offset='-2 hours'}}", + "modified": "{{now offset='-2 hours'}}", + "title": "Kelsey Montague Art", + "URL": "https://discover.wordpress.com/2019/05/27/kelsey-montague-art/", + "short_URL": "https://wp.me/p3Ca1O-9Gm", + "content": "Explore mural artist Kelsey Montague’s work, stay up-to-date on her latest projects, and shop for prints on her Anything Is Possible-featured website.
\r\n\r\n\r\n\r\n", + "excerpt": "Explore mural artist Kelsey Montague’s work, stay up-to-date on her latest projects, and shop for prints on her Anything Is Possible-featured website.
\n", + "slug": "kelsey-montague-art", + "guid": "https://discover.wordpress.com/?p=37222", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 33, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "b06fd6b4fd1b95644d71981f34f747f8", + "featured_image": "https://discover.files.wordpress.com/2019/05/img_3760.jpg", + "post_thumbnail": { + "ID": 37226, + "URL": "https://discover.files.wordpress.com/2019/05/img_3760.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/img_3760.jpg", + "mime_type": "image/jpeg", + "width": 1280, + "height": 1706 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Art": { + "ID": 177, + "name": "Art", + "slug": "art", + "description": "Artists' sites, powerful artwork in multiple genres in a variety of mediums, and news from the art world.", + "post_count": 370, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Culture": { + "ID": 1098, + "name": "Culture", + "slug": "culture", + "description": "A curated collection of WordPress sites on society, culture in all its forms, and diverse art forms from around the world.", + "post_count": 414, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Diversity": { + "ID": 47458, + "name": "Diversity", + "slug": "diversity", + "description": "Blogs, stories, and web projects that highlight activists working towards greater diversity in culture, politics, and the business world.", + "post_count": 131, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:diversity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:diversity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Feminism": { + "ID": 553, + "name": "Feminism", + "slug": "feminism", + "description": "Magazines, collaborative websites, and feminist blogs that cover important issues in politics, culture, diversity, and the fight for gender equality.", + "post_count": 99, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:feminism", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:feminism/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Popular Culture": { + "ID": 2437, + "name": "Popular Culture", + "slug": "popular-culture", + "description": "The web's leading pop culture magazines and blogs, covering music, film, television, gaming, and more.", + "post_count": 198, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:popular-culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:popular-culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "AnythingIsPossible": { + "ID": 109479402, + "name": "AnythingIsPossible", + "slug": "anythingispossible", + "description": "", + "post_count": 15, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:anythingispossible", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:anythingispossible/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "mural": { + "ID": 159763, + "name": "mural", + "slug": "mural", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "mural art": { + "ID": 5762997, + "name": "mural art", + "slug": "mural-art", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "murals": { + "ID": 135373, + "name": "murals", + "slug": "murals", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:murals", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:murals/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "street art": { + "ID": 57447, + "name": "street art", + "slug": "street-art", + "description": "", + "post_count": 18, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:street-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:street-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "urban art": { + "ID": 28923, + "name": "urban art", + "slug": "urban-art", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:urban-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:urban-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "AnythingIsPossible": { + "ID": 109479402, + "name": "AnythingIsPossible", + "slug": "anythingispossible", + "description": "", + "post_count": 15, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:anythingispossible", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:anythingispossible/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "anythingispossible" + }, + "mural": { + "ID": 159763, + "name": "mural", + "slug": "mural", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "mural" + }, + "mural art": { + "ID": 5762997, + "name": "mural art", + "slug": "mural-art", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:mural-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:mural-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "mural-art" + }, + "murals": { + "ID": 135373, + "name": "murals", + "slug": "murals", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:murals", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:murals/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "murals" + }, + "street art": { + "ID": 57447, + "name": "street art", + "slug": "street-art", + "description": "", + "post_count": 18, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:street-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:street-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "street-art" + }, + "urban art": { + "ID": 28923, + "name": "urban art", + "slug": "urban-art", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:urban-art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:urban-art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "urban-art" + } + }, + "categories": { + "Art": { + "ID": 177, + "name": "Art", + "slug": "art", + "description": "Artists' sites, powerful artwork in multiple genres in a variety of mediums, and news from the art world.", + "post_count": 370, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:art", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:art/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Culture": { + "ID": 1098, + "name": "Culture", + "slug": "culture", + "description": "A curated collection of WordPress sites on society, culture in all its forms, and diverse art forms from around the world.", + "post_count": 414, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Diversity": { + "ID": 47458, + "name": "Diversity", + "slug": "diversity", + "description": "Blogs, stories, and web projects that highlight activists working towards greater diversity in culture, politics, and the business world.", + "post_count": 131, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:diversity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:diversity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Feminism": { + "ID": 553, + "name": "Feminism", + "slug": "feminism", + "description": "Magazines, collaborative websites, and feminist blogs that cover important issues in politics, culture, diversity, and the fight for gender equality.", + "post_count": 99, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:feminism", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:feminism/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Popular Culture": { + "ID": 2437, + "name": "Popular Culture", + "slug": "popular-culture", + "description": "The web's leading pop culture magazines and blogs, covering music, film, television, gaming, and more.", + "post_count": 198, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:popular-culture", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:popular-culture/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + "37226": { + "ID": 37226, + "URL": "https://discover.files.wordpress.com/2019/05/img_3760.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/img_3760.jpg", + "date": "2019-05-21T23:48:08-04:00", + "post_ID": 37222, + "author_ID": 47411601, + "file": "img_3760.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "IMG_3760", + "caption": "", + "description": "", + "alt": "Kelsey Montague mural art", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/img_3760.jpg?w=113", + "medium": "https://discover.files.wordpress.com/2019/05/img_3760.jpg?w=311", + "large": "https://discover.files.wordpress.com/2019/05/img_3760.jpg?w=768" + }, + "height": 1706, + "width": 1280, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1536421883", + "copyright": "", + "focal_length": "3.99", + "iso": "20", + "shutter_speed": "0.0014836795252226", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37226", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37226/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37222" + } + } + } + }, + "attachment_count": 1, + "metadata": [ + { + "id": "130242", + "key": "geo_public", + "value": "0" + }, + { + "id": "130230", + "key": "_thumbnail_id", + "value": "37226" + }, + { + "id": "130401", + "key": "_wpas_done_17927786", + "value": "1" + }, + { + "id": "130238", + "key": "_wpas_mess", + "value": "Visit @kelsmontagueart's website - featured on @wordpressdotcom's #AnythingIsPossible list - for inspiration, prints, and updates on Kelsey's latest mural projects." + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37222", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37222/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37222/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37222/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://kelseymontagueart.com/", + "attribution": { + "author_name": "Krista Stevens", + "author_url": "https://kelseymontagueart.com/", + "blog_name": "Kelsey Montague Art", + "blog_url": "https://kelseymontagueart.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/kelsey-thumbnail.png?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Site Pick", + "slug": "site-pick", + "id": 308219249 + } + ], + "featured_post_wpcom_data": { + "blog_id": 161169196 + } + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "b06fd6b4fd1b95644d71981f34f747f8", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + }, + "use_excerpt": false, + "is_following_conversation": false + } + }, + { + "type": "post", + "data": { + "ID": 37189, + "site_ID": 53424024, + "author": { + "ID": 10183950, + "login": "cherilucas", + "email": false, + "name": "Cheri Lucas Rowlands", + "first_name": "Cheri", + "last_name": "Rowlands", + "nice_name": "cherilucas", + "URL": "http://cherilucasrowlands.com", + "avatar_URL": "https://0.gravatar.com/avatar/36207d4c7c014b0999b995ca3971d383?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/cherilucas", + "site_ID": 9838404, + "has_avatar": true + }, + "date": "{{now offset='-1 days'}}", + "modified": "{{now offset='-1 days'}}", + "title": "The Radical Notion of Not Letting Work Define You", + "URL": "https://discover.wordpress.com/2019/05/26/the-radical-notion-of-not-letting-work-define-you/", + "short_URL": "https://wp.me/p3Ca1O-9FP", + "content": "“Just because something can’t be a career doesn’t have to mean that it can’t be part of your life and identity.” At Man Repeller, Molly Conway muses on imposter syndrome, work and identity, and being a playwright.
\n", + "excerpt": "“Just because something can’t be a career doesn’t have to mean that it can’t be part of your life and identity.” At Man Repeller, Molly Conway muses on imposter syndrome, work and identity, and being a playwright.
\n", + "slug": "the-radical-notion-of-not-letting-work-define-you", + "guid": "https://discover.wordpress.com/?p=37189", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 102, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "eedec98542f8cbec7df4d4c608c847ef", + "featured_image": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "post_thumbnail": { + "ID": 37191, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "mime_type": "image/png", + "width": 1482, + "height": 988 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Identity": { + "ID": 10679, + "name": "Identity", + "slug": "identity", + "description": "Engaging conversations and writing around the topics of identity, diversity, and the search for authenticity.", + "post_count": 166, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:identity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:identity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Essay": { + "ID": 253221, + "name": "Personal Essay", + "slug": "personal-essay", + "description": "Personal and introspective essays and longform from new and established writers and authors.", + "post_count": 156, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-essay", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-essay/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Musings": { + "ID": 5316, + "name": "Personal Musings", + "slug": "personal-musings", + "description": "Introspective and self-reflective writing in various formats.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-musings", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-musings/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Writing": { + "ID": 349, + "name": "Writing", + "slug": "writing", + "description": "Writing, advice, and commentary on the act and process of writing, blogging, and publishing.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:writing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:writing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "imposter syndrome": { + "ID": 392126, + "name": "imposter syndrome", + "slug": "imposter-syndrome", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imposter-syndrome", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imposter-syndrome/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "playwright": { + "ID": 160393, + "name": "playwright", + "slug": "playwright", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:playwright", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:playwright/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "PoweredByWordPress": { + "ID": 76162589, + "name": "PoweredByWordPress", + "slug": "poweredbywordpress", + "description": "", + "post_count": 42, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:poweredbywordpress", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:poweredbywordpress/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "writers": { + "ID": 16761, + "name": "writers", + "slug": "writers", + "description": "", + "post_count": 70, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:writers", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:writers/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "imposter syndrome": { + "ID": 392126, + "name": "imposter syndrome", + "slug": "imposter-syndrome", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imposter-syndrome", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imposter-syndrome/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "imposter-syndrome" + }, + "playwright": { + "ID": 160393, + "name": "playwright", + "slug": "playwright", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:playwright", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:playwright/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "playwright" + }, + "PoweredByWordPress": { + "ID": 76162589, + "name": "PoweredByWordPress", + "slug": "poweredbywordpress", + "description": "", + "post_count": 42, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:poweredbywordpress", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:poweredbywordpress/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "poweredbywordpress" + }, + "writers": { + "ID": 16761, + "name": "writers", + "slug": "writers", + "description": "", + "post_count": 70, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:writers", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:writers/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "writers" + } + }, + "categories": { + "Identity": { + "ID": 10679, + "name": "Identity", + "slug": "identity", + "description": "Engaging conversations and writing around the topics of identity, diversity, and the search for authenticity.", + "post_count": 166, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:identity", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:identity/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Essay": { + "ID": 253221, + "name": "Personal Essay", + "slug": "personal-essay", + "description": "Personal and introspective essays and longform from new and established writers and authors.", + "post_count": 156, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-essay", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-essay/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Personal Musings": { + "ID": 5316, + "name": "Personal Musings", + "slug": "personal-musings", + "description": "Introspective and self-reflective writing in various formats.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:personal-musings", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:personal-musings/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Writing": { + "ID": 349, + "name": "Writing", + "slug": "writing", + "description": "Writing, advice, and commentary on the act and process of writing, blogging, and publishing.", + "post_count": 437, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:writing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:writing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + "37191": { + "ID": 37191, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "date": "2019-05-20T14:50:23-04:00", + "post_ID": 37189, + "author_ID": 10183950, + "file": "screen-shot-2019-05-20-at-11.50.07-am.png", + "mime_type": "image/png", + "extension": "png", + "title": "man repeller header image", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png?w=315", + "large": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png?w=1220" + }, + "height": 988, + "width": 1482, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37191", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37191/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189" + } + } + }, + "37192": { + "ID": 37192, + "URL": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg", + "date": "2019-05-20T14:50:47-04:00", + "post_ID": 37189, + "author_ID": 10183950, + "file": "man-repeller-logo.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "man repeller logo", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=315", + "large": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=400" + }, + "height": 400, + "width": 400, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37192", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37192/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189" + } + } + } + }, + "attachment_count": 2, + "metadata": [ + { + "id": "130145", + "key": "geo_public", + "value": "0" + }, + { + "id": "130142", + "key": "_thumbnail_id", + "value": "37191" + }, + { + "id": "130392", + "key": "_wpas_done_17926349", + "value": "1" + }, + { + "id": "130146", + "key": "_wpas_mess", + "value": "\"Just because something can’t be a career doesn’t have to mean that it can’t be part of your life and identity.\" Molly Conway muses on imposter syndrome, work and identity, and being a playwright. (@ManRepeller)" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37189", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37189/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37189/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://www.manrepeller.com/2019/05/work-identity.html", + "attribution": { + "author_name": "Molly Conway", + "author_url": "https://www.manrepeller.com/author/molly-conway", + "blog_name": "Man Repeller", + "blog_url": "https://www.manrepeller.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/man-repeller-logo.jpg?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Standard Pick", + "slug": "standard-pick", + "id": 337879995 + } + ], + "featured_post_wpcom_data": { + "blog_id": 61780023 + } + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "eedec98542f8cbec7df4d4c608c847ef", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + "uri": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-20-at-11.50.07-am.png", + "width": 1482, + "height": 988, + "type": "image" + }, + "use_excerpt": false, + "is_following_conversation": false + } + }, + { + "type": "post", + "data": { + "ID": 37205, + "site_ID": 53424024, + "author": { + "ID": 47411601, + "login": "benhuberman", + "email": false, + "name": "Ben Huberman", + "first_name": "Ben", + "last_name": "Huberman", + "nice_name": "benhuberman", + "URL": "https://benz.blog/", + "avatar_URL": "https://0.gravatar.com/avatar/663dcd498e8c5f255bfb230a7ba07678?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/benhuberman", + "site_ID": 122910962, + "has_avatar": true + }, + "date": "2019-05-25T09:00:36-04:00", + "modified": "2019-05-21T23:45:15-04:00", + "title": "Barista Hustle", + "URL": "https://discover.wordpress.com/2019/05/25/barista-hustle/", + "short_URL": "https://wp.me/p3Ca1O-9G5", + "content": "\nThe team at Barista Hustle, a leading coffee-education hub, creates resources and shares their extensive knowledge on topics ranging from cutting-edge gear to latte art.
\n", + "excerpt": "The team at Barista Hustle, a leading coffee-education hub, creates resources and shares their extensive knowledge on topics ranging from cutting-edge gear to latte art.
\n", + "slug": "barista-hustle", + "guid": "https://discover.wordpress.com/?p=37205", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 58, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "5344123ea1ee2da1788f11183966d068", + "featured_image": "https://discover.files.wordpress.com/2019/05/bh-home-header-element-wide-final.jpg", + "post_thumbnail": { + "ID": 37206, + "URL": "https://discover.files.wordpress.com/2019/05/bh-home-header-element-wide-final.jpg", + "guid": "http://discover.files.wordpress.com/2019/05/bh-home-header-element-wide-final.jpg", + "mime_type": "image/jpeg", + "width": 2800, + "height": 1500 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Business": { + "ID": 179, + "name": "Business", + "slug": "business", + "description": "Small business and ecommerce resources, writing for professionals, and commentary on business, economics, and related topics.", + "post_count": 88, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Food": { + "ID": 586, + "name": "Food", + "slug": "food", + "description": "Recipes, writing on food and culinary culture, and food photography or visual art.", + "post_count": 215, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:food", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:food/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Lifestyle": { + "ID": 278, + "name": "Lifestyle", + "slug": "lifestyle", + "description": "Sites devoted to fashion and beauty, interior design, travel, alternative ways of living, and more.", + "post_count": 127, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:lifestyle", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:lifestyle/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "Baristas": { + "ID": 831444, + "name": "Baristas", + "slug": "baristas", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:baristas", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:baristas/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "business blog": { + "ID": 287435, + "name": "business blog", + "slug": "business-blog", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:business-blog", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:business-blog/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "coffee": { + "ID": 16166, + "name": "coffee", + "slug": "coffee", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:coffee", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:coffee/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "ecommerce": { + "ID": 11160, + "name": "ecommerce", + "slug": "ecommerce", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:ecommerce", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:ecommerce/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Small Business": { + "ID": 10585, + "name": "Small Business", + "slug": "small-business", + "description": "", + "post_count": 37, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:small-business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:small-business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "Baristas": { + "ID": 831444, + "name": "Baristas", + "slug": "baristas", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:baristas", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:baristas/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "baristas" + }, + "business blog": { + "ID": 287435, + "name": "business blog", + "slug": "business-blog", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:business-blog", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:business-blog/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "business-blog" + }, + "coffee": { + "ID": 16166, + "name": "coffee", + "slug": "coffee", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:coffee", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:coffee/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "coffee" + }, + "ecommerce": { + "ID": 11160, + "name": "ecommerce", + "slug": "ecommerce", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:ecommerce", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:ecommerce/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "ecommerce" + }, + "Small Business": { + "ID": 10585, + "name": "Small Business", + "slug": "small-business", + "description": "", + "post_count": 37, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:small-business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:small-business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "small-business" + } + }, + "categories": { + "Business": { + "ID": 179, + "name": "Business", + "slug": "business", + "description": "Small business and ecommerce resources, writing for professionals, and commentary on business, economics, and related topics.", + "post_count": 88, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:business", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:business/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Food": { + "ID": 586, + "name": "Food", + "slug": "food", + "description": "Recipes, writing on food and culinary culture, and food photography or visual art.", + "post_count": 215, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:food", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:food/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Lifestyle": { + "ID": 278, + "name": "Lifestyle", + "slug": "lifestyle", + "description": "Sites devoted to fashion and beauty, interior design, travel, alternative ways of living, and more.", + "post_count": 127, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:lifestyle", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:lifestyle/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Work": { + "ID": 131, + "name": "Work", + "slug": "work", + "description": "From tech to farming, posts and websites dedicated to the many facets of work, work-life balance, and social inequality.", + "post_count": 80, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:work", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:work/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + { + "id": "130216", + "key": "geo_public", + "value": "0" + }, + { + "id": "130206", + "key": "_thumbnail_id", + "value": "37206" + }, + { + "id": "130379", + "key": "_wpas_done_17927786", + "value": "1" + }, + { + "id": "130212", + "key": "_wpas_mess", + "value": "Whether you're a coffee professional, an aspiring latte artist, or just looking to improve your next cup, check out the resources and courses @BaristaHustle, a #PoweredByWordPress website:" + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37205", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37205/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37205/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37205/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://baristahustle.com/", + "attribution": { + "author_name": "Krista Stevens", + "author_url": "https://baristahustle.com/", + "blog_name": "Barista Hustle", + "blog_url": "https://baristahustle.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/bh-logo-new-512-1-400x400.png?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Site Pick", + "slug": "site-pick", + "id": 308219249 + } + ], + "featured_post_wpcom_data": { + "blog_id": 82609915 + } + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "5344123ea1ee2da1788f11183966d068", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + }, + "use_excerpt": false, + "is_following_conversation": false + } + }, + { + "type": "post", + "data": { + "ID": 37123, + "site_ID": 53424024, + "author": { + "ID": 10183950, + "login": "cherilucas", + "email": false, + "name": "Cheri Lucas Rowlands", + "first_name": "Cheri", + "last_name": "Rowlands", + "nice_name": "cherilucas", + "URL": "http://cherilucasrowlands.com", + "avatar_URL": "https://0.gravatar.com/avatar/36207d4c7c014b0999b995ca3971d383?s=96&d=identicon&r=G", + "profile_URL": "http://en.gravatar.com/cherilucas", + "site_ID": 9838404, + "has_avatar": true + }, + "date": "2019-05-24T09:00:50-04:00", + "modified": "2019-05-22T17:07:30-04:00", + "title": "Lonely Planet Kids", + "URL": "https://discover.wordpress.com/2019/05/24/lonely-planet-kids/", + "short_URL": "https://wp.me/p3Ca1O-9EL", + "content": "Lonely Planet Kids — an offshoot of the popular travel guide company –inspires children to be curious about the world. The site features books, activities, family travel posts, and more.
\n", + "excerpt": "Lonely Planet Kids — an offshoot of the popular travel guide company –inspires children to be curious about the world. The site features books, activities, family travel posts, and more.
\n", + "slug": "lonely-planet-kids", + "guid": "https://discover.wordpress.com/?p=37123", + "status": "publish", + "sticky": false, + "password": "", + "parent": false, + "type": "post", + "discussion": { + "comments_open": false, + "comment_status": "closed", + "pings_open": false, + "ping_status": "closed", + "comment_count": 0 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 49, + "i_like": false, + "is_reblogged": false, + "is_following": true, + "global_ID": "12ac818a3de41e3b0cf84fea7efa2592", + "featured_image": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "post_thumbnail": { + "ID": 37125, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "mime_type": "image/png", + "width": 1434, + "height": 808 + }, + "format": "standard", + "geo": false, + "menu_order": 0, + "page_template": "", + "publicize_URLs": [ + + ], + "terms": { + "category": { + "Books": { + "ID": 178, + "name": "Books", + "slug": "books", + "description": "Writing, reviews, resources, and news on books, authors, reading, and publishing.", + "post_count": 233, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:books", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:books/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Exploration": { + "ID": 7543, + "name": "Exploration", + "slug": "exploration", + "description": "Writing and photography on travel, self-discovery, research, observation, and more.", + "post_count": 147, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:exploration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:exploration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Family": { + "ID": 406, + "name": "Family", + "slug": "family", + "description": "Writing that encompasses aspects of family, including marriage, parenting, childhood, relationships, and ancestry.", + "post_count": 226, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:family", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:family/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Parenting": { + "ID": 5309, + "name": "Parenting", + "slug": "parenting", + "description": "Writing and resources on parenting, motherhood, marriage, and family.", + "post_count": 141, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:parenting", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:parenting/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Publishing": { + "ID": 3330, + "name": "Publishing", + "slug": "publishing", + "description": "Writers and editors discussing publishing-industry news, the ins and outs of the literary world, and their own journey to a published book.", + "post_count": 124, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:publishing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:publishing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Reading": { + "ID": 1473, + "name": "Reading", + "slug": "reading", + "description": "Posts and book blogs that focus on authors, book reviews, and the pleasures of reading in the digital age.", + "post_count": 143, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:reading", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:reading/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Travel": { + "ID": 200, + "name": "Travel", + "slug": "travel", + "description": "Blogs, online guides, and trip planning resources devoted to travel, exploration, the outdoors, expat life, and global culture.", + "post_count": 247, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Wanderlust": { + "ID": 13181, + "name": "Wanderlust", + "slug": "wanderlust", + "description": "Stunning travel photography, travel and lifestyle sites, and blog posts on the joys and rewards of exploring new destinations.", + "post_count": 97, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:wanderlust", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:wanderlust/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_tag": { + "activities": { + "ID": 6751, + "name": "activities", + "slug": "activities", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:activities", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:activities/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "children": { + "ID": 1343, + "name": "children", + "slug": "children", + "description": "", + "post_count": 28, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:children", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:children/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "family travel": { + "ID": 421426, + "name": "family travel", + "slug": "family-travel", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:family-travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:family-travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "imagination": { + "ID": 10906, + "name": "imagination", + "slug": "imagination", + "description": "", + "post_count": 7, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imagination", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imagination/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "kids": { + "ID": 3374, + "name": "kids", + "slug": "kids", + "description": "", + "post_count": 14, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:kids", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:kids/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Lonely Planet": { + "ID": 232853, + "name": "Lonely Planet", + "slug": "lonely-planet", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:lonely-planet", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:lonely-planet/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Teaching": { + "ID": 1591, + "name": "Teaching", + "slug": "teaching", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:teaching", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:teaching/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "post_format": { + }, + "mentions": { + } + }, + "tags": { + "activities": { + "ID": 6751, + "name": "activities", + "slug": "activities", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:activities", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:activities/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "activities" + }, + "children": { + "ID": 1343, + "name": "children", + "slug": "children", + "description": "", + "post_count": 28, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:children", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:children/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "children" + }, + "family travel": { + "ID": 421426, + "name": "family travel", + "slug": "family-travel", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:family-travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:family-travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "family-travel" + }, + "imagination": { + "ID": 10906, + "name": "imagination", + "slug": "imagination", + "description": "", + "post_count": 7, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:imagination", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:imagination/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "imagination" + }, + "kids": { + "ID": 3374, + "name": "kids", + "slug": "kids", + "description": "", + "post_count": 14, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:kids", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:kids/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "kids" + }, + "Lonely Planet": { + "ID": 232853, + "name": "Lonely Planet", + "slug": "lonely-planet", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:lonely-planet", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:lonely-planet/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "lonely-planet" + }, + "Teaching": { + "ID": 1591, + "name": "Teaching", + "slug": "teaching", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/tags/slug:teaching", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/tags/slug:teaching/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + }, + "display_name": "teaching" + } + }, + "categories": { + "Books": { + "ID": 178, + "name": "Books", + "slug": "books", + "description": "Writing, reviews, resources, and news on books, authors, reading, and publishing.", + "post_count": 233, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:books", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:books/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Education": { + "ID": 1342, + "name": "Education", + "slug": "education", + "description": "Resources across disciplines and perspectives on teaching, learning, and the educational system from educators, teachers, and parents.", + "post_count": 121, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:education", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:education/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Exploration": { + "ID": 7543, + "name": "Exploration", + "slug": "exploration", + "description": "Writing and photography on travel, self-discovery, research, observation, and more.", + "post_count": 147, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:exploration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:exploration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Family": { + "ID": 406, + "name": "Family", + "slug": "family", + "description": "Writing that encompasses aspects of family, including marriage, parenting, childhood, relationships, and ancestry.", + "post_count": 226, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:family", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:family/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Inspiration": { + "ID": 107, + "name": "Inspiration", + "slug": "inspiration", + "description": "Ideas and advice to empower and motivate people – especially bloggers, writers, and creative types – in their personal or professional journeys.", + "post_count": 327, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:inspiration", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:inspiration/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Parenting": { + "ID": 5309, + "name": "Parenting", + "slug": "parenting", + "description": "Writing and resources on parenting, motherhood, marriage, and family.", + "post_count": 141, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:parenting", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:parenting/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Publishing": { + "ID": 3330, + "name": "Publishing", + "slug": "publishing", + "description": "Writers and editors discussing publishing-industry news, the ins and outs of the literary world, and their own journey to a published book.", + "post_count": 124, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:publishing", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:publishing/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Reading": { + "ID": 1473, + "name": "Reading", + "slug": "reading", + "description": "Posts and book blogs that focus on authors, book reviews, and the pleasures of reading in the digital age.", + "post_count": 143, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:reading", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:reading/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Travel": { + "ID": 200, + "name": "Travel", + "slug": "travel", + "description": "Blogs, online guides, and trip planning resources devoted to travel, exploration, the outdoors, expat life, and global culture.", + "post_count": 247, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:travel", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:travel/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + }, + "Wanderlust": { + "ID": 13181, + "name": "Wanderlust", + "slug": "wanderlust", + "description": "Stunning travel photography, travel and lifestyle sites, and blog posts on the joys and rewards of exploring new destinations.", + "post_count": 97, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/categories/slug:wanderlust", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/categories/slug:wanderlust/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024" + } + } + } + }, + "attachments": { + "37125": { + "ID": 37125, + "URL": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "guid": "http://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "date": "2019-05-10T18:53:26-04:00", + "post_ID": 37123, + "author_ID": 10183950, + "file": "screen-shot-2019-05-10-at-3.53.09-pm.png", + "mime_type": "image/png", + "extension": "png", + "title": "lonely planet kids header", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png?w=315", + "large": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png?w=1220" + }, + "height": 808, + "width": 1434, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37125", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37125/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123" + } + } + }, + "37126": { + "ID": 37126, + "URL": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png", + "guid": "http://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png", + "date": "2019-05-10T18:53:28-04:00", + "post_ID": 37123, + "author_ID": 10183950, + "file": "lonely-planet-kids-logo.png", + "mime_type": "image/png", + "extension": "png", + "title": "lonely planet kids logo", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=150", + "medium": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=315", + "large": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=400" + }, + "height": 400, + "width": 400, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "0", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37126", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/media/37126/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123" + } + } + } + }, + "attachment_count": 2, + "metadata": [ + { + "id": "129821", + "key": "geo_public", + "value": "0" + }, + { + "id": "129818", + "key": "_thumbnail_id", + "value": "37125" + }, + { + "id": "130369", + "key": "_wpas_done_17926349", + "value": "1" + }, + { + "id": "129822", + "key": "_wpas_mess", + "value": "Lonely Planet Kids (@lpkids) inspires children to be curious about the world. The #PoweredByWordPress site features children's books, activities, family travel resources, and more." + } + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/53424024/posts/37123", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/37123/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/posts/37123/likes/" + }, + "data": { + "site": { + "ID": 53424024, + "name": "Discover", + "description": "A daily selection of the best content published on WordPress, collected for you by humans who love to read.", + "URL": "https://discover.wordpress.com", + "jetpack": false, + "post_count": 3603, + "subscribers_count": 35192480, + "locale": "en", + "icon": { + "img": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace", + "ico": "https://secure.gravatar.com/blavatar/c9e4e04719c81ca4936a63ea2dce6ace" + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_following": true, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024", + "help": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/53424024/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/53424024/comments/", + "xmlrpc": "https://discover.wordpress.com/xmlrpc.php" + } + } + } + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "other_URLs": { + }, + "discover_metadata": { + "permalink": "https://www.lonelyplanet.com/kids/", + "attribution": { + "author_name": "Contributors", + "author_url": "https://www.lonelyplanet.com/kids/about/", + "blog_name": "Lonely Planet Kids", + "blog_url": "https://www.lonelyplanet.com", + "avatar_url": "https://discover.files.wordpress.com/2019/05/lonely-planet-kids-logo.png?w=100&h=100&crop=true" + }, + "discover_fp_post_formats": [ + { + "name": "Pick", + "slug": "pick", + "id": 346750 + }, + { + "name": "Site Pick", + "slug": "site-pick", + "id": 308219249 + } + ] + }, + "feed_ID": 41325786, + "feed_URL": "http://discover.wordpress.com", + "pseudo_ID": "12ac818a3de41e3b0cf84fea7efa2592", + "is_external": false, + "site_name": "Discover", + "site_URL": "https://discover.wordpress.com", + "site_is_private": false, + "featured_media": { + "uri": "https://discover.files.wordpress.com/2019/05/screen-shot-2019-05-10-at-3.53.09-pm.png", + "width": 1434, + "height": 808, + "type": "image" + }, + "use_excerpt": false, + "is_following_conversation": false + } + }, + { + "type": "recommended_blogs", + "data": [ + { + "description": "A South Staffordshire Wildlife Journal", + "feed_ID": 49407045, + "feed_URL": "http://petehillmansnaturephotography.wordpress.com", + "icon": { + "img": "https://petehillmansnaturephotography.files.wordpress.com/2020/09/cropped-peter-hillman-a-nature-journey.jpg?w=96", + "ico": "https://petehillmansnaturephotography.files.wordpress.com/2020/09/cropped-peter-hillman-a-nature-journey.jpg?w=96" + }, + "ID": 112482965, + "is_private": false, + "jetpack": false, + "name": "A Nature Journey", + "prefer_feed": false, + "subscribers_count": 1968, + "subscription": { + "delivery_methods": { + "email": null, + "notification": { + "send_posts": false + } + } + }, + "URL": "http://petehillmansnaturephotography.wordpress.com" + }, + { + "description": "Jane's Lens", + "feed_ID": 1366484, + "feed_URL": "http://janeluriephotography.wordpress.com", + "icon": { + "img": "https://secure.gravatar.com/blavatar/3d272d8f6c1070fe12a4b778f2058c72", + "ico": "https://secure.gravatar.com/blavatar/3d272d8f6c1070fe12a4b778f2058c72" + }, + "ID": 26839598, + "is_private": false, + "jetpack": false, + "name": "Jane Lurie Photography", + "prefer_feed": false, + "subscribers_count": 6920, + "subscription": { + "delivery_methods": { + "email": null, + "notification": { + "send_posts": false + } + } + }, + "URL": "http://janeluriephotography.wordpress.com" + } + ] + }, + { + "type": "post", + "data": { + "ID": 10046, + "site_ID": 28958452, + "author": { + "ID": 28500267, + "login": "terriwebsterschrandt", + "email": false, + "name": "Terri Webster Schrandt", + "first_name": "Terri", + "last_name": "Webster Schrandt", + "nice_name": "terriwebsterschrandt", + "URL": "http://terriwebsterschrandt.wordpress.com", + "avatar_URL": "https://2.gravatar.com/avatar/8870e170782893e9891d83bc57e9c8df?s=96&d=retro&r=G", + "profile_URL": "https://en.gravatar.com/terriwebsterschrandt", + "site_ID": 28958452, + "has_avatar": true + }, + "date": "2020-09-27T07:00:00-07:00", + "modified": "2020-09-26T16:05:26-07:00", + "title": "Sunday Stills: Wishing for Water, But #Droplets Will Do", + "URL": "https://secondwindleisure.com/2020/09/27/sunday-stills-wishing-for-water-but-droplets-will-do/", + "short_URL": "https://wp.me/p1XvpO-2C2", + "content": "\nMy return to blogging was fun and satisfying after a tumultuous break! Thank you for welcoming me back last week. It was great to catch up with you!
\n\n\n\nIf you are confused by this week’s Sunday Stills post, we are examining the world of water droplets. In my dry, still excessively warm part of the world, if I want water, I must turn on the garden hose. Artificially produced water droplets will work!
\n\n\n\nAfter the few weeks of turmoil I recently experienced, I find calm and peace in my backyard garden any time of year.
\n\n\n\nDuring our recent visit to Spokane, a few raindrops made their presence known by the end of the week.
\n\n\n\nAfter a long, dry spell, my current library of water droplets is depleted, so please enjoy a few of my favorites from the past:
\n\n\n\nMy plumeria blossomed last year but no blooms this year. I’m pretty sure I blew up social media and my blog with images of plumeria last summer. Here are a couple donning their droplets from daily backyard watering.
\n\n\n\nMore flowers from my backyard include the Teddy Bear sunflower and the geranium in my deck garden.
\n\n\n\nHint: I’m sure it’s no secret, but if you need an image with water droplets pronto, use a mister or spray bottle and create your own droplets.
\n\n\n\nIf close-ups of water droplets aren’t your style, I included a couple of shots of suspended water drops:
\n\n\n\nCatching a wall of water drops in Baja Mexico.
\n\n\n\n
I have to share this one again of Brodie romping through the river, stirring up loads of droplets.
No doubt, Spring has sprung in the Southern Hemisphere along with lots of opportunities to see water droplets in action. The calendar says that Autumn is here in the Northern Hemisphere, but we won’t see scenes like this in California until November!
\n\n\n\nAs you know I also love taking part in other photo challenges and I love it when the planets align. I have been wanting to join Lisa’s Bird Weekly Challenge since I recently discovered it. Back in August, my lens captured this cute duck family (common merganser) out for a swim on Grant Lake in the June Lake loop in the Eastern Sierra Nevadas.
\n\n\n\nYes, it’s a bit of a stretch but my Canon Sureshot managed to capture water droplets on the feathers of the adult duck, seen best in the pic below. (Best I could do, Lisa, I think their legs are short enough)!
\n\n\n\nToday’s images are partly inspired by two other fab photographers: Cee’s Flower of the Day and Jez’ Water, Water Everywhere.
\n\n\n\nI’m hoping to live vicariously through your wonderful images of water droplets on flowers, plants, animals, whatever! Walls of water droplets cascading down from waves and fountains and other watery images also fit this week’s theme.
\n\n\nOctober themes are ready to view on my Sunday Stills page.
\n\n\n\nI look forward to you sharing your images of refreshing water droplets in whatever form they might take. Have a great week!
\n\n\n\n© 2020 Copyright-All rights reserved-secondwindleisure.com
\n", + "excerpt": "My return to blogging was fun and satisfying after a tumultuous break! Thank you for welcoming me back last week. It was great to catch up with you! If you are confused by this week’s Sunday Stills post, we are examining the world of water droplets. In my dry, still excessively warm part of the […]
\n", + "slug": "sunday-stills-wishing-for-water-but-droplets-will-do", + "guid": "http://secondwindleisure.com/?p=10046", + "status": "publish", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 80 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 77, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "6295b4c918b214147d966e6e8c6fe18e", + "featured_image": "https://terriwebsterschrandt.files.wordpress.com/2020/09/cp-drops.png", + "post_thumbnail": { + "ID": 10067, + "URL": "https://terriwebsterschrandt.files.wordpress.com/2020/09/cp-drops.png", + "guid": "http://terriwebsterschrandt.files.wordpress.com/2020/09/cp-drops.png", + "mime_type": "image/png", + "width": 1080, + "height": 1080 + }, + "format": "standard", + "tags": { + "birdweekly": { + "ID": 701015324, + "name": "birdweekly", + "slug": "birdweekly", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:birdweekly", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:birdweekly/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "Cees FOTD": { + "ID": 652598373, + "name": "Cees FOTD", + "slug": "cees-fotd", + "description": "", + "post_count": 19, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:cees-fotd", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:cees-fotd/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "gardening": { + "ID": 1833, + "name": "gardening", + "slug": "gardening", + "description": "", + "post_count": 5, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:gardening", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:gardening/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "Mammoth Lakes": { + "ID": 964261, + "name": "Mammoth Lakes", + "slug": "mammoth-lakes", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:mammoth-lakes", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:mammoth-lakes/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "photography": { + "ID": 436, + "name": "photography", + "slug": "photography", + "description": "", + "post_count": 345, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "photography challenges": { + "ID": 1009473, + "name": "photography challenges", + "slug": "photography-challenges", + "description": "", + "post_count": 33, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:photography-challenges", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:photography-challenges/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "plumeria": { + "ID": 616561, + "name": "plumeria", + "slug": "plumeria", + "description": "", + "post_count": 8, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:plumeria", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:plumeria/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "Sunday Stills": { + "ID": 11911599, + "name": "Sunday Stills", + "slug": "sunday-stills", + "description": "", + "post_count": 131, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:sunday-stills", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:sunday-stills/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "water": { + "ID": 14157, + "name": "water", + "slug": "water", + "description": "", + "post_count": 14, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:water", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:water/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "water droplets": { + "ID": 450032, + "name": "water droplets", + "slug": "water-droplets", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/tags/slug:water-droplets", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/tags/slug:water-droplets/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + } + }, + "categories": { + "leisure": { + "ID": 3172, + "name": "leisure", + "slug": "leisure", + "description": "", + "post_count": 346, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/categories/slug:leisure", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/categories/slug:leisure/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "photography": { + "ID": 436, + "name": "photography", + "slug": "photography", + "description": "", + "post_count": 454, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/categories/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/categories/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + }, + "weekly photo challenge": { + "ID": 5114028, + "name": "weekly photo challenge", + "slug": "weekly-photo-challenge", + "description": "", + "post_count": 79, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/categories/slug:weekly-photo-challenge", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/categories/slug:weekly-photo-challenge/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/28958452/posts/10046", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28958452/posts/10046/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28958452", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/posts/10046/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28958452/posts/10046/likes/" + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "is_seen": false, + "feed_ID": 55643820, + "feed_URL": "http://secondwindleisure.com", + "pseudo_ID": "6295b4c918b214147d966e6e8c6fe18e", + "is_external": false, + "site_name": "Second Wind Leisure Perspectives", + "site_URL": "https://secondwindleisure.com", + "site_is_private": false, + "featured_media": { + "uri": "https://terriwebsterschrandt.files.wordpress.com/2020/09/2020_spokane_waterdrops.jpg", + "width": 0, + "height": 0, + "type": "image" + }, + "use_excerpt": false + } + }, + { + "type": "post", + "data": { + "ID": 1007, + "site_ID": 60412660, + "author": { + "ID": 57807571, + "login": "singhpiyush6089", + "email": false, + "name": "singhpiyush6089", + "first_name": "Piyush", + "last_name": "Singh", + "nice_name": "singhpiyush6089", + "URL": "http://theperceptionssquare.com", + "avatar_URL": "https://0.gravatar.com/avatar/fbfa5fcddc8bbef89657e331658e648c?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/singhpiyush6089", + "site_ID": 60412660, + "has_avatar": true + }, + "date": "2020-09-26T13:31:59+00:00", + "modified": "2020-09-26T13:47:39+00:00", + "title": "In Between the Shadows", + "URL": "https://theperceptionssquare.com/2020/09/26/in-between-the-shadows/", + "short_URL": "https://wp.me/p45u5K-gf", + "content": "\nIn between the shadows,
In the midst of darkness
And grief , I desire to survive,
I persevere hollowness of life.
My strength is that
Ray of sunshine who
Itself is persevering,
Piercing through darkness
And my grief, breaking barriers
And finally reaches me !
©2020 Piyush Singh
\n", + "excerpt": "In between the shadows,In the midst of darknessAnd grief , I desire to survive,I persevere hollowness of life.My strength is thatRay of sunshine whoItself is persevering,Piercing through darknessAnd my grief, breaking barriersAnd finally reaches me ! ©2020 Piyush Singh
\n", + "slug": "in-between-the-shadows", + "guid": "http://theperceptionssquare.com/?p=1007", + "status": "publish", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 42 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 167, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "2669cbf58f34e7d71da5e939657d1d4f", + "featured_image": "", + "post_thumbnail": null, + "format": "standard", + "tags": { + "#quotes": { + "ID": 755, + "name": "#quotes", + "slug": "quotes", + "description": "", + "post_count": 68, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/tags/slug:quotes", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/tags/slug:quotes/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + }, + "blogging": { + "ID": 91, + "name": "blogging", + "slug": "blogging", + "description": "", + "post_count": 60, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/tags/slug:blogging", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/tags/slug:blogging/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + }, + "nature": { + "ID": 1099, + "name": "nature", + "slug": "nature", + "description": "", + "post_count": 20, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/tags/slug:nature", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/tags/slug:nature/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + }, + "photography": { + "ID": 436, + "name": "photography", + "slug": "photography", + "description": "", + "post_count": 89, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/tags/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/tags/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + }, + "poetry": { + "ID": 422, + "name": "poetry", + "slug": "poetry", + "description": "", + "post_count": 122, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/tags/slug:poetry", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/tags/slug:poetry/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + } + }, + "categories": { + "photography": { + "ID": 436, + "name": "photography", + "slug": "photography", + "description": "", + "post_count": 66, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/categories/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/categories/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + }, + "poetry": { + "ID": 422, + "name": "poetry", + "slug": "poetry", + "description": "", + "post_count": 128, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/categories/slug:poetry", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/categories/slug:poetry/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + }, + "Uncategorized": { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 32, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": false, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/60412660/posts/1007", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/60412660/posts/1007/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/60412660", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/posts/1007/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/60412660/posts/1007/likes/" + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "is_seen": false, + "feed_ID": 103168091, + "feed_URL": "http://theperceptionssquare.com", + "pseudo_ID": "2669cbf58f34e7d71da5e939657d1d4f", + "is_external": false, + "site_name": "The Perceptions Square", + "site_URL": "https://theperceptionssquare.com", + "site_is_private": false, + "featured_media": { + "uri": "https://singhpiyush6089.files.wordpress.com/2020/08/img_20200829_140232_624.jpg", + "width": 0, + "height": 0, + "type": "image" + }, + "use_excerpt": false + } + }, + { + "type": "post", + "data": { + "ID": 20653, + "site_ID": 28002157, + "author": { + "ID": 27562902, + "login": "marinakanavaki", + "email": false, + "name": "marina kanavaki", + "first_name": "Marina Artemis", + "last_name": "Kanavaki", + "nice_name": "marinakanavaki", + "URL": "http://marinakanavaki.wordpress.com", + "avatar_URL": "https://1.gravatar.com/avatar/4a0d3606785602212228493e899bc8a2?s=96&d=identicon&r=G", + "profile_URL": "https://en.gravatar.com/marinakanavaki", + "site_ID": 28002157, + "has_avatar": true + }, + "date": "2020-09-22T16:50:42+03:00", + "modified": "2020-09-22T16:50:42+03:00", + "title": "Autumnal [Fall] Equinox 2020", + "URL": "https://marinakanavaki.com/2020/09/22/autumnal-fall-equinox-2020/", + "short_URL": "https://wp.me/p1TuDH-5n7", + "content": "\nThe time of the year when the Sun shines directly on the Equator and the length of day and night is almost equal, marking the first day of Autumn in the Northern Hemisphere and the first day of Spring in the Southern Hemisphere. Autumn over here and my favorite season too. There’s a special kind […]
\n", + "slug": "autumnal-fall-equinox-2020", + "guid": "http://marinakanavaki.com/?p=20653", + "status": "publish", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 63 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 110, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "34de6e3639f699de7bfa414385811f2e", + "featured_image": "https://marinakanavaki.files.wordpress.com/2020/09/fall-equinox-2020.jpg", + "post_thumbnail": { + "ID": 20676, + "URL": "https://marinakanavaki.files.wordpress.com/2020/09/fall-equinox-2020.jpg", + "guid": "http://marinakanavaki.files.wordpress.com/2020/09/fall-equinox-2020.jpg", + "mime_type": "image/jpeg", + "width": 1956, + "height": 1956 + }, + "format": "standard", + "tags": { + "2020": { + "ID": 65608, + "name": "2020", + "slug": "2020", + "description": "", + "post_count": 24, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:2020", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:2020/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "autumn": { + "ID": 2865, + "name": "autumn", + "slug": "autumn", + "description": "", + "post_count": 10, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:autumn", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:autumn/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Autumnal Equinox": { + "ID": 1868835, + "name": "Autumnal Equinox", + "slug": "autumnal-equinox", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:autumnal-equinox", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:autumnal-equinox/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Équinoxe": { + "ID": 5562732, + "name": "Équinoxe", + "slug": "equinoxe", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:equinoxe", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:equinoxe/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Fall Equinox": { + "ID": 1811742, + "name": "Fall Equinox", + "slug": "fall-equinox", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:fall-equinox", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:fall-equinox/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Jean-Michel Jarre": { + "ID": 357230, + "name": "Jean-Michel Jarre", + "slug": "jean-michel-jarre", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:jean-michel-jarre", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:jean-michel-jarre/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Moon phase": { + "ID": 337555, + "name": "Moon phase", + "slug": "moon-phase", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:moon-phase", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:moon-phase/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "moonrise": { + "ID": 360921, + "name": "moonrise", + "slug": "moonrise", + "description": "", + "post_count": 8, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:moonrise", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:moonrise/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "photo": { + "ID": 994, + "name": "photo", + "slug": "photo", + "description": "", + "post_count": 5, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:photo", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:photo/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Photography": { + "ID": 436, + "name": "Photography", + "slug": "photography", + "description": "", + "post_count": 110, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "sunrise": { + "ID": 35945, + "name": "sunrise", + "slug": "sunrise", + "description": "", + "post_count": 27, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:sunrise", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:sunrise/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "sunset": { + "ID": 766, + "name": "sunset", + "slug": "sunset", + "description": "", + "post_count": 34, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/tags/slug:sunset", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/tags/slug:sunset/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + } + }, + "categories": { + "Nature": { + "ID": 1099, + "name": "Nature", + "slug": "nature", + "description": "", + "post_count": 139, + "parent": 78522247, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/categories/slug:nature", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/categories/slug:nature/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Photography": { + "ID": 436, + "name": "Photography", + "slug": "photography", + "description": "", + "post_count": 156, + "parent": 78522247, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/categories/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/categories/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Seasons": { + "ID": 20333, + "name": "Seasons", + "slug": "seasons", + "description": "", + "post_count": 142, + "parent": 680306717, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/categories/slug:seasons", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/categories/slug:seasons/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + }, + "Time": { + "ID": 5087, + "name": "Time", + "slug": "time", + "description": "", + "post_count": 143, + "parent": 680306717, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/categories/slug:time", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/categories/slug:time/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157" + } + } + } + }, + "attachments": { + }, + "attachment_count": 0, + "metadata": [ + + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/28002157/posts/20653", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/28002157/posts/20653/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/28002157", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/posts/20653/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/28002157/posts/20653/likes/" + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "is_seen": false, + "feed_ID": 2091483, + "feed_URL": "http://marinakanavaki.com", + "pseudo_ID": "34de6e3639f699de7bfa414385811f2e", + "is_external": false, + "site_name": "Marina Kanavaki", + "site_URL": "https://marinakanavaki.com", + "site_is_private": false, + "featured_media": { + "uri": "https://www.youtube.com/embed/_okeeslfmh8?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent", + "type": "video" + }, + "use_excerpt": false + } + }, + { + "type": "post", + "data": { + "ID": 15697, + "site_ID": 21271414, + "author": { + "ID": 21825924, + "login": "abubot6", + "email": false, + "name": "Island Traveler", + "first_name": "Barnard", + "last_name": "Deocampo", + "nice_name": "abubot6", + "URL": "http://thismansjourney.net/", + "avatar_URL": "https://2.gravatar.com/avatar/201ebd347a0197bf0e7ffde03f9f2441?s=96&d=&r=G", + "profile_URL": "https://en.gravatar.com/abubot6", + "site_ID": 21271414, + "has_avatar": true + }, + "date": "2020-09-19T16:16:00-07:00", + "modified": "2020-09-19T16:16:32-07:00", + "title": "FALL in LOVE with your LIFE", + "URL": "https://this-mans-journey.com/2020/09/19/fall-in-love-with-your-life/", + "short_URL": "https://wp.me/p1rfFk-45b", + "content": "\nIt took pain, anxiety and sadness for me to realize I needed to be kind to myself.
\n\n\n\nIn this world, our happiness will not be given easily. In fact, people will find a way to take it. So, today care less of what others will say. Be nice to yourself instead of trying to please everyone. People will take advantage of your kindness and will tear your joy and positivity in pieces.
\n\n\n\nFall in love with your life because no one can love it more than you do.
\n\n\n\nFall in love with your life because it deserves to be happy too.
\n\n\n\nIt’s never too late to feel like we matter again. You’d been a light and warmth to others. It’s okay to experience the same.
\n\n\n\nToday, being better begins.
\n\n\n\n\n", + "excerpt": "It took pain, anxiety and sadness for me to realize I needed to be kind to myself. In this world, our happiness will not be given easily. In fact, people will find a way to take it. So, today care less of what others will say. Be nice to yourself instead of trying to please […]
\n", + "slug": "fall-in-love-with-your-life", + "guid": "http://this-mans-journey.com/?p=15697", + "status": "publish", + "discussion": { + "comments_open": true, + "comment_status": "open", + "pings_open": true, + "ping_status": "open", + "comment_count": 44 + }, + "likes_enabled": true, + "sharing_enabled": true, + "like_count": 219, + "i_like": false, + "is_reblogged": false, + "is_following": false, + "global_ID": "e61dd75e67bdca48b91ad87a2400429f", + "featured_image": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg", + "post_thumbnail": { + "ID": 15706, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg", + "mime_type": "image/jpeg", + "width": 1170, + "height": 1477 + }, + "format": "standard", + "tags": { + "anxiety": { + "ID": 3252, + "name": "anxiety", + "slug": "anxiety", + "description": "", + "post_count": 1, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:anxiety", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:anxiety/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "decor": { + "ID": 48669, + "name": "decor", + "slug": "decor", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:decor", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:decor/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Fall": { + "ID": 46710, + "name": "Fall", + "slug": "fall", + "description": "", + "post_count": 4, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:fall", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:fall/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Happiness": { + "ID": 22297, + "name": "Happiness", + "slug": "happiness", + "description": "", + "post_count": 26, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:happiness", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:happiness/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Health": { + "ID": 337, + "name": "Health", + "slug": "health", + "description": "", + "post_count": 16, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:health", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:health/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Life": { + "ID": 124, + "name": "Life", + "slug": "life", + "description": "", + "post_count": 56, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:life", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:life/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "love": { + "ID": 3785, + "name": "love", + "slug": "love", + "description": "", + "post_count": 6, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:love", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:love/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Photography": { + "ID": 436, + "name": "Photography", + "slug": "photography", + "description": "", + "post_count": 57, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:photography", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:photography/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Pumpkin": { + "ID": 186595, + "name": "Pumpkin", + "slug": "pumpkin", + "description": "", + "post_count": 3, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:pumpkin", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:pumpkin/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + }, + "Shopping": { + "ID": 1508, + "name": "Shopping", + "slug": "shopping", + "description": "", + "post_count": 2, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/tags/slug:shopping", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/tags/slug:shopping/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + } + }, + "categories": { + "Life": { + "ID": 124, + "name": "Life", + "slug": "life", + "description": "", + "post_count": 38, + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/categories/slug:life", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/categories/slug:life/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414" + } + } + } + }, + "attachments": { + "15708": { + "ID": 15708, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg", + "date": "2020-09-19T16:15:49-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0216.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0216", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg?w=150", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg?w=300", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg?w=1024", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg" + }, + "height": 3024, + "width": 4032, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1600531126", + "copyright": "", + "focal_length": "3.99", + "iso": "20", + "shutter_speed": "0.00055586436909394", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15708", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15708/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15709": { + "ID": 15709, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-1.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-1.jpg", + "date": "2020-09-19T16:15:49-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0216-1.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0216-1", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-1.jpg?w=150", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-1.jpg?w=300", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-1.jpg?w=1024", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-1.jpg" + }, + "height": 3024, + "width": 4032, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1600531126", + "copyright": "", + "focal_length": "3.99", + "iso": "20", + "shutter_speed": "0.00055586436909394", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15709", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15709/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15707": { + "ID": 15707, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-2.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-2.jpg", + "date": "2020-09-19T16:11:40-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0216-2.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0216-2", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-2.jpg?w=150", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-2.jpg?w=300", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-2.jpg?w=1024", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216-2.jpg" + }, + "height": 3024, + "width": 4032, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1600531126", + "copyright": "", + "focal_length": "3.99", + "iso": "20", + "shutter_speed": "0.00055586436909394", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15707", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15707/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15706": { + "ID": 15706, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg", + "date": "2020-09-19T13:52:11-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0190-1.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0190-1", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg?w=119", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg?w=238", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg?w=811", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190-1.jpg" + }, + "height": 1477, + "width": 1170, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15706", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15706/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15704": { + "ID": 15704, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0176.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0176.jpg", + "date": "2020-09-19T13:36:18-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0176.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0176", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0176.jpg?w=150", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0176.jpg?w=300", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0176.jpg?w=1024", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0176.jpg" + }, + "height": 3024, + "width": 4032, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1600460637", + "copyright": "", + "focal_length": "3.99", + "iso": "50", + "shutter_speed": "0.066666666666667", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15704", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15704/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15703": { + "ID": 15703, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0038.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0038.jpg", + "date": "2020-09-19T13:36:04-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0038.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0038", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0038.jpg?w=150", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0038.jpg?w=300", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0038.jpg?w=1024", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0038.jpg" + }, + "height": 3024, + "width": 4032, + "exif": { + "aperture": "1.8", + "credit": "", + "camera": "iPhone 8 Plus", + "caption": "", + "created_timestamp": "1600038963", + "copyright": "", + "focal_length": "3.99", + "iso": "64", + "shutter_speed": "0.066666666666667", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15703", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15703/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15701": { + "ID": 15701, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190.jpg", + "date": "2020-09-19T12:59:41-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0190.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0190", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190.jpg?w=119", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190.jpg?w=238", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190.jpg?w=811", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0190.jpg" + }, + "height": 1477, + "width": 1170, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15701", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15701/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + }, + "15696": { + "ID": 15696, + "URL": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0188.jpg", + "guid": "http://consumerjournaldotnet.files.wordpress.com/2020/09/img_0188.jpg", + "date": "2020-09-19T10:47:21-07:00", + "post_ID": 15697, + "author_ID": 21825924, + "file": "img_0188.jpg", + "mime_type": "image/jpeg", + "extension": "jpg", + "title": "img_0188", + "caption": "", + "description": "", + "alt": "", + "thumbnails": { + "thumbnail": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0188.jpg?w=112", + "medium": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0188.jpg?w=225", + "large": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0188.jpg?w=767", + "full": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0188.jpg" + }, + "height": 1800, + "width": 1348, + "exif": { + "aperture": "0", + "credit": "", + "camera": "", + "caption": "", + "created_timestamp": "0", + "copyright": "", + "focal_length": "0", + "iso": "0", + "shutter_speed": "0", + "title": "", + "orientation": "1", + "keywords": [ + + ] + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414/media/15696", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/media/15696/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "parent": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697" + } + } + } + }, + "attachment_count": 8, + "metadata": [ + + ], + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/read/sites/21271414/posts/15697", + "help": "{{request.requestLine.baseUrl}}/rest/v/sites/21271414/posts/15697/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.2/sites/21271414", + "replies": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697/replies/", + "likes": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/21271414/posts/15697/likes/" + } + }, + "capabilities": { + "publish_post": false, + "delete_post": false, + "edit_post": false + }, + "is_seen": false, + "feed_ID": 107168226, + "feed_URL": "http://this-mans-journey.com", + "pseudo_ID": "e61dd75e67bdca48b91ad87a2400429f", + "is_external": false, + "site_name": "This Man's Journey", + "site_URL": "https://this-mans-journey.com", + "site_is_private": false, + "featured_media": { + "uri": "https://consumerjournaldotnet.files.wordpress.com/2020/09/img_0216.jpg", + "width": 4032, + "height": 3024, + "type": "image" + }, + "use_excerpt": false + } + } + ], + "next_page_handle": "ZnJvbT04JnJlZnJlc2g9MQ==" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/rest_v1_batch.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/rest_v1_batch.json new file mode 100644 index 000000000000..6e8be7484b1e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/rest_v1_batch.json @@ -0,0 +1,11 @@ +{ + "request": { + "urlPattern": "/rest/v1.1/batch(.*)", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/rewind-capabilities.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/rewind-capabilities.json new file mode 100644 index 000000000000..aa6c88bb00ba --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/rewind-capabilities.json @@ -0,0 +1,24 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/wpcom/v2/sites/.*/rewind/capabilities.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "capabilities": [ + + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/scan/wpcom_v2_sites_185124945_scan.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/scan/wpcom_v2_sites_185124945_scan.json new file mode 100644 index 000000000000..3afd5719f7c9 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/scan/wpcom_v2_sites_185124945_scan.json @@ -0,0 +1,35 @@ +{ + "request": { + "urlPattern": "/wpcom/v2/sites/185124945/scan(\\?|/|$).*", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "state": "idle", + "threats": [ + + ], + "has_cloud": false, + "credentials": [ + { + "still_valid": true, + "type": "managed", + "role": "main" + } + ], + "most_recent": { + "is_initial": false, + "timestamp": "{{now offset='-2 days' format='yyyy-MM-dd'}}T{{now offset='-2 days' format='HH:mm:ssZ'}}", + "duration": 16, + "progress": 100, + "error": false + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/e2eflowtestingmobile-wordpress-com.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/e2eflowtestingmobile-wordpress-com.json new file mode 100644 index 000000000000..b3ae03303331 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/e2eflowtestingmobile-wordpress-com.json @@ -0,0 +1,48 @@ +{ + "id": "5b687fe3-831a-489c-b1c6-e91c6af36c42", + "name": "rest_v11_sites_e2eflowtestingmobilewordpresscom", + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/e2eflowtestingmobile.wordpress.com(/)?($|\\?.*)" + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 106707880, + "name": "Mobile E2E Testing", + "description": "", + "URL": "https://e2eflowtestingmobile.wordpress.com", + "jetpack": false, + "subscribers_count": 1, + "lang": false, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": null, + "is_private": false, + "is_following": false, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/comments/", + "xmlrpc": "https://e2eflowtestingmobile.wordpress.com/xmlrpc.php" + } + }, + "launch_status": false + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + }, + "uuid": "5b687fe3-831a-489c-b1c6-e91c6af36c42", + "persistent": true, + "insertionIndex": 24 +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_106707880.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_106707880.json new file mode 100644 index 000000000000..ab7310e68115 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_106707880.json @@ -0,0 +1,297 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 106707880, + "name": "Tri-County Real Estate", + "description": "", + "URL": "http://tricountyrealestate.wordpress.com", + "capabilities": { + "edit_pages": true, + "edit_posts": true, + "edit_others_posts": true, + "edit_others_pages": true, + "delete_posts": true, + "delete_others_posts": true, + "edit_theme_options": true, + "edit_users": false, + "list_users": true, + "manage_categories": true, + "manage_options": true, + "moderate_comments": true, + "activate_wordads": false, + "promote_users": true, + "publish_posts": true, + "upload_files": true, + "delete_users": false, + "remove_users": true, + "view_stats": true + }, + "jetpack": false, + "icon": { + "img": "https://tricountyrealestate.files.wordpress.com/2020/08/image-1.jpg?w=96", + "ico": "https://tricountyrealestate.files.wordpress.com/2020/08/image-1.jpg?w=96" + }, + "visible": true, + "is_private": false, + "options": { + "timezone": "", + "gmt_offset": 0, + "blog_public": 1, + "videopress_enabled": false, + "upgraded_filetypes_enabled": true, + "login_url": "https://infocusphotographers.wordpress.com/wp-login.php", + "admin_url": "https://infocusphotographers.wordpress.com/wp-admin/", + "is_mapped_domain": true, + "is_redirect": false, + "unmapped_url": "https://infocusphotographers.wordpress.com", + "featured_images_enabled": false, + "theme_slug": "pub/edin", + "header_image": false, + "background_color": "ffffff", + "image_default_link_type": "none", + "image_thumbnail_width": 150, + "image_thumbnail_height": 150, + "image_thumbnail_crop": 0, + "image_medium_width": 300, + "image_medium_height": 300, + "image_large_width": 1024, + "image_large_height": 1024, + "permalink_structure": "/%year%/%monthnum%/%day%/%postname%/", + "post_formats": [ + + ], + "default_post_format": "0", + "default_category": 1, + "allowed_file_types": [ + "jpg", + "jpeg", + "png", + "gif", + "pdf", + "doc", + "ppt", + "odt", + "pptx", + "docx", + "pps", + "ppsx", + "xls", + "xlsx", + "key", + "asc", + "mp3", + "m4a", + "wav", + "ogg", + "zip" + ], + "show_on_front": "page", + "default_likes_enabled": true, + "default_sharing_status": true, + "default_comment_status": true, + "default_ping_status": true, + "software_version": "5.2.2", + "created_at": "2016-02-09T16:07:34+00:00", + "wordads": false, + "publicize_permanently_disabled": false, + "frame_nonce": "847b221e56", + "jetpack_frame_nonce": "847b221e56", + "page_on_front": 1, + "page_for_posts": 0, + "headstart": false, + "headstart_is_fresh": false, + "ak_vp_bundle_enabled": null, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "verification_services_codes": null, + "podcasting_archive": null, + "is_domain_only": false, + "is_automated_transfer": false, + "is_wpcom_atomic": false, + "is_wpcom_store": false, + "woocommerce_is_active": false, + "design_type": null, + "site_goals": null, + "site_segment": null + }, + "plan": { + "product_id": 1029, + "product_slug": "personal-bundle-2y", + "product_name": "WordPress.com Personal", + "product_name_short": "Personal", + "expired": false, + "user_is_owner": false, + "is_free": false, + "features": { + "active": [ + "free-blog", + "custom-domain", + "space", + "support", + "wordads-jetpack" + ], + "available": { + "free-blog": [ + "free_plan", + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "space": [ + "free_plan", + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "support": [ + "free_plan", + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "custom-domain": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "no-adverts/no-adverts.php": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "custom-design": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "videopress": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "unlimited_themes": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "live_support": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "simple-payments": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "premium-themes": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ], + "google-analytics": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle", + "ecommerce-bundle-2y", + "business-bundle-monthly" + ] + } + } + }, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/comments/", + "xmlrpc": "https://infocusphotographers.wordpress.com/xmlrpc.php" + } + }, + "quota": { + "space_allowed": 6442450944, + "space_used": 442302007, + "percent_used": 6.865430731947224, + "space_available": 6000148937 + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_106707880_settings.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_106707880_settings.json new file mode 100644 index 000000000000..59cf708d0e56 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_106707880_settings.json @@ -0,0 +1,121 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/settings", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 106707880, + "name": "In Focus Photography", + "description": "", + "URL": "http://infocusphotographers.com", + "lang": "en", + "settings": { + "admin_url": "https://infocusphotographers.wordpress.com/wp-admin/", + "default_ping_status": true, + "default_comment_status": true, + "blog_public": 1, + "jetpack_sync_non_public_post_stati": false, + "jetpack_relatedposts_allowed": true, + "jetpack_relatedposts_enabled": false, + "jetpack_relatedposts_show_headline": "", + "jetpack_relatedposts_show_thumbnails": "", + "jetpack_search_enabled": false, + "jetpack_search_supported": false, + "default_category": 1, + "post_categories": [ + { + "value": 1, + "name": "Uncategorized" + }, + { + "value": 1674, + "name": "Wedding" + } + ], + "default_post_format": "0", + "default_pingback_flag": true, + "require_name_email": true, + "comment_registration": false, + "close_comments_for_old_posts": false, + "close_comments_days_old": 14, + "thread_comments": true, + "thread_comments_depth": 3, + "page_comments": true, + "comments_per_page": 50, + "default_comments_page": "newest", + "comment_order": "asc", + "comments_notify": true, + "moderation_notify": true, + "social_notifications_like": false, + "social_notifications_reblog": false, + "social_notifications_subscribe": false, + "comment_moderation": false, + "comment_whitelist": true, + "comment_max_links": 2, + "moderation_keys": "", + "blacklist_keys": "", + "lang_id": 1, + "wga": false, + "disabled_likes": false, + "disabled_reblogs": false, + "jetpack_comment_likes_enabled": true, + "twitter_via": "", + "jetpack-twitter-cards-site-tag": "", + "eventbrite_api_token": null, + "gmt_offset": "0", + "timezone_string": "", + "date_format": "F j, Y", + "time_format": "g:i a", + "start_of_week": "1", + "jetpack_testimonial": true, + "jetpack_testimonial_posts_per_page": 10, + "jetpack_portfolio": false, + "jetpack_portfolio_posts_per_page": 10, + "markdown_supported": true, + "site_icon": 0, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "amp_is_supported": true, + "amp_is_enabled": true, + "api_cache": true, + "posts_per_page": 10, + "posts_per_rss": 10, + "rss_use_excerpt": false, + "wpcom_publish_posts_with_markdown": false, + "wpcom_publish_comments_with_markdown": false, + "infinite_scroll": false, + "infinite_scroll_blocked": "footer", + "podcasting_category_id": 0, + "podcasting_title": "", + "podcasting_subtitle": "", + "podcasting_talent_name": "", + "podcasting_summary": "", + "podcasting_copyright": "", + "podcasting_explicit": "no", + "podcasting_image": "", + "podcasting_keywords": "", + "podcasting_category_1": "", + "podcasting_category_2": "", + "podcasting_category_3": "", + "podcasting_email": "", + "podcasting_image_id": 0, + "sharing_button_style": "icon-text", + "sharing_label": "Share this:", + "sharing_show": [ + "post", + "page" + ], + "sharing_open_links": "same" + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_158396482_taxonomies_category_terms.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_158396482_taxonomies_category_terms.json new file mode 100644 index 000000000000..0992f7fee0ca --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_158396482_taxonomies_category_terms.json @@ -0,0 +1,51 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/taxonomies/category/terms/" + }, + "response": { + "status": 200, + "jsonBody": { + "found": 3, + "terms": [ + { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "feed_url": "http://infocusphotographers.com/category/uncategorized/feed/", + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + }, + { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "feed_url": "http://infocusphotographers.com/category/wedding/feed/", + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181851495.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181851495.json new file mode 100644 index 000000000000..6891c9cd9203 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181851495.json @@ -0,0 +1,386 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/181851495", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 181851495, + "name": "Four Paws Dog Grooming", + "description": "", + "URL": "https://fourpawsdoggrooming.wordpress.com", + "user_can_manage": true, + "capabilities": { + "edit_pages": true, + "edit_posts": true, + "edit_others_posts": true, + "edit_others_pages": true, + "delete_posts": true, + "delete_others_posts": true, + "edit_theme_options": true, + "edit_users": false, + "list_users": true, + "manage_categories": true, + "manage_options": true, + "moderate_comments": true, + "activate_wordads": false, + "promote_users": true, + "publish_posts": true, + "upload_files": true, + "delete_users": false, + "remove_users": true, + "own_site": false, + "view_hosting": true, + "view_stats": true + }, + "jetpack": false, + "jetpack_connection": false, + "is_multisite": true, + "post_count": 3, + "subscribers_count": 0, + "lang": "en", + "icon": { + "img": "https://fourpawsdoggrooming.files.wordpress.com/2020/08/cropped-fourpaws-logo-2-1.png?w=96", + "ico": "https://fourpawsdoggrooming.files.wordpress.com/2020/08/cropped-fourpaws-logo-2-1.png?w=96", + "media_id": 39 + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": true, + "is_coming_soon": true, + "single_user_site": false, + "is_vip": false, + "is_following": false, + "options": { + "timezone": "America/Los_Angeles", + "gmt_offset": -7, + "blog_public": -1, + "videopress_enabled": false, + "upgraded_filetypes_enabled": false, + "login_url": "https://fourpawsdoggrooming.wordpress.com/wp-login.php", + "admin_url": "https://fourpawsdoggrooming.wordpress.com/wp-admin/", + "is_mapped_domain": false, + "is_redirect": false, + "unmapped_url": "https://fourpawsdoggrooming.wordpress.com", + "featured_images_enabled": false, + "theme_slug": "pub/hever", + "header_image": false, + "background_color": false, + "image_default_link_type": "none", + "image_thumbnail_width": 150, + "image_thumbnail_height": 150, + "image_thumbnail_crop": 0, + "image_medium_width": 300, + "image_medium_height": 300, + "image_large_width": 1024, + "image_large_height": 1024, + "permalink_structure": "/%year%/%monthnum%/%day%/%postname%/", + "post_formats": [ + + ], + "default_post_format": "0", + "default_category": 1, + "allowed_file_types": [ + "jpg", + "jpeg", + "png", + "gif", + "pdf", + "doc", + "ppt", + "odt", + "pptx", + "docx", + "pps", + "ppsx", + "xls", + "xlsx", + "key", + "asc" + ], + "show_on_front": "page", + "default_likes_enabled": true, + "default_sharing_status": false, + "default_comment_status": true, + "default_ping_status": true, + "software_version": "5.5-wpcom-48929", + "created_at": "2020-08-21T23:21:16+00:00", + "wordads": false, + "publicize_permanently_disabled": false, + "frame_nonce": "6c9ff09ee5", + "jetpack_frame_nonce": "6c9ff09ee5", + "page_on_front": 5, + "page_for_posts": 0, + "wpcom_public_coming_soon_page_id": 0, + "headstart": false, + "headstart_is_fresh": false, + "ak_vp_bundle_enabled": null, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "verification_services_codes": null, + "podcasting_archive": null, + "is_domain_only": false, + "is_automated_transfer": false, + "is_wpcom_atomic": false, + "is_wpcom_store": false, + "woocommerce_is_active": false, + "design_type": null, + "site_goals": null, + "site_segment": null, + "import_engine": null, + "is_pending_plan": false, + "is_wpforteams_site": false, + "is_cloud_eligible": false + }, + "plan": { + "product_id": 1, + "product_slug": "free_plan", + "product_name": "WordPress.com Free", + "product_name_short": "Free", + "expired": false, + "user_is_owner": false, + "is_free": true, + "features": { + "active": [ + "free-blog", + "space", + "support" + ], + "available": { + "free-blog": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "custom-domain": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "space": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "donations": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "core/audio": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "premium-content/container": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "support": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "no-adverts/no-adverts.php": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "custom-design": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "videopress": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "unlimited_themes": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "live_support": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "private_whois": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "simple-payments": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "calendly": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "opentable": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "send-a-message": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "core/video": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "core/cover": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "premium-themes": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "google-analytics": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "social-previews": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle-2y" + ] + } + } + }, + "products": [ + + ], + "jetpack_modules": null, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/comments/", + "xmlrpc": "https://fourpawsdoggrooming.wordpress.com/xmlrpc.php", + "site_icon": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/media/39" + } + }, + "quota": { + "space_allowed": 3221225472, + "space_used": 4495332, + "percent_used": 0.1395534723997116, + "space_available": 3216730140 + }, + "launch_status": "unlaunched", + "site_migration": null, + "is_fse_active": false, + "is_fse_eligible": false, + "is_core_site_editor_enabled": false + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181851495_settings.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181851495_settings.json new file mode 100644 index 000000000000..246902e6f08b --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181851495_settings.json @@ -0,0 +1,121 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/181851495/settings", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 181851495, + "name": "Four Paws Dog Grooming", + "description": "", + "URL": "https://fourpawsdoggrooming.wordpress.com", + "lang": "en", + "settings": { + "admin_url": "https://fourpawsdoggrooming.wordpress.com/wp-admin/", + "default_ping_status": true, + "default_comment_status": true, + "instant_search_enabled": false, + "blog_public": -1, + "jetpack_sync_non_public_post_stati": false, + "jetpack_relatedposts_allowed": true, + "jetpack_relatedposts_enabled": true, + "jetpack_relatedposts_show_headline": false, + "jetpack_relatedposts_show_thumbnails": false, + "jetpack_search_enabled": false, + "jetpack_search_supported": false, + "default_category": 1, + "post_categories": [ + { + "value": 1, + "name": "Uncategorized" + } + ], + "default_post_format": "0", + "default_pingback_flag": true, + "require_name_email": true, + "comment_registration": false, + "close_comments_for_old_posts": false, + "close_comments_days_old": 14, + "thread_comments": true, + "thread_comments_depth": 3, + "page_comments": true, + "comments_per_page": 50, + "default_comments_page": "newest", + "comment_order": "asc", + "comments_notify": true, + "moderation_notify": true, + "social_notifications_like": false, + "social_notifications_reblog": false, + "social_notifications_subscribe": false, + "comment_moderation": false, + "comment_whitelist": true, + "comment_previously_approved": false, + "comment_max_links": 2, + "moderation_keys": "", + "blacklist_keys": "", + "disallowed_keys": false, + "lang_id": 1, + "wga": false, + "disabled_likes": false, + "disabled_reblogs": false, + "jetpack_comment_likes_enabled": true, + "twitter_via": "", + "jetpack-twitter-cards-site-tag": "", + "eventbrite_api_token": null, + "gmt_offset": -7, + "timezone_string": "America/Los_Angeles", + "date_format": "F j, Y", + "time_format": "g:i a", + "start_of_week": "1", + "jetpack_testimonial": false, + "jetpack_testimonial_posts_per_page": 10, + "jetpack_portfolio": false, + "jetpack_portfolio_posts_per_page": 10, + "markdown_supported": true, + "site_icon": 39, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "amp_is_supported": false, + "amp_is_enabled": true, + "api_cache": true, + "posts_per_page": 10, + "posts_per_rss": 10, + "rss_use_excerpt": false, + "wpcom_publish_posts_with_markdown": false, + "wpcom_publish_comments_with_markdown": false, + "infinite_scroll": true, + "infinite_scroll_blocked": false, + "wpcom_coming_soon": 1, + "podcasting_category_id": 0, + "podcasting_title": "", + "podcasting_subtitle": "", + "podcasting_talent_name": "", + "podcasting_summary": "", + "podcasting_copyright": "", + "podcasting_explicit": "no", + "podcasting_image": "", + "podcasting_keywords": "", + "podcasting_category_1": "", + "podcasting_category_2": "", + "podcasting_category_3": "", + "podcasting_email": "", + "podcasting_image_id": 0, + "sharing_button_style": "icon-text", + "sharing_label": "Share this:", + "sharing_show": [ + "post", + "page" + ], + "sharing_open_links": "same" + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181977606.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181977606.json new file mode 100644 index 000000000000..3643f608f629 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181977606.json @@ -0,0 +1,384 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/181977606", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 181977606, + "name": "Weekend Bakes", + "description": "", + "URL": "https://weekendbakesblog.wordpress.com", + "user_can_manage": false, + "capabilities": { + "edit_pages": true, + "edit_posts": true, + "edit_others_posts": true, + "edit_others_pages": true, + "delete_posts": true, + "delete_others_posts": true, + "edit_theme_options": true, + "edit_users": false, + "list_users": true, + "manage_categories": true, + "manage_options": true, + "moderate_comments": true, + "activate_wordads": true, + "promote_users": true, + "publish_posts": true, + "upload_files": true, + "delete_users": false, + "remove_users": true, + "own_site": true, + "view_hosting": true, + "view_stats": true + }, + "jetpack": false, + "jetpack_connection": false, + "is_multisite": true, + "post_count": 3, + "subscribers_count": 5, + "lang": "en", + "icon": { + "img": "https://weekendbakesblog.files.wordpress.com/2020/08/image.jpg?w=96", + "ico": "https://weekendbakesblog.files.wordpress.com/2020/08/image.jpg?w=96", + "media_id": 12 + }, + "logo": { + "id": 0, + "sizes": [ + + ], + "url": "" + }, + "visible": true, + "is_private": false, + "is_coming_soon": false, + "single_user_site": true, + "is_vip": false, + "is_following": true, + "options": { + "timezone": "", + "gmt_offset": 0, + "blog_public": 1, + "videopress_enabled": false, + "upgraded_filetypes_enabled": false, + "login_url": "https://weekendbakesblog.wordpress.com/wp-login.php", + "admin_url": "https://weekendbakesblog.wordpress.com/wp-admin/", + "is_mapped_domain": false, + "is_redirect": false, + "unmapped_url": "https://weekendbakesblog.wordpress.com", + "featured_images_enabled": false, + "theme_slug": "pub/independent-publisher-2", + "header_image": false, + "background_color": false, + "image_default_link_type": "none", + "image_thumbnail_width": 150, + "image_thumbnail_height": 150, + "image_thumbnail_crop": 0, + "image_medium_width": 300, + "image_medium_height": 300, + "image_large_width": 1024, + "image_large_height": 1024, + "permalink_structure": "/%year%/%monthnum%/%day%/%postname%/", + "post_formats": [ + + ], + "default_post_format": "standard", + "default_category": 1, + "allowed_file_types": [ + "jpg", + "jpeg", + "png", + "gif", + "pdf", + "doc", + "ppt", + "odt", + "pptx", + "docx", + "pps", + "ppsx", + "xls", + "xlsx", + "key", + "asc" + ], + "show_on_front": "posts", + "default_likes_enabled": true, + "default_sharing_status": true, + "default_comment_status": true, + "default_ping_status": true, + "software_version": "5.5-wpcom-48929", + "created_at": "2020-08-25T04:02:19+00:00", + "wordads": false, + "publicize_permanently_disabled": false, + "frame_nonce": "cd557ccebe", + "jetpack_frame_nonce": "cd557ccebe", + "wpcom_public_coming_soon_page_id": 0, + "headstart": false, + "headstart_is_fresh": false, + "ak_vp_bundle_enabled": null, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "verification_services_codes": null, + "podcasting_archive": null, + "is_domain_only": false, + "is_automated_transfer": false, + "is_wpcom_atomic": false, + "is_wpcom_store": false, + "woocommerce_is_active": false, + "design_type": null, + "site_goals": null, + "site_segment": 2, + "import_engine": null, + "is_pending_plan": false, + "is_wpforteams_site": false, + "is_cloud_eligible": false + }, + "plan": { + "product_id": 1, + "product_slug": "free_plan", + "product_name": "WordPress.com Free", + "product_name_short": "Free", + "expired": false, + "user_is_owner": false, + "is_free": true, + "features": { + "active": [ + "free-blog", + "space", + "support" + ], + "available": { + "free-blog": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "custom-domain": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "space": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "donations": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "core/audio": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "premium-content/container": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "support": [ + "personal-bundle", + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "personal-bundle-2y", + "value_bundle-2y", + "business-bundle-2y", + "blogger-bundle", + "blogger-bundle-2y", + "ecommerce-bundle-2y" + ], + "no-adverts/no-adverts.php": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "custom-design": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "videopress": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "unlimited_themes": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "live_support": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "private_whois": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "simple-payments": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "calendly": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "opentable": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "send-a-message": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "core/video": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "core/cover": [ + "value_bundle", + "business-bundle", + "ecommerce-bundle", + "value_bundle-2y", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "premium-themes": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "google-analytics": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle-2y" + ], + "social-previews": [ + "business-bundle", + "ecommerce-bundle", + "business-bundle-2y", + "ecommerce-bundle-2y" + ] + } + } + }, + "products": [ + + ], + "jetpack_modules": null, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181977606", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181977606/help", + "posts": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181977606/posts/", + "comments": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181977606/comments/", + "xmlrpc": "https://weekendbakesblog.wordpress.com/xmlrpc.php", + "site_icon": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181977606/media/12" + } + }, + "quota": { + "space_allowed": 3221225472, + "space_used": 52880326, + "percent_used": 1.6416213785608609, + "space_available": 3168345146 + }, + "launch_status": false, + "site_migration": null, + "is_fse_active": false, + "is_fse_eligible": false, + "is_core_site_editor_enabled": false + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181977606_settings.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181977606_settings.json new file mode 100644 index 000000000000..5243583748a4 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v11_sites_181977606_settings.json @@ -0,0 +1,121 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/181977606/settings", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "ID": 181977606, + "name": "Weekend Bakes", + "description": "", + "URL": "https://weekendbakesblog.wordpress.com", + "lang": "en", + "settings": { + "admin_url": "https://weekendbakesblog.wordpress.com/wp-admin/", + "default_ping_status": true, + "default_comment_status": true, + "instant_search_enabled": false, + "blog_public": 1, + "jetpack_sync_non_public_post_stati": false, + "jetpack_relatedposts_allowed": true, + "jetpack_relatedposts_enabled": true, + "jetpack_relatedposts_show_headline": "", + "jetpack_relatedposts_show_thumbnails": "", + "jetpack_search_enabled": false, + "jetpack_search_supported": false, + "default_category": 1, + "post_categories": [ + { + "value": 1, + "name": "Uncategorized" + } + ], + "default_post_format": "standard", + "default_pingback_flag": true, + "require_name_email": true, + "comment_registration": false, + "close_comments_for_old_posts": false, + "close_comments_days_old": 14, + "thread_comments": true, + "thread_comments_depth": 3, + "page_comments": true, + "comments_per_page": 50, + "default_comments_page": "newest", + "comment_order": "asc", + "comments_notify": true, + "moderation_notify": true, + "social_notifications_like": false, + "social_notifications_reblog": false, + "social_notifications_subscribe": false, + "comment_moderation": false, + "comment_whitelist": true, + "comment_previously_approved": false, + "comment_max_links": 2, + "moderation_keys": "", + "blacklist_keys": "", + "disallowed_keys": false, + "lang_id": 1, + "wga": false, + "disabled_likes": false, + "disabled_reblogs": false, + "jetpack_comment_likes_enabled": true, + "twitter_via": "", + "jetpack-twitter-cards-site-tag": "", + "eventbrite_api_token": null, + "gmt_offset": "0", + "timezone_string": "", + "date_format": "F j, Y", + "time_format": "g:i a", + "start_of_week": "1", + "jetpack_testimonial": false, + "jetpack_testimonial_posts_per_page": 10, + "jetpack_portfolio": false, + "jetpack_portfolio_posts_per_page": 10, + "markdown_supported": true, + "site_icon": 12, + "advanced_seo_front_page_description": "", + "advanced_seo_title_formats": [ + + ], + "amp_is_supported": true, + "amp_is_enabled": true, + "api_cache": true, + "posts_per_page": 10, + "posts_per_rss": 10, + "rss_use_excerpt": false, + "wpcom_publish_posts_with_markdown": false, + "wpcom_publish_comments_with_markdown": false, + "infinite_scroll": true, + "infinite_scroll_blocked": false, + "wpcom_coming_soon": 0, + "podcasting_category_id": 0, + "podcasting_title": "", + "podcasting_subtitle": "", + "podcasting_talent_name": "", + "podcasting_summary": "", + "podcasting_copyright": "", + "podcasting_explicit": "no", + "podcasting_image": "", + "podcasting_keywords": "", + "podcasting_category_1": "", + "podcasting_category_2": "", + "podcasting_category_3": "", + "podcasting_email": "", + "podcasting_image_id": 0, + "sharing_button_style": "icon-text", + "sharing_label": "Share this:", + "sharing_show": [ + "post", + "page" + ], + "sharing_open_links": "same" + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_disabled.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_disabled.json new file mode 100644 index 000000000000..47cb930f1285 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_disabled.json @@ -0,0 +1,21 @@ +{ + "scenarioName": "gutenberg", + "requiredScenarioState": "Started", + "request": { + "urlPattern": "/wpcom/v2/sites/106707880/gutenberg(/)?($|\\?.*)", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "aztec", + "editor_web": "gutenberg", + "opt_in": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/106707880/gutenberg?editor=gutenberg&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_enabled.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_enabled.json new file mode 100644 index 000000000000..07bdd78ed705 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_enabled.json @@ -0,0 +1,21 @@ +{ + "scenarioName": "gutenberg", + "requiredScenarioState": "enabled", + "request": { + "urlPattern": "/wpcom/v2/sites/106707880/gutenberg(/)?($|\\?.*)", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "gutenberg", + "editor_web": "gutenberg", + "opt_in": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/106707880/gutenberg?editor=gutenberg&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_null.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_null.json new file mode 100644 index 000000000000..788a6eac90f8 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_null.json @@ -0,0 +1,19 @@ +{ + "request": { + "urlPath": "/wpcom/v2/sites/106707880/gutenberg/", + "method": "POST" + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "gutenberg", + "editor_web": "gutenberg", + "opt_in": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/106707880/gutenberg?editor=gutenberg&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_opt_in.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_opt_in.json new file mode 100644 index 000000000000..fff634422d85 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_opt_in.json @@ -0,0 +1,29 @@ +{ + "scenarioName": "gutenberg", + "newScenarioState": "enabled", + "request": { + "urlPattern": "/wpcom/v2/sites/106707880/gutenberg(/+)?\\?(.*)", + "method": "POST", + "queryParameters": { + "editor": { + "equalTo": "gutenberg" + }, + "platform": { + "equalTo": "mobile" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "gutenberg", + "editor_web": "gutenberg", + "opt_out": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/106707880/gutenberg?editor=classic&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_opt_out.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_opt_out.json new file mode 100644 index 000000000000..75d5c964f56f --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_106707880_gutenberg_opt_out.json @@ -0,0 +1,29 @@ +{ + "scenarioName": "gutenberg", + "newScenarioState": "Started", + "request": { + "urlPattern": "/wpcom/v2/sites/106707880/gutenberg(/+)?\\?(.*)", + "method": "POST", + "queryParameters": { + "editor": { + "equalTo": "aztec" + }, + "platform": { + "equalTo": "mobile" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "aztec", + "editor_web": "gutenberg", + "opt_in": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/106707880/gutenberg?editor=gutenberg&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_181851495_gutenberg.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_181851495_gutenberg.json new file mode 100644 index 000000000000..bfdd26c0b8e5 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_181851495_gutenberg.json @@ -0,0 +1,19 @@ +{ + "request": { + "urlPath": "/wpcom/v2/sites/181851495/gutenberg", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "gutenberg", + "editor_web": "gutenberg", + "opt_in": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/181851495/gutenberg?editor=gutenberg&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_181977606_gutenberg.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_181977606_gutenberg.json new file mode 100644 index 000000000000..e2fb48cf4ac5 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/rest_v2_sites_181977606_gutenberg.json @@ -0,0 +1,19 @@ +{ + "request": { + "urlPath": "/wpcom/v2/sites/181977606/gutenberg", + "method": "GET" + }, + "response": { + "status": 200, + "jsonBody": { + "editor_mobile": "gutenberg", + "editor_web": "gutenberg", + "opt_in": "{{request.requestLine.baseUrl}}/wpcom/v2/sites/181977606/gutenberg?editor=gutenberg&platform=mobile" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/site-info-wordpress-com.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/site-info-wordpress-com.json new file mode 100644 index 000000000000..35dbffdc4942 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/site-info-wordpress-com.json @@ -0,0 +1,29 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/connect/site-info", + "queryParameters": { + "url": { + "matches": "https://(.+\\.)?wordpress\\.com" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "urlAfterRedirects": "{{request.requestLine.query.url}}", + "exists": true, + "isWordPress": true, + "hasJetpack": false, + "isJetpackActive": false, + "skipRemoteInstall": false, + "isJetpackConnected": false, + "isWordPressDotCom": true + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/site_106707880_tags.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/site_106707880_tags.json new file mode 100644 index 000000000000..f3affac862c1 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/site_106707880_tags.json @@ -0,0 +1,20 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/tags" + }, + "response": { + "status": 200, + "jsonBody": { + "found": 0, + "tags": [ + + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_categories.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_categories.json new file mode 100644 index 000000000000..f5be37fd541e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_categories.json @@ -0,0 +1,51 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/categories.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 2, + "categories": [ + { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "feed_url": "http://infocusphotographers.com/category/uncategorized/feed/", + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495" + } + } + }, + { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "feed_url": "http://infocusphotographers.com/category/wedding/feed/", + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/181851495" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_comments.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_comments.json new file mode 100644 index 000000000000..4050ee9b7b37 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_comments.json @@ -0,0 +1,33 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/comments.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "context": { + "equalTo": "edit" + }, + "force": { + "equalTo": "wpcom" + }, + "number": { + "equalTo": "100" + }, + "status": { + "equalTo": "all" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 0, + "site_ID": 106707880, + "comments": [ + + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_publicize_connections.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_publicize_connections.json new file mode 100644 index 000000000000..df9e8f236e4a --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_publicize_connections.json @@ -0,0 +1,19 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/publicize-connections.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "connections": [ + + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_users.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_users.json new file mode 100644 index 000000000000..16590d9e991e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/sites_users.json @@ -0,0 +1,27 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/users.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "authors_only": { + "equalTo": "1" + }, + "number": { + "equalTo": "100" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 0, + "site_ID": 106707880, + "comments": [ + + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/wordpressdotcom.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/wordpressdotcom.json new file mode 100644 index 000000000000..360b9eb2ddc9 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/sites/wordpressdotcom.json @@ -0,0 +1,18 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/wordpress.com/", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 403, + "jsonBody": { + "error": "unauthorized", + "message": "User cannot access this restricted blog" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/rest_v11_sites_158396482_stats_post_4.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/rest_v11_sites_158396482_stats_post_4.json new file mode 100644 index 000000000000..123f8cbee583 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/rest_v11_sites_158396482_stats_post_4.json @@ -0,0 +1,632 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/106707880/stats/post/4(/)?($|\\?.*)" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "views": 32, + "years": { + "2016": { + "months": { + "5": 1, + "6": 2, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0 + }, + "total": 3 + }, + "2017": { + "months": { + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 1, + "7": 3, + "8": 3, + "9": 1, + "10": 0, + "11": 1, + "12": 1 + }, + "total": 10 + }, + "2018": { + "months": { + "1": 2, + "2": 3, + "3": 3, + "4": 2, + "5": 4, + "6": 1, + "7": 0, + "8": 0, + "9": 0, + "10": 1, + "11": 1, + "12": 0 + }, + "total": 17 + }, + "2019": { + "months": { + "1": 0, + "2": 2, + "3": 0, + "4": 0, + "5": 0 + }, + "total": 2 + } + }, + "averages": { + "2016": { + "months": { + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0 + }, + "overall": 0 + }, + "2017": { + "months": { + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0 + }, + "overall": 0 + }, + "2018": { + "months": { + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0 + }, + "overall": 0 + }, + "2019": { + "months": { + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + "overall": 0 + } + }, + "weeks": [ + { + "days": [ + { + "day": "{{now offset='-39 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-38 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-37 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-36 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-35 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-34 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-33 days' format='yyyy-MM-dd'}}", + "count": 0 + } + ], + "total": 0, + "average": 0, + "change": null + }, + { + "days": [ + { + "day": "{{now offset='-32 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-31 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-30 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-29 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-28 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-27 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-26 days' format='yyyy-MM-dd'}}", + "count": 0 + } + ], + "total": 0, + "average": 0, + "change": 0 + }, + { + "days": [ + { + "day": "{{now offset='-25 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-24 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-23 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-22 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-21 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-20 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-19 days' format='yyyy-MM-dd'}}", + "count": 0 + } + ], + "total": 0, + "average": 0, + "change": 0 + }, + { + "days": [ + { + "day": "{{now offset='-18 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-17 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-16 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-15 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-14 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-13 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-12 days' format='yyyy-MM-dd'}}", + "count": 0 + } + ], + "total": 0, + "average": 0, + "change": 0 + }, + { + "days": [ + { + "day": "{{now offset='-11 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-10 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-9 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-8 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-7 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-6 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-5 days' format='yyyy-MM-dd'}}", + "count": 0 + } + ], + "total": 0, + "average": 0, + "change": 0 + }, + { + "days": [ + { + "day": "{{now offset='-4 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-3 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-2 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now offset='-1 days' format='yyyy-MM-dd'}}", + "count": 0 + }, + { + "day": "{{now format='yyyy-MM-dd'}}", + "count": 0 + } + ], + "total": 0, + "average": 0, + "change": 0 + } + ], + "fields": [ + "period", + "views" + ], + "data": [ + [ + "{{now offset='-63 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-62 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-61 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-60 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-59 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-58 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-57 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-56 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-55 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-54 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-53 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-52 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-51 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-50 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-49 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-48 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-47 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-46 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-45 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-44 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-43 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-42 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-41 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-40 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-39 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-38 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-37 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-36 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-35 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-34 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-33 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-32 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-31 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-30 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-29 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-28 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-27 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-26 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-25 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-24 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-23 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-22 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-21 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-20 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-19 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-18 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-17 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-16 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-15 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-14 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-13 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-12 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-11 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-10 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-9 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-8 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-7 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-6 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-5 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-3 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-2 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now offset='-1 days' format='yyyy-MM-dd'}}", + 0 + ], + [ + "{{now format='yyyy-MM-dd'}}", + 0 + ] + ], + "highest_month": 4, + "highest_day_average": 0, + "highest_week_average": 0, + "post": { + "ID": 4, + "post_author": "152748359", + "post_date": "2016-04-19 21:28:27", + "post_date_gmt": "2016-04-19 21:28:27", + "post_content": "John was shortlisted for the World Press Photo competition, an international celebration of the best photojournalism of the year.\n\nhttps://twitter.com/wordpressdotcom/status/702181837079187456", + "post_title": "Some News to Share", + "post_excerpt": "", + "post_status": "publish", + "comment_status": "open", + "ping_status": "open", + "post_password": "", + "post_name": "some-news-to-share", + "to_ping": "", + "pinged": "", + "post_modified": "2018-03-23 00:20:36", + "post_modified_gmt": "2018-03-23 00:20:36", + "post_content_filtered": "", + "post_parent": 0, + "guid": "https://infocusphotographers.wordpress.com/?p=4", + "menu_order": 0, + "post_type": "post", + "post_mime_type": "", + "comment_count": "0", + "filter": "raw", + "permalink": "http://infocusphotographers.com/2016/04/19/some-news-to-share/" + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats.json new file mode 100644 index 000000000000..3880523bca4c --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats.json @@ -0,0 +1,201 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats(/+)\\?(.*)", + "queryParameters": { + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "stats": { + "visitors_today": 0, + "visitors_yesterday": 1, + "visitors": 1201, + "views_today": 0, + "views_yesterday": 1, + "views_best_day": "2018-01-15", + "views_best_day_total": 48, + "views": 2243, + "comments": 0, + "posts": 2, + "followers_blog": 1, + "followers_comments": 0, + "comments_per_month": 0, + "comments_most_active_recent_day": "", + "comments_most_active_time": "N/A", + "comments_spam": 3, + "categories": 2, + "tags": 0, + "shares": 57, + "shares_facebook": 23, + "shares_twitter": 14, + "shares_press-this": 1 + }, + "visits": { + "unit": "day", + "fields": [ + "period", + "views", + "visitors" + ], + "data": [ + [ + "{{now offset='-23 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-22 days' format='yyyy-MM-dd'}}", + 1, + 1 + ], + [ + "{{now offset='-21 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-20 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-19 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-18 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-17 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 1, + 1 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 24, + 3 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 6, + 4 + ], + [ + "{{now offset='-16 days' format='yyyy-MM-dd'}}", + 3, + 3 + ], + [ + "{{now offset='-15 days' format='yyyy-MM-dd'}}", + 9, + 2 + ], + [ + "{{now offset='-14 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-13 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-12 days' format='yyyy-MM-dd'}}", + 2, + 2 + ], + [ + "{{now offset='-11 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-10 days' format='yyyy-MM-dd'}}", + 3, + 2 + ], + [ + "{{now offset='-9 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-8 days' format='yyyy-MM-dd'}}", + 6, + 3 + ], + [ + "{{now offset='-7 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-6 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-5 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-3 days' format='yyyy-MM-dd'}}", + 0, + 0 + ], + [ + "{{now offset='-2 days' format='yyyy-MM-dd'}}", + 1, + 1 + ], + [ + "{{now offset='-1 days' format='yyyy-MM-dd'}}", + 1, + 1 + ], + [ + "{{now format='yyyy-MM-dd'}}", + 0, + 0 + ] + ] + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-day.json new file mode 100644 index 000000000000..d5b040c57aa9 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-day.json @@ -0,0 +1,22 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/clicks/" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "clicks": [ + + ], + "other_clicks": 0, + "total_clicks": 0 + } + }, + "period": "day" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-month.json new file mode 100644 index 000000000000..bafbe70d5288 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-month.json @@ -0,0 +1,36 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/clicks/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "days": { + "2019-07-01": { + "clicks": [ + + ], + "other_clicks": 0, + "total_clicks": 0 + } + }, + "period": "month" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-year.json new file mode 100644 index 000000000000..659dfe2260da --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks-year.json @@ -0,0 +1,72 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/clicks/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "days": { + "2019-01-01": { + "clicks": [ + { + "icon": null, + "url": "https://yourgroovysite.wordpress.com/about/", + "name": "yourgroovysite.wordpress.com/about/", + "views": 5, + "children": null + }, + { + "icon": null, + "url": null, + "name": "WordPress.com Media ", + "views": 3, + "children": [ + { + "url": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1443745029291-d5c27bc0b562.jpeg", + "name": "infocusphotographers.files.wordpress.com/2016/02/photo-1443745029291-d5c27bc0b562.jpeg", + "views": 1 + }, + { + "url": "https://infocusphotographers.files.wordpress.com/2016/02/unsplash_5252bb51404f8_1.jpeg", + "name": "infocusphotographers.files.wordpress.com/2016/02/unsplash_5252bb51404f8_1.jpeg", + "views": 1 + }, + { + "url": "https://infocusphotographers.files.wordpress.com/2016/02/photo-1447940334172-44e027c1f71c.jpeg", + "name": "infocusphotographers.files.wordpress.com/2016/02/photo-1447940334172-44e027c1f71c.jpeg", + "views": 1 + } + ] + }, + { + "icon": "https://secure.gravatar.com/blavatar/653166773dc88127bd3afe0b6dfe5ea7?s=48", + "url": "https://wordpress.com/?ref=footer_blog", + "name": "wordpress.com/?ref=footer_blog", + "views": 2, + "children": null + } + ], + "other_clicks": 0, + "total_clicks": 10 + } + }, + "period": "year" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks.json new file mode 100644 index 000000000000..6a9c9a7bddcf --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_clicks.json @@ -0,0 +1,36 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/clicks/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "equalTo": "[0-9]+" + }, + "date": { + "equalTo": "2019-07-17" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "clicks": [ + + ], + "other_clicks": 0, + "total_clicks": 0 + } + }, + "period": "day" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_comments.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_comments.json new file mode 100644 index 000000000000..75ddfbe028c6 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_comments.json @@ -0,0 +1,23 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/comments/.*" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "authors": [ + + ], + "posts": [ + + ], + "monthly_comments": 0, + "total_comments": 0, + "most_active_day": null, + "most_active_time": "N/A", + "most_commented_post": false + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-day.json new file mode 100644 index 000000000000..0f470cc70343 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-day.json @@ -0,0 +1,64 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/country-views/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "views": [ + { + "country_code": "IN", + "views": 3 + } + ], + "other_views": 0, + "total_views": 3 + } + }, + "country-info": { + "CA": { + "flag_icon": "https://secure.gravatar.com/blavatar/7f3085b2665ac78346be5923724ba4c6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/685ac009247bf3378158ee41c3f8f250?s=48", + "country_full": "Canada", + "map_region": "021" + }, + "IN": { + "flag_icon": "https://secure.gravatar.com/blavatar/217b6ac82c316e3a176351cef1d2d0b6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/d449a857f065ec5ddf1e7a086001a541?s=48", + "country_full": "India", + "map_region": "034" + }, + "FR": { + "flag_icon": "https://secure.gravatar.com/blavatar/bff4fa191e38bc0a316410b8fd2958fd?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/8139b3de98c828078f8a0f7deec0c79b?s=48", + "country_full": "France", + "map_region": "155" + }, + "CO": { + "flag_icon": "https://secure.gravatar.com/blavatar/f9951a3a717913a4cb99ce128cd42ef6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/30142281e988bbfd084a1c4a9eaef1f9?s=48", + "country_full": "Colombia", + "map_region": "005" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-month.json new file mode 100644 index 000000000000..3ec0fc34eb17 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-month.json @@ -0,0 +1,76 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/country-views/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "views": [ + { + "country_code": "CA", + "views": 8 + }, + { + "country_code": "IN", + "views": 6 + }, + { + "country_code": "FR", + "views": 1 + }, + { + "country_code": "CO", + "views": 1 + } + ], + "other_views": 0, + "total_views": 16 + } + }, + "country-info": { + "CA": { + "flag_icon": "https://secure.gravatar.com/blavatar/7f3085b2665ac78346be5923724ba4c6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/685ac009247bf3378158ee41c3f8f250?s=48", + "country_full": "Canada", + "map_region": "021" + }, + "IN": { + "flag_icon": "https://secure.gravatar.com/blavatar/217b6ac82c316e3a176351cef1d2d0b6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/d449a857f065ec5ddf1e7a086001a541?s=48", + "country_full": "India", + "map_region": "034" + }, + "FR": { + "flag_icon": "https://secure.gravatar.com/blavatar/bff4fa191e38bc0a316410b8fd2958fd?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/8139b3de98c828078f8a0f7deec0c79b?s=48", + "country_full": "France", + "map_region": "155" + }, + "CO": { + "flag_icon": "https://secure.gravatar.com/blavatar/f9951a3a717913a4cb99ce128cd42ef6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/30142281e988bbfd084a1c4a9eaef1f9?s=48", + "country_full": "Colombia", + "map_region": "005" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-year.json new file mode 100644 index 000000000000..64d05cfe5272 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_country-views-year.json @@ -0,0 +1,106 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/country-views/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "days": { + "2019-01-01": { + "views": [ + { + "country_code": "IN", + "views": 121 + }, + { + "country_code": "US", + "views": 60 + }, + { + "country_code": "CA", + "views": 44 + }, + { + "country_code": "DE", + "views": 15 + }, + { + "country_code": "FR", + "views": 14 + }, + { + "country_code": "GB", + "views": 12 + }, + { + "country_code": "CN", + "views": 12 + } + ], + "other_views": 35, + "total_views": 313 + } + }, + "country-info": { + "IN": { + "flag_icon": "https://secure.gravatar.com/blavatar/217b6ac82c316e3a176351cef1d2d0b6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/d449a857f065ec5ddf1e7a086001a541?s=48", + "country_full": "India", + "map_region": "034" + }, + "US": { + "flag_icon": "https://secure.gravatar.com/blavatar/5a83891a81b057fed56930a6aaaf7b3c?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/9f4faa5ad0c723474f7a6d810172447c?s=48", + "country_full": "United States", + "map_region": "021" + }, + "CA": { + "flag_icon": "https://secure.gravatar.com/blavatar/7f3085b2665ac78346be5923724ba4c6?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/685ac009247bf3378158ee41c3f8f250?s=48", + "country_full": "Canada", + "map_region": "021" + }, + "DE": { + "flag_icon": "https://secure.gravatar.com/blavatar/e13c43aa12cd8aada2ffb1663970374f?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/82f933cabd7491369097f681958bdaed?s=48", + "country_full": "Germany", + "map_region": "155" + }, + "FR": { + "flag_icon": "https://secure.gravatar.com/blavatar/bff4fa191e38bc0a316410b8fd2958fd?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/8139b3de98c828078f8a0f7deec0c79b?s=48", + "country_full": "France", + "map_region": "155" + }, + "GB": { + "flag_icon": "https://secure.gravatar.com/blavatar/45d1fd3f398678452fd02153f569ce01?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/85ac446c6eefc7e959e15a6877046da3?s=48", + "country_full": "United Kingdom", + "map_region": "154" + }, + "CN": { + "flag_icon": "https://secure.gravatar.com/blavatar/7b8f2d7453c642ac4c6920bd021bf881?s=48", + "flat_flag_icon": "https://secure.gravatar.com/blavatar/381326b114d5f7264d3207021c3d6437?s=48", + "country_full": "China", + "map_region": "030" + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-day.json new file mode 100644 index 000000000000..dec4560545ea --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-day.json @@ -0,0 +1,78 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/file-downloads/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "num": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "period": "month", + "days": { + "{{now offset='-1 days' format='yyyy-MM-dd'}}": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-06-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-05-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-04-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-03-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-02-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-month.json new file mode 100644 index 000000000000..9eee332d6abf --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-month.json @@ -0,0 +1,78 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/file-downloads/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "num": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "period": "month", + "days": { + "{{now offset='-1 days' format='yyyy-MM-dd'}}": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-06-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-05-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-04-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-03-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-02-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2019-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-year.json new file mode 100644 index 000000000000..90ae3f45fa65 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_file-downloads-year.json @@ -0,0 +1,78 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/file-downloads/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "num": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "period": "year", + "days": { + "2019-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2018-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2017-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2016-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2015-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2014-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + }, + "2013-01-01": { + "files": [ + + ], + "other_downloads": 0, + "total_downloads": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_followers_email.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_followers_email.json new file mode 100644 index 000000000000..f418613088ef --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_followers_email.json @@ -0,0 +1,42 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/followers/.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "max": { + "matches": "(.*)" + }, + "type": { + "equalTo": "email" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "page": 1, + "pages": 1, + "total": 1, + "total_email": 1, + "total_wpcom": 0, + "subscribers": [ + { + "avatar": "https://0.gravatar.com/avatar/69a6814a8e85942fee3e846b17554972?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "label": "follower@example.com", + "ID": "12345", + "url": null, + "follow_data": null, + "date_subscribed": "2018-02-21T03:10:54+00:00" + } + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_followers_wpcom.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_followers_wpcom.json new file mode 100644 index 000000000000..7377417b8eb0 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_followers_wpcom.json @@ -0,0 +1,35 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/followers/.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "max": { + "matches": "(.*)" + }, + "type": { + "equalTo": "wpcom" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "page": 1, + "pages": 0, + "total": 0, + "total_email": 1, + "total_wpcom": 0, + "subscribers": [ + + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_insights.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_insights.json new file mode 100644 index 000000000000..5778943de7bb --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_insights.json @@ -0,0 +1,114 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/insights/.*" + }, + "response": { + "status": 200, + "jsonBody": { + "highest_hour": 4, + "highest_hour_percent": 24.742268041237114, + "highest_day_of_week": 3, + "highest_day_percent": 33.793103448275865, + "days": { + "3": 49, + "0": 45, + "2": 21, + "1": 15, + "5": 6, + "4": 5, + "6": 4 + }, + "hours": { + "04": 24, + "17": 9, + "06": 8, + "21": 7, + "09": 6, + "12": 6, + "15": 5, + "18": 5, + "08": 4, + "16": 4, + "02": 4, + "05": 3, + "01": 2, + "10": 2, + "11": 2, + "00": 1, + "23": 1, + "03": 1, + "20": 1, + "14": 1, + "22": 1, + "19": 0, + "07": 0, + "13": 0 + }, + "hourly_views": { + "{{now offset='-2 days' format='yyyy-MM-dd'}} 10:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 11:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 12:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 13:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 14:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 15:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 16:00:00": 1, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 17:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 18:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 19:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 20:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 21:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 22:00:00": 0, + "{{now offset='-2 days' format='yyyy-MM-dd'}} 23:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 00:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 01:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 02:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 03:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 04:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 05:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 06:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 07:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 08:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 09:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 10:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 11:00:00": 1, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 12:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 13:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 14:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 15:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 16:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 17:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 18:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 19:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 20:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 21:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 22:00:00": 0, + "{{now offset='-1 days' format='yyyy-MM-dd'}} 23:00:00": 0, + "{{now format='yyyy-MM-dd'}} 00:00:00": 0, + "{{now format='yyyy-MM-dd'}} 01:00:00": 0, + "{{now format='yyyy-MM-dd'}} 02:00:00": 0, + "{{now format='yyyy-MM-dd'}} 03:00:00": 0, + "{{now format='yyyy-MM-dd'}} 04:00:00": 0, + "{{now format='yyyy-MM-dd'}} 05:00:00": 0, + "{{now format='yyyy-MM-dd'}} 06:00:00": 0, + "{{now format='yyyy-MM-dd'}} 07:00:00": 0, + "{{now format='yyyy-MM-dd'}} 08:00:00": 0, + "{{now format='yyyy-MM-dd'}} 09:00:00": 0 + }, + "years": [ + { + "year": "2016", + "total_posts": 2, + "total_words": 105, + "avg_words": 52.5, + "total_likes": 0, + "avg_likes": 0, + "total_comments": 0, + "avg_comments": 0, + "total_images": 2, + "avg_images": 1 + } + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_post_106.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_post_106.json new file mode 100644 index 000000000000..038007aba9c0 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_post_106.json @@ -0,0 +1,17 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/.*/stats/post/(.*)(/?)" + }, + "response": { + "status": 200, + "jsonBody": { + "views": 35 + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_publicize.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_publicize.json new file mode 100644 index 000000000000..15b406ad98a2 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_publicize.json @@ -0,0 +1,27 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/publicize/.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "max": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "services": [ + + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-day.json new file mode 100644 index 000000000000..590b133fbd50 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-day.json @@ -0,0 +1,36 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/referrers/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2020-01-01", + "days": { + "2020-01-01": { + "groups": [ + + ], + "other_views": 0, + "total_views": 0 + } + }, + "period": "day" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-month.json new file mode 100644 index 000000000000..edc495a7e338 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-month.json @@ -0,0 +1,50 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/referrers/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "days": { + "2019-07-01": { + "groups": [ + { + "group": "Search Engines", + "name": "Search Engines", + "icon": "https://wordpress.com/i/stats/search-engine.png", + "total": 1, + "follow_data": null, + "results": [ + { + "name": "Google Search", + "url": "http://www.google.com/", + "icon": "https://secure.gravatar.com/blavatar/6741a05f4bc6e5b65f504c4f3df388a1?s=48", + "views": 1 + } + ] + } + ], + "other_views": 0, + "total_views": 1 + } + }, + "period": "month" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-year.json new file mode 100644 index 000000000000..37f7619e443a --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers-year.json @@ -0,0 +1,97 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/referrers/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "days": { + "2019-01-01": { + "groups": [ + { + "group": "Search Engines", + "name": "Search Engines", + "icon": "https://wordpress.com/i/stats/search-engine.png", + "total": 28, + "follow_data": null, + "results": [ + { + "name": "Google Search", + "icon": "https://secure.gravatar.com/blavatar/6741a05f4bc6e5b65f504c4f3df388a1?s=48", + "views": 26, + "children": [ + { + "name": "google.com", + "url": "http://www.google.com/", + "icon": null, + "views": 23 + }, + { + "name": "google.co.in", + "url": "http://www.google.co.in", + "icon": "https://secure.gravatar.com/blavatar/b8b1615bdc37f756888332cc17e0a5bf?s=48", + "views": 3 + } + ] + }, + { + "name": "Yahoo Search", + "url": "https://search.yahoo.com/", + "icon": "https://secure.gravatar.com/blavatar/5029a4a8e7da221ae517ddaa0dd5422b?s=48", + "views": 1 + }, + { + "name": "Bing", + "url": "http://www.bing.com", + "icon": "https://secure.gravatar.com/blavatar/112a7e096595d1c32c4ecdfd9e56b66c?s=48", + "views": 1 + } + ] + }, + { + "group": "facebook.com", + "name": "Facebook", + "url": "http://facebook.com/", + "icon": "https://secure.gravatar.com/blavatar/2343ec78a04c6ea9d80806345d31fd78?s=48", + "total": 9, + "follow_data": null, + "results": { + "views": 9 + } + }, + { + "group": "instagram.com", + "name": "Instagram", + "url": "http://l.instagram.com/?u=http%3A%2F%2Finfocusphotographers.com%2F&e=AT3BNF8FeF67OPMIY3HP5Jeb7nbdGNsihf8RKdPUQh1TX6CKkSeszZiAm8E3-newXBc2VLtbKKQML1BwLFOKvCJ4maub2TNd_oVhDT2_JVebheBgL4v6J3SSa_s", + "icon": "https://secure.gravatar.com/blavatar/8dc6460bbbb088757ed67ed8fb316b1b?s=48", + "total": 1, + "follow_data": null, + "results": { + "views": 1 + } + } + ], + "other_views": 0, + "total_views": 38 + } + }, + "period": "year" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers.json new file mode 100644 index 000000000000..f3ddf65020c4 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_referrers.json @@ -0,0 +1,27 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/referrers/" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "groups": [ + + ], + "other_views": 0, + "total_views": 0 + } + }, + "period": "day" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms-month.json new file mode 100644 index 000000000000..ced1ebdde24b --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms-month.json @@ -0,0 +1,37 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/search-terms/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "period": "month", + "days": { + "2019-07-01": { + "search_terms": [ + + ], + "encrypted_search_terms": 0, + "other_search_terms": 0, + "total_search_terms": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms-year.json new file mode 100644 index 000000000000..4a469528b931 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms-year.json @@ -0,0 +1,40 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/search-terms/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "period": "year", + "days": { + "2019-01-01": { + "search_terms": [ + { + "term": "+http:/infocusphotographers.com|", + "views": 1 + } + ], + "encrypted_search_terms": 3, + "other_search_terms": 0, + "total_search_terms": 4 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms.json new file mode 100644 index 000000000000..b38b63689100 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms.json @@ -0,0 +1,28 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/search-terms/" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "period": "day", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "search_terms": [ + + ], + "encrypted_search_terms": 0, + "other_search_terms": 0, + "total_search_terms": 0 + } + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms_day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms_day.json new file mode 100644 index 000000000000..5c95e6d0e094 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_search-terms_day.json @@ -0,0 +1,37 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/search-terms/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "period": "day", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "search_terms": [ + + ], + "encrypted_search_terms": 0, + "other_search_terms": 0, + "total_search_terms": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_streak.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_streak.json new file mode 100644 index 000000000000..a6bd19143035 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_streak.json @@ -0,0 +1,26 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/streak/.*" + }, + "response": { + "status": 200, + "jsonBody": { + "streak": { + "long": { + "start": "", + "end": "", + "length": 1 + }, + "current": { + "start": "", + "end": "", + "length": 0 + } + }, + "data": [ + + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_summary.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_summary.json new file mode 100644 index 000000000000..24effe6d1065 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_summary.json @@ -0,0 +1,24 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/summary/.*" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "period": "day", + "views": 0, + "visitors": 0, + "likes": 0, + "reblogs": 0, + "comments": 0, + "followers": 1 + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_tags.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_tags.json new file mode 100644 index 000000000000..e6092f9e1176 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_tags.json @@ -0,0 +1,28 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/rest/v1.1/sites/.*/stats/tags/.*", + "queryParameters": { + "locale": { + "matches": "(.*)" + }, + "max": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "tags": [ + + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-day.json new file mode 100644 index 000000000000..5352d383ee8e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-day.json @@ -0,0 +1,99 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/top-authors/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "days": { + "2019-07-01": { + "authors": [ + { + "name": "Leah Elaine Rand", + "avatar": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "views": 12, + "posts": [ + { + "id": 1, + "title": "Home", + "url": "http://infocusphotographers.com/about/", + "views": 12, + "video": false + } + ], + "follow_data": { + "params": { + "stat-source": "stats_author", + "follow-text": "Follow", + "following-text": "Following", + "following-hover-text": "Unfollow", + "blog_domain": "leahinfocus.wordpress.com", + "blog_url": "http://leahinfocus.wordpress.com", + "blog_id": 106523982, + "site_id": 106523982, + "blog_title": "Leah in Focus", + "is_following": false + }, + "type": "follow" + } + }, + { + "name": "Andrea Zoellner", + "avatar": "https://0.gravatar.com/avatar/c294f0a8bad2d33f62dd1c2d81b38f99?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "views": 2, + "posts": [ + { + "id": 22, + "title": "Our Story", + "url": "http://infocusphotographers.com/our-story/", + "views": 1, + "video": false + }, + { + "id": 24, + "title": "Portfolio", + "url": "http://infocusphotographers.com/portfolio/", + "views": 1, + "video": false + } + ], + "follow_data": { + "params": { + "stat-source": "stats_author", + "follow-text": "Follow", + "following-text": "Following", + "following-hover-text": "Unfollow", + "blog_domain": "andreazoellner.wordpress.com", + "blog_url": "http://andreazoellner.wordpress.com", + "blog_id": 67702148, + "site_id": 67702148, + "blog_title": "Andrea Zoellner", + "is_following": false + }, + "type": "follow" + } + } + ], + "other_views": 0 + } + }, + "period": "day" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-month.json new file mode 100644 index 000000000000..403024c14198 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-month.json @@ -0,0 +1,99 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/top-authors//", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "days": { + "2019-07-01": { + "authors": [ + { + "name": "Leah Elaine Rand", + "avatar": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "views": 12, + "posts": [ + { + "id": 1, + "title": "Home", + "url": "http://infocusphotographers.com/about/", + "views": 12, + "video": false + } + ], + "follow_data": { + "params": { + "stat-source": "stats_author", + "follow-text": "Follow", + "following-text": "Following", + "following-hover-text": "Unfollow", + "blog_domain": "leahinfocus.wordpress.com", + "blog_url": "http://leahinfocus.wordpress.com", + "blog_id": 106523982, + "site_id": 106523982, + "blog_title": "Leah in Focus", + "is_following": false + }, + "type": "follow" + } + }, + { + "name": "Andrea Zoellner", + "avatar": "https://0.gravatar.com/avatar/c294f0a8bad2d33f62dd1c2d81b38f99?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "views": 2, + "posts": [ + { + "id": 22, + "title": "Our Story", + "url": "http://infocusphotographers.com/our-story/", + "views": 1, + "video": false + }, + { + "id": 24, + "title": "Portfolio", + "url": "http://infocusphotographers.com/portfolio/", + "views": 1, + "video": false + } + ], + "follow_data": { + "params": { + "stat-source": "stats_author", + "follow-text": "Follow", + "following-text": "Following", + "following-hover-text": "Unfollow", + "blog_domain": "andreazoellner.wordpress.com", + "blog_url": "http://andreazoellner.wordpress.com", + "blog_id": 67702148, + "site_id": 67702148, + "blog_title": "Andrea Zoellner", + "is_following": false + }, + "type": "follow" + } + } + ], + "other_views": 0 + } + }, + "period": "month" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-year.json new file mode 100644 index 000000000000..8b6902b64579 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors-year.json @@ -0,0 +1,155 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/106707880/stats/top-authors/*", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "days": { + "2019-01-01": { + "authors": [ + { + "name": "Leah Elaine Rand", + "avatar": "https://0.gravatar.com/avatar/62937c26a2a79bae5921ca9e85be8040?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "views": 218, + "posts": [ + { + "id": 1, + "title": "Home", + "url": "http://infocusphotographers.com/about/", + "views": 190, + "video": false + }, + { + "id": 90, + "title": "Martin and Amy's Wedding", + "url": "http://infocusphotographers.com/2016/03/07/martin-and-amys-wedding/", + "views": 13, + "video": false + }, + { + "id": 13, + "title": "Services", + "url": "http://infocusphotographers.com/services/", + "views": 12, + "video": false + }, + { + "id": 106, + "title": "Some News to Share", + "url": "http://infocusphotographers.com/2016/04/19/some-news-to-share/", + "views": 3, + "video": false + } + ], + "follow_data": { + "params": { + "stat-source": "stats_author", + "follow-text": "Follow", + "following-text": "Following", + "following-hover-text": "Unfollow", + "blog_domain": "leahinfocus.wordpress.com", + "blog_url": "http://leahinfocus.wordpress.com", + "blog_id": 106523982, + "site_id": 106523982, + "blog_title": "Leah in Focus", + "is_following": false + }, + "type": "follow" + } + }, + { + "name": "Andrea Zoellner", + "avatar": "https://0.gravatar.com/avatar/c294f0a8bad2d33f62dd1c2d81b38f99?s=64&d=https%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&r=G", + "views": 78, + "posts": [ + { + "id": 22, + "title": "Our Story", + "url": "http://infocusphotographers.com/our-story/", + "views": 26, + "video": false + }, + { + "id": 24, + "title": "Portfolio", + "url": "http://infocusphotographers.com/portfolio/", + "views": 19, + "video": false + }, + { + "id": 85, + "title": "photo-1432250767374-ee19cba37b52", + "url": "http://infocusphotographers.com/portfolio/photo-1432250767374-ee19cba37b52/", + "views": 4, + "video": false + }, + { + "id": 84, + "title": "unsplash_5252bb51404f8_1", + "url": "http://infocusphotographers.com/portfolio/unsplash_5252bb51404f8_1/", + "views": 4, + "video": false + }, + { + "id": 28, + "title": "photo-1423110041833-0d5dfcc552e1", + "url": "http://infocusphotographers.com/portfolio/photo-1423110041833-0d5dfcc552e1/", + "views": 4, + "video": false + }, + { + "id": 5, + "title": "dpzDUkJrTHb71Yla1EzF_IMG_4098", + "url": "http://infocusphotographers.com/about/dpzdukjrthb71yla1ezf_img_4098/", + "views": 4, + "video": false + }, + { + "id": 83, + "title": "photo-1443745029291-d5c27bc0b562", + "url": "http://infocusphotographers.com/portfolio/photo-1443745029291-d5c27bc0b562/", + "views": 4, + "video": false + } + ], + "follow_data": { + "params": { + "stat-source": "stats_author", + "follow-text": "Follow", + "following-text": "Following", + "following-hover-text": "Unfollow", + "blog_domain": "andreazoellner.wordpress.com", + "blog_url": "http://andreazoellner.wordpress.com", + "blog_id": 67702148, + "site_id": 67702148, + "blog_title": "Andrea Zoellner", + "is_following": false + }, + "type": "follow" + } + } + ], + "other_views": 0 + } + }, + "period": "year" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors.json new file mode 100644 index 000000000000..8b8e9ffa12d2 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-authors.json @@ -0,0 +1,25 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/top-authors/" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "authors": [ + + ] + } + }, + "period": "day" + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-day.json new file mode 100644 index 000000000000..582c08400813 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-day.json @@ -0,0 +1,52 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/top-posts/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "postviews": [ + { + "id": 1, + "href": "http://infocusphotographers.com/about/", + "date": "2016-02-09 16:07:34", + "title": "Home", + "type": "page", + "views": 2, + "video_play": false + }, + { + "id": 22, + "href": "http://infocusphotographers.com/our-story/", + "date": "2016-02-09 17:32:50", + "title": "Our Story", + "type": "page", + "views": 1, + "video_play": false + } + ], + "total_views": "3" + } + }, + "period": "day" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-month.json new file mode 100644 index 000000000000..f1a70b493303 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-month.json @@ -0,0 +1,88 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/top-posts/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "days": { + "2019-07-01": { + "postviews": [ + { + "id": 1, + "href": "http://infocusphotographers.com/about/", + "date": "2016-02-09 16:07:34", + "title": "Home", + "type": "page", + "views": 403, + "video_play": false + }, + { + "id": 22, + "href": "http://infocusphotographers.com/our-story/", + "date": "2016-02-09 17:32:50", + "title": "Our Services", + "type": "page", + "views": 306, + "video_play": false + }, + { + "id": 24, + "href": "http://infocusphotographers.com/portfolio/", + "date": "2016-02-09 17:33:03", + "title": "About Us", + "type": "page", + "views": 288, + "video_play": false + }, + { + "id": 24, + "href": "http://infocusphotographers.com/portfolio/", + "date": "2016-02-09 17:33:03", + "title": "Contact Us", + "type": "page", + "views": 145, + "video_play": false + }, + { + "id": 24, + "href": "http://infocusphotographers.com/portfolio/", + "date": "2016-02-09 17:33:03", + "title": "What to know buying your first home", + "type": "page", + "views": 52, + "video_play": false + }, + { + "id": 24, + "href": "http://infocusphotographers.com/portfolio/", + "date": "2016-02-09 17:33:03", + "title": "Staging tips and tricks", + "type": "page", + "views": 39, + "video_play": false + } + ], + "total_views": 16 + } + }, + "period": "month" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-year.json new file mode 100644 index 000000000000..0dc7c1c4a76f --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_top-posts-year.json @@ -0,0 +1,162 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/top-posts/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "days": { + "2019-01-01": { + "postviews": [ + { + "id": 1, + "href": "http://infocusphotographers.com/about/", + "date": "2016-02-09 16:07:34", + "title": "Home", + "type": "page", + "views": 190, + "children": [ + { + "title": "dpzdukjrthb71yla1ezf_img_4098", + "link": "http://infocusphotographers.com/about/dpzdukjrthb71yla1ezf_img_4098/", + "views": 4, + "type": "attachment" + } + ], + "video_play": false + }, + { + "id": 22, + "href": "http://infocusphotographers.com/our-story/", + "date": "2016-02-09 17:32:50", + "title": "Our Story", + "type": "page", + "views": 26, + "video_play": false + }, + { + "id": 24, + "href": "http://infocusphotographers.com/portfolio/", + "date": "2016-02-09 17:33:03", + "title": "Portfolio", + "type": "page", + "views": 19, + "children": [ + { + "title": "photo-1432250767374-ee19cba37b52", + "link": "http://infocusphotographers.com/portfolio/photo-1432250767374-ee19cba37b52/", + "views": 4, + "type": "attachment" + }, + { + "title": "unsplash_5252bb51404f8_1", + "link": "http://infocusphotographers.com/portfolio/unsplash_5252bb51404f8_1/", + "views": 4, + "type": "attachment" + }, + { + "title": "photo-1423110041833-0d5dfcc552e1", + "link": "http://infocusphotographers.com/portfolio/photo-1423110041833-0d5dfcc552e1/", + "views": 4, + "type": "attachment" + }, + { + "title": "photo-1443745029291-d5c27bc0b562", + "link": "http://infocusphotographers.com/portfolio/photo-1443745029291-d5c27bc0b562/", + "views": 4, + "type": "attachment" + }, + { + "title": "photo-1447940334172-44e027c1f71c", + "link": "http://infocusphotographers.com/portfolio/photo-1447940334172-44e027c1f71c/", + "views": 3, + "type": "attachment" + }, + { + "title": "photo-1439539698758-ba2680ecadb9", + "link": "http://infocusphotographers.com/portfolio/photo-1439539698758-ba2680ecadb9/", + "views": 2, + "type": "attachment" + }, + { + "title": "photo-1453857271477-4f9a4081966e-2", + "link": "http://infocusphotographers.com/portfolio/photo-1453857271477-4f9a4081966e-2/", + "views": 2, + "type": "attachment" + }, + { + "title": "photo-1453857122308-5e78881d7acc", + "link": "http://infocusphotographers.com/portfolio/photo-1453857122308-5e78881d7acc/", + "views": 2, + "type": "attachment" + }, + { + "title": "photo-1452629135160-cf2a685e1f09", + "link": "http://infocusphotographers.com/portfolio/photo-1452629135160-cf2a685e1f09/", + "views": 2, + "type": "attachment" + } + ], + "video_play": false + }, + { + "id": 0, + "href": "http://infocusphotographers.com/", + "date": null, + "title": "Home page / Archives", + "type": "homepage", + "views": 17, + "video_play": false + }, + { + "id": 90, + "href": "http://infocusphotographers.com/2016/03/07/martin-and-amys-wedding/", + "date": "2016-03-07 18:32:11", + "title": "Martin and Amy's Wedding", + "type": "post", + "views": 13, + "video_play": false + }, + { + "id": 13, + "href": "http://infocusphotographers.com/services/", + "date": "2016-02-09 17:16:04", + "title": "Services", + "type": "page", + "views": 12, + "video_play": false + }, + { + "id": 106, + "href": "http://infocusphotographers.com/2016/04/19/some-news-to-share/", + "date": "2016-04-19 21:28:27", + "title": "Some News to Share", + "type": "post", + "views": 3, + "video_play": false + } + ], + "total_views": 313, + "other_views": 33 + } + }, + "period": "year" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-day.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-day.json new file mode 100644 index 000000000000..5cdf5722a742 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-day.json @@ -0,0 +1,36 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/video-plays/", + "queryParameters": { + "period": { + "equalTo": "day" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "period": "day", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "plays": [ + + ], + "other_plays": 0, + "total_plays": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-month.json new file mode 100644 index 000000000000..76143cce05d6 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-month.json @@ -0,0 +1,36 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/video-plays/", + "queryParameters": { + "period": { + "equalTo": "month" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-31", + "period": "month", + "days": { + "2019-07-01": { + "plays": [ + + ], + "other_plays": 0, + "total_plays": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-year.json new file mode 100644 index 000000000000..b5f29b2da78d --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays-year.json @@ -0,0 +1,36 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/video-plays/", + "queryParameters": { + "period": { + "equalTo": "year" + }, + "max": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-12-31", + "period": "year", + "days": { + "2019-01-01": { + "plays": [ + + ], + "other_plays": 0, + "total_plays": 0 + } + } + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays.json new file mode 100644 index 000000000000..bc2f48a8837d --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_video-plays.json @@ -0,0 +1,27 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/video-plays/" + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "period": "day", + "days": { + "{{now format='yyyy-MM-dd'}}": { + "plays": [ + + ], + "other_plays": 0, + "total_plays": 0 + } + } + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits-month.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits-month.json new file mode 100644 index 000000000000..158bd321bcac --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits-month.json @@ -0,0 +1,119 @@ +{ + "request": { + "method": "GET", + "urlPathPattern": "/rest/v1.1/sites/([0-9]+)/stats/visits/", + "queryParameters": { + "unit": { + "equalTo": "month" + }, + "quantity": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "unit": "month", + "fields": [ + "period", + "views", + "visitors", + "comments" + ], + "data": [ + [ + "{{now offset='-13 months' format='yyyy-MM-dd'}}", + 1443, + 678, + 0 + ], + [ + "{{now offset='-12 months' format='yyyy-MM-dd'}}", + 1371, + 647, + 0 + ], + [ + "{{now offset='-11 months' format='yyyy-MM-dd'}}", + 1444, + 678, + 0 + ], + [ + "{{now offset='-10 months' format='yyyy-MM-dd'}}", + 1361, + 634, + 1 + ], + [ + "{{now offset='-9 months' format='yyyy-MM-dd'}}", + 1195, + 560, + 0 + ], + [ + "{{now offset='-8 months' format='yyyy-MM-dd'}}", + 1391, + 644, + 0 + ], + [ + "{{now offset='-7 months' format='yyyy-MM-dd'}}", + 1257, + 588, + 0 + ], + [ + "{{now offset='-6 months' format='yyyy-MM-dd'}}", + 1458, + 686, + 0 + ], + [ + "{{now offset='-5 months' format='yyyy-MM-dd'}}", + 1716, + 808, + 0 + ], + [ + "{{now offset='-4 months' format='yyyy-MM-dd'}}", + 1586, + 746, + 0 + ], + [ + "{{now offset='-3 months' format='yyyy-MM-dd'}}", + 1342, + 659, + 0 + ], + [ + "{{now offset='-2 months' format='yyyy-MM-dd'}}", + 1280, + 643, + 0 + ], + [ + "{{now offset='-1 months' format='yyyy-MM-dd'}}", + 1218, + 623, + 0 + ], + [ + "{{now format='yyyy-MM-dd'}}", + 1233, + 655, + 0 + ] + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits-year.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits-year.json new file mode 100644 index 000000000000..44426144b0c2 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits-year.json @@ -0,0 +1,173 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/visits/", + "queryParameters": { + "unit": { + "equalTo": "year" + }, + "quantity": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "2019-07-16", + "unit": "year", + "fields": [ + "period", + "views", + "visitors", + "likes", + "reblogs", + "comments", + "posts" + ], + "data": [ + [ + "2005-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2006-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2007-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2008-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2009-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2010-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2011-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2012-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2013-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2014-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2015-01-01", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "2016-01-01", + 48, + 12, + 0, + 0, + 0, + 13 + ], + [ + "2017-01-01", + 788, + 465, + 0, + 0, + 0, + 3 + ], + [ + "2018-01-01", + 1215, + 632, + 0, + 0, + 0, + 3 + ], + [ + "2019-01-01", + 9148, + 4216, + 1351, + 864, + 0, + 0 + ] + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_1.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_1.json new file mode 100644 index 000000000000..dedfcd7a186a --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_1.json @@ -0,0 +1,47 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/visits/", + "queryParameters": { + "unit": { + "equalTo": "day" + }, + "quantity": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "unit": "day", + "fields": [ + "period", + "views", + "visitors", + "likes", + "reblogs", + "comments", + "posts" + ], + "data": [ + [ + "{{now format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ] + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_12.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_12.json new file mode 100644 index 000000000000..59531d4a9fe8 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_12.json @@ -0,0 +1,145 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/visits/", + "queryParameters": { + "unit": { + "equalTo": "day" + }, + "quantity": { + "matches": "[0-9]+" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "unit": "day", + "fields": [ + "period", + "views", + "visitors", + "likes", + "reblogs", + "comments", + "posts" + ], + "data": [ + [ + "{{now offset='-11 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-10 days' format='yyyy-MM-dd'}}", + 3, + 2, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-9 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-8 days' format='yyyy-MM-dd'}}", + 6, + 3, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-7 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-6 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-5 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-3 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-2 days' format='yyyy-MM-dd'}}", + 1, + 1, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-1 days' format='yyyy-MM-dd'}}", + 1, + 1, + 0, + 0, + 0, + 0 + ], + [ + "{{now format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ] + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_15.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_15.json new file mode 100644 index 000000000000..68232726194c --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/stats/stats_visits_unit_day_15.json @@ -0,0 +1,173 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/stats/visits/", + "queryParameters": { + "unit": { + "equalTo": "day" + }, + "quantity": { + "matches": "[0-9]+" + }, + "date": { + "matches": "(.*)" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "date": "{{now format='yyyy-MM-dd'}}", + "unit": "day", + "fields": [ + "period", + "views", + "visitors", + "likes", + "reblogs", + "comments", + "posts" + ], + "data": [ + [ + "{{now offset='-14 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-13 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-12 days' format='yyyy-MM-dd'}}", + 2, + 2, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-11 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-10 days' format='yyyy-MM-dd'}}", + 3, + 2, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-9 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-8 days' format='yyyy-MM-dd'}}", + 6, + 3, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-7 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-6 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-5 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-4 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-3 days' format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-2 days' format='yyyy-MM-dd'}}", + 1, + 1, + 0, + 0, + 0, + 0 + ], + [ + "{{now offset='-1 days' format='yyyy-MM-dd'}}", + 1, + 1, + 0, + 0, + 0, + 0 + ], + [ + "{{now format='yyyy-MM-dd'}}", + 0, + 0, + 0, + 0, + 0, + 0 + ] + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/terms/category.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/terms/category.json new file mode 100644 index 000000000000..9c42d616b360 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/terms/category.json @@ -0,0 +1,54 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/taxonomies/category/terms/", + "queryParameters": { + "number": { + "equalTo": "1000" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 2, + "terms": [ + { + "ID": 1, + "name": "Uncategorized", + "slug": "uncategorized", + "description": "", + "post_count": 1, + "feed_url": "http://infocusphotographers.com/category/uncategorized/feed/", + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:uncategorized/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + }, + { + "ID": 1674, + "name": "Wedding", + "slug": "wedding", + "description": "", + "post_count": 1, + "feed_url": "http://infocusphotographers.com/category/wedding/feed/", + "parent": 0, + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/categories/slug:wedding/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/terms/post_tag.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/terms/post_tag.json new file mode 100644 index 000000000000..e66841f2b9c4 --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/terms/post_tag.json @@ -0,0 +1,42 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/sites/106707880/taxonomies/post_tag/terms/", + "queryParameters": { + "number": { + "equalTo": "1000" + }, + "locale": { + "matches": "(.*)" + } + } + }, + "response": { + "status": 200, + "jsonBody": { + "found": 1, + "terms": [ + { + "ID": 2500, + "name": "tag", + "slug": "tag", + "description": "", + "post_count": 1, + "feed_url": "https://infocusphotographers.com/tag/tag/feed/", + "meta": { + "links": { + "self": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/tags/slug:tag", + "help": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880/tags/slug:tag/help", + "site": "{{request.requestLine.baseUrl}}/rest/v1.1/sites/106707880" + } + } + } + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/themes/v2_sites_106707880_themes.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/themes/v2_sites_106707880_themes.json new file mode 100644 index 000000000000..1ef3068ff24e --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/themes/v2_sites_106707880_themes.json @@ -0,0 +1,144 @@ +{ + "request": { + "method": "GET", + "urlPattern": "/wp/v2/sites/.*/themes.*" + }, + "response": { + "status": 200, + "jsonBody": [ + { + "stylesheet": "pub/edin", + "template": "pub/edin", + "requires_php": "", + "requires_wp": "", + "textdomain": "edin", + "version": "1.3.2-wpcom", + "screenshot": "https://s0.wp.com/wp-content/themes/pub/edin/screenshot.png", + "author": { + "raw": "Automattic", + "rendered": "Automattic" + }, + "author_uri": { + "raw": "https://wordpress.com/themes/", + "rendered": "https://wordpress.com/themes/" + }, + "description": { + "raw": "Edin is a modern responsive business and corporate theme that helps you to create a strong--yet beautiful--online presence for your business.", + "rendered": "Edin is a modern responsive business and corporate theme that helps you to create a strong–yet beautiful–online presence for your business." + }, + "name": { + "raw": "Edin", + "rendered": "Edin" + }, + "tags": { + "raw": [ + "Blog", + "Blue", + "breadcrumb-navigation", + "bright", + "business", + "classic-menu", + "clean", + "collaboration", + "conservative", + "Custom Background", + "Custom Colors", + "Custom Header", + "custom-menu", + "design", + "Editor Style", + "elegant", + "Featured Images", + "flexible-header", + "food", + "formal", + "Full Width Template", + "Gray", + "hotel", + "Infinite Scroll", + "Left Sidebar", + "Light", + "Light", + "minimal", + "modern", + "multiple-menus", + "Post Formats", + "professional", + "real-estate", + "Responsive Layout", + "Right Sidebar", + "RTL Language Support", + "school", + "simple", + "site-logo", + "sophisticated", + "Sticky Post", + "testimonials", + "Theme Options", + "traditional", + "Translation Ready", + "Two Columns", + "White" + ], + "rendered": "Blog, Blue, breadcrumb-navigation, bright, business, classic-menu, clean, collaboration, conservative, Custom Background, Custom Colors, Custom Header, custom-menu, design, Editor Style, elegant, Featured Images, flexible-header, food, formal, Full Width Template, Gray, hotel, Infinite Scroll, Left Sidebar, Light, Light, minimal, modern, multiple-menus, Post Formats, professional, real-estate, Responsive Layout, Right Sidebar, RTL Language Support, school, simple, site-logo, sophisticated, Sticky Post, testimonials, Theme Options, traditional, Translation Ready, Two Columns, White" + }, + "theme_uri": { + "raw": "https://wordpress.com/themes/edin/", + "rendered": "https://wordpress.com/themes/edin/" + }, + "theme_supports": { + "align-wide": false, + "automatic-feed-links": true, + "custom-background": { + "default-color": "ffffff", + "default-image": "" + }, + "custom-header": { + "default-image": "", + "default-text-color": "303030", + "width": 1230, + "height": 100, + "flex-width": true, + "flex-height": true + }, + "custom-logo": false, + "customize-selective-refresh-widgets": false, + "dark-editor-style": false, + "disable-custom-colors": false, + "disable-custom-font-sizes": false, + "disable-custom-gradients": false, + "editor-color-palette": false, + "editor-font-sizes": false, + "editor-gradient-presets": false, + "editor-styles": false, + "html5": [ + "search-form", + "comment-form", + "comment-list", + "gallery", + "caption" + ], + "formats": [ + "standard", + "aside", + "image", + "video", + "quote", + "link", + "status", + "gallery" + ], + "post-thumbnails": true, + "responsive-embeds": false, + "title-tag": false, + "wp-block-styles": false + } + } + ], + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/tracks/rest_v11_tracks_record.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/tracks/rest_v11_tracks_record.json new file mode 100644 index 000000000000..fd6d1f5ecacd --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/tracks/rest_v11_tracks_record.json @@ -0,0 +1,19 @@ +{ + "id": "2ad4ffca-6254-4b1e-b005-982ac3b4f8f6", + "name": "rest_v11_tracks_record", + "request": { + "urlPath": "/rest/v1.1/tracks/record", + "method": "POST" + }, + "response": { + "status": 202, + "body": "\"Accepted\"", + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + }, + "uuid": "2ad4ffca-6254-4b1e-b005-982ac3b4f8f6", + "persistent": true +} \ No newline at end of file diff --git a/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/users/v11_users_suggest.json b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/users/v11_users_suggest.json new file mode 100644 index 000000000000..fd558b640b7d --- /dev/null +++ b/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/users/v11_users_suggest.json @@ -0,0 +1,19 @@ +{ + "request": { + "method": "GET", + "urlPath": "/rest/v1.1/users/suggest" + }, + "response": { + "status": 200, + "jsonBody": { + "suggestions": [ + + ] + }, + "headers": { + "Content-Type": "application/json", + "Connection": "keep-alive", + "Cache-Control": "no-cache, must-revalidate, max-age=0" + } + } +} \ No newline at end of file diff --git a/API-Mocks/scripts/start.sh b/API-Mocks/scripts/start.sh new file mode 100755 index 000000000000..9c27c4c9a1b1 --- /dev/null +++ b/API-Mocks/scripts/start.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -eu + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +VENDOR_DIR="$(pwd)/vendor/wiremock" + +WIREMOCK_VERSION="2.25.1" +WIREMOCK_JAR="${VENDOR_DIR}/wiremock-standalone-${WIREMOCK_VERSION}.jar" + +if [ ! -f "$WIREMOCK_JAR" ]; then + mkdir -p "${VENDOR_DIR}" && cd "${VENDOR_DIR}" + curl -O -J "https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/${WIREMOCK_VERSION}/wiremock-standalone-${WIREMOCK_VERSION}.jar" + cd .. +fi + +# Use provided port, or default to 8282 +PORT="${1:-8282}" + +# Start WireMock server. See http://wiremock.org/docs/running-standalone/ +java -jar "${WIREMOCK_JAR}" --root-dir "${SCRIPT_DIR}/../WordPressMocks/src/main/assets/mocks" \ + --port "$PORT" \ + --global-response-templating diff --git a/API-Mocks/scripts/stop.sh b/API-Mocks/scripts/stop.sh new file mode 100755 index 000000000000..577f39af6c6b --- /dev/null +++ b/API-Mocks/scripts/stop.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -eu + +# Use provided port, or default to 8282 +PORT="${1:-8282}" + +echo "Shutting down WireMock server ..." + +# Shutdown the WireMock server. See http://wiremock.org/docs/running-standalone/#shutting-down +curl -X POST "http://localhost:8282/__admin/shutdown" diff --git a/Podfile b/Podfile index b62c1ed24bae..ac348e09a603 100644 --- a/Podfile +++ b/Podfile @@ -347,23 +347,11 @@ target 'WordPressNotificationServiceExtension' do wordpress_ui end -## Mocks -## =================== -## -def wordpress_mocks - pod 'WordPressMocks', '~> 0.0.16' - # pod 'WordPressMocks', :git => 'https://github.com/wordpress-mobile/WordPressMocks.git', :commit => '' - # pod 'WordPressMocks', git: 'https://github.com/wordpress-mobile/WordPressMocks.git', branch: 'fix/jetpack-screenshot-generation' - # pod 'WordPressMocks', :path => '../WordPressMocks' -end - ## Screenshot Generation ## =================== ## target 'WordPressScreenshotGeneration' do project 'WordPress/WordPress.xcodeproj' - - wordpress_mocks end ## UI Tests @@ -371,8 +359,6 @@ end ## target 'WordPressUITests' do project 'WordPress/WordPress.xcodeproj' - - wordpress_mocks end # Static Frameworks: diff --git a/Podfile.lock b/Podfile.lock index acfe98ec90fc..c61d5f703f58 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -510,7 +510,6 @@ PODS: - UIDeviceIdentifier (~> 2.0) - WordPressShared (~> 1.15-beta) - wpxmlrpc (~> 0.9) - - WordPressMocks (0.0.16) - WordPressShared (1.18.0): - CocoaLumberjack (~> 3.4) - FormatterKit/TimeIntervalFormatter (~> 1.8) @@ -608,7 +607,6 @@ DEPENDENCIES: - WordPress-Editor-iOS (~> 1.19.8) - WordPressAuthenticator (~> 2.0.0) - WordPressKit (~> 4.55.0) - - WordPressMocks (~> 0.0.16) - WordPressShared (~> 1.18.0) - WordPressUI (~> 1.12.5) - WPMediaPicker (~> 1.8.4) @@ -659,7 +657,6 @@ SPEC REPOS: - WordPress-Aztec-iOS - WordPress-Editor-iOS - WordPressKit - - WordPressMocks - WordPressShared - WordPressUI - WPMediaPicker @@ -877,7 +874,6 @@ SPEC CHECKSUMS: WordPress-Editor-iOS: 9eb9f12f21a5209cb837908d81ffe1e31cb27345 WordPressAuthenticator: 5163f732e4e529781f931f158f54b1a1545bc536 WordPressKit: eb0949165ec479f2ec1c205f141fd62c72c5047a - WordPressMocks: de50fe5968a98fa05db1fb1f9a1a23c3d288b58c WordPressShared: e5a479220643f46dc4d7726ef8dd45f18bf0c53b WordPressUI: c5be816f6c7b3392224ac21de9e521e89fa108ac WPMediaPicker: 9533160e5587939876aeeb1461a441a4e5dc4c4d @@ -892,6 +888,6 @@ SPEC CHECKSUMS: ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba ZIPFoundation: ae5b4b813d216d3bf0a148773267fff14bd51d37 -PODFILE CHECKSUM: c00ef79e0a0519b7b593a207a48aef6438ca14dc +PODFILE CHECKSUM: 53b965c37b18559254623ec12ddd2cd20f520fb6 COCOAPODS: 1.11.2 diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 504934b1b460..d1f22bbe7721 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,10 +1,9 @@ 20.3 ----- - +* [*] Block Editor: Fixed an issue where the media picker search query was being retained after dismissing the picker and opening it again. [#18980] 20.2 ----- -* [***] [Jetpack-only] The Insights view in Stats has been revamped with a cleaner look and a new set of cards to make it easier than ever to see at a glance how your site's performing. [#18945] * [*] Preview: Post preview now resizes to account for device orientation change. [#18921] * [***] [Jetpack-only] Enables QR Code Login scanning from the Me menu. [#18904] * [*] Reverted the app icon back to Cool Blue. Users can reselect last month's icon in Me > App Settings > App Icon if they'd like. [#18934] diff --git a/Rakefile b/Rakefile index 5e9650b0e0c6..2fc5230d1321 100644 --- a/Rakefile +++ b/Rakefile @@ -183,11 +183,7 @@ CLOBBER << 'vendor' desc 'Mocks' task :mocks do - wordpress_mocks_path = './Pods/WordPressMocks' - # If WordPressMocks is referenced by a local path, use that. - wordpress_mocks_path = lockfile_hash.dig('EXTERNAL SOURCES', 'WordPressMocks', :path) unless lockfile_hash.dig('EXTERNAL SOURCES', 'WordPressMocks', :path).nil? - - sh "#{wordpress_mocks_path}/scripts/start.sh 8282" + sh "#{File.join(PROJECT_DIR, 'API-Mocks', 'scripts', 'start.sh')} 8282" end desc "Build #{XCODE_SCHEME}" diff --git a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergMediaPickerHelper.swift b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergMediaPickerHelper.swift index a4146ff3befc..84f501fd34f8 100644 --- a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergMediaPickerHelper.swift +++ b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergMediaPickerHelper.swift @@ -132,6 +132,7 @@ extension GutenbergMediaPickerHelper: WPMediaPickerViewControllerDelegate { } func mediaPickerControllerDidCancel(_ picker: WPMediaPickerViewController) { + mediaLibraryDataSource.searchCancelled() context.dismiss(animated: true, completion: { self.invokeMediaPickerCallback(asset: nil) }) } diff --git a/WordPress/Classes/ViewRelated/Jetpack Branding/JetpackBannerView.swift b/WordPress/Classes/ViewRelated/Jetpack Branding/JetpackBannerView.swift new file mode 100644 index 000000000000..8e9e46e91c0e --- /dev/null +++ b/WordPress/Classes/ViewRelated/Jetpack Branding/JetpackBannerView.swift @@ -0,0 +1,75 @@ +import UIKit + +class JetpackBannerView: UIView { + + override init(frame: CGRect) { + super.init(frame: frame) + setup() + + } + + required init?(coder aDecoder: NSCoder) { + super.init(coder: aDecoder) + setup() + } + + override var intrinsicContentSize: CGSize { + return isHidden ? CGSize.zero : super.intrinsicContentSize + } + + func setup() { + + translatesAutoresizingMaskIntoConstraints = false + backgroundColor = Appearance.jetpackBackgroundColor + + let jetpackButton = makeJetpackButton() + addSubview(jetpackButton) + + pinSubviewToAllEdges(jetpackButton) + } + + private func makeJetpackButton() -> UIButton { + let jetpackButton = UIButton() + jetpackButton.isUserInteractionEnabled = false + jetpackButton.translatesAutoresizingMaskIntoConstraints = false + jetpackButton.setTitle(Appearance.jetpackBannerTitle, for: .normal) + jetpackButton.tintColor = .muriel(color: .jetpackGreen, .shade40) + jetpackButton.setTitleColor(UIColor(light: .black, dark: .white), for: .normal) + jetpackButton.titleLabel?.font = Appearance.jetpackButtonFont + jetpackButton.titleLabel?.adjustsFontForContentSizeCategory = true + jetpackButton.titleLabel?.minimumScaleFactor = Appearance.jetpackFontMinimumScaleFactor + jetpackButton.titleLabel?.adjustsFontSizeToFitWidth = true + jetpackButton.setImage(.gridicon(.plans, size: Appearance.jetpackIconSize), for: .normal) + jetpackButton.imageEdgeInsets = Appearance.jetpackIconInsets + + // sets the background of the jp logo to white + if let imageView = jetpackButton.imageView { + let view = UIView() + view.backgroundColor = .white + view.translatesAutoresizingMaskIntoConstraints = false + jetpackButton.insertSubview(view, belowSubview: imageView) + view.layer.cornerRadius = Appearance.jetpackIconBackgroundSize / 2 + view.clipsToBounds = true + NSLayoutConstraint.activate([ + view.centerXAnchor.constraint(equalTo: imageView.centerXAnchor), + view.centerYAnchor.constraint(equalTo: imageView.centerYAnchor), + view.heightAnchor.constraint(equalToConstant: Appearance.jetpackIconBackgroundSize), + view.widthAnchor.constraint(equalToConstant: Appearance.jetpackIconBackgroundSize) + ]) + } + + return jetpackButton + } + + private enum Appearance { + static let jetpackBackgroundColor = UIColor(light: .muriel(color: .jetpackGreen, .shade0), + dark: .muriel(color: .jetpackGreen, .shade90)) + static let jetpackBannerTitle = NSLocalizedString("Jetpack powered", + comment: "Title of the Jetpack powered banner.") + static let jetpackIconSize = CGSize(width: 28, height: 28) + static let jetpackIconInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 10) + static let jetpackButtonFont = WPStyleGuide.fontForTextStyle(.body, fontWeight: .regular) + static let jetpackFontMinimumScaleFactor: CGFloat = 0.75 + static let jetpackIconBackgroundSize: CGFloat = 22 + } +} diff --git a/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift b/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift index 5bef417ff4f8..a347d5f8d3ae 100644 --- a/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift +++ b/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift @@ -12,7 +12,7 @@ import UIKit /// Plus, we provide a simple mechanism to render the details for a specific Notification, /// given its remote identifier. /// -class NotificationsViewController: UITableViewController, UIViewControllerRestoration { +class NotificationsViewController: UIViewController, UIViewControllerRestoration, UITableViewDataSource, UITableViewDelegate { @objc static let selectedNotificationRestorationIdentifier = "NotificationsSelectedNotificationKey" @objc static let selectedSegmentIndexRestorationIdentifier = "NotificationsSelectedSegmentIndexKey" @@ -21,6 +21,9 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor let formatter = FormattableContentFormatter() + /// Table View + /// + @IBOutlet weak var tableView: UITableView! /// TableHeader /// @IBOutlet var tableHeaderView: UIView! @@ -29,6 +32,11 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor /// @IBOutlet weak var filterTabBar: FilterTabBar! + /// Jetpack Banner View + /// Only visible in WordPress + /// + @IBOutlet weak var jetpackBannerView: JetpackBannerView! + /// Inline Prompt Header View /// @IBOutlet var inlinePromptView: AppFeedbackPromptView! @@ -140,15 +148,16 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor super.viewDidLoad() setupNavigationBar() + setupTableHandler() setupTableView() setupTableFooterView() - setupTableHandler() setupRefreshControl() setupNoResultsView() setupFilterBar() tableView.tableHeaderView = tableHeaderView setupConstraints() + configureJetpackBanner() reloadTableViewPreservingSelection() startListeningToCommentDeletedNotifications() @@ -249,10 +258,6 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor tableView.layoutHeaderView() } - override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { - return true - } - override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { super.traitCollectionDidChange(previousTraitCollection) @@ -336,9 +341,33 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor } } - // MARK: - UITableView Methods + // MARK: - UITableViewDataSource Methods + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + tableViewHandler.tableView(tableView, numberOfRowsInSection: section) + } + + func numberOfSections(in tableView: UITableView) -> Int { + tableViewHandler.numberOfSections(in: tableView) + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: ListTableViewCell.defaultReuseID, for: indexPath) + configureCell(cell, at: indexPath) + return cell + } + + func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { + return true + } + + func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle { + return .none + } + + // MARK: - UITableViewDelegate Methods - override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { + func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { guard let sectionInfo = tableViewHandler.resultsController.sections?[section], let headerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: ListTableHeaderView.defaultReuseID) as? ListTableHeaderView else { return nil @@ -348,38 +377,32 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor return headerView } - override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { + func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { // Make sure no SectionFooter is rendered return CGFloat.leastNormalMagnitude } - override func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { + func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { // Make sure no SectionFooter is rendered return nil } - override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - let cell = tableView.dequeueReusableCell(withIdentifier: ListTableViewCell.defaultReuseID, for: indexPath) - configureCell(cell, at: indexPath) - return cell - } - - override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { + func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { estimatedRowHeightsCache.setObject(cell.frame.height as AnyObject, forKey: indexPath as AnyObject) } - override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat { + func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat { if let height = estimatedRowHeightsCache.object(forKey: indexPath as AnyObject) as? CGFloat { return height } return Settings.estimatedRowHeight } - override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { + func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { return UITableView.automaticDimension } - override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { // Failsafe: Make sure that the Notification (still) exists guard let note = tableViewHandler.resultsController.managedObject(atUnsafe: indexPath) as? Notification else { tableView.deselectSelectedRowWithAnimation(true) @@ -400,11 +423,7 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor } - override func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle { - return .none - } - - override func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { + func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { // skip when the notification is marked for deletion. guard let note = tableViewHandler.resultsController.object(at: indexPath) as? Notification, deletionRequestForNoteWithID(note.objectID) == nil else { @@ -431,7 +450,7 @@ class NotificationsViewController: UITableViewController, UIViewControllerRestor return UISwipeActionsConfiguration(actions: [action]) } - override func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { + func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { // skip when the notification is marked for deletion. guard let note = tableViewHandler.resultsController.object(at: indexPath) as? Notification, let block: FormattableCommentContent = note.contentGroup(ofKind: .comment)?.blockOfKind(.comment), @@ -569,7 +588,7 @@ private extension NotificationsViewController { func setupRefreshControl() { let control = UIRefreshControl() control.addTarget(self, action: #selector(refresh), for: .valueChanged) - refreshControl = control + tableView.refreshControl = control } func setupNoResultsView() { @@ -583,6 +602,10 @@ private extension NotificationsViewController { filterTabBar.items = Filter.allCases filterTabBar.addTarget(self, action: #selector(selectedFilterDidChange(_:)), for: .valueChanged) } + + func configureJetpackBanner() { + jetpackBannerView.isHidden = AppConfiguration.isJetpack + } } @@ -639,6 +662,10 @@ private extension NotificationsViewController { } @objc func defaultAccountDidChange(_ note: Foundation.Notification) { + guard isViewLoaded == true && view.window != nil else { + return + } + needsReloadResults = true resetNotifications() resetLastSeenTime() @@ -1189,7 +1216,7 @@ private extension NotificationsViewController { extension NotificationsViewController { @objc func refresh() { guard let mediator = NotificationSyncMediator() else { - refreshControl?.endRefreshing() + tableView.refreshControl?.endRefreshing() return } @@ -1201,7 +1228,7 @@ extension NotificationsViewController { let delay = DispatchTime.now() + Double(Int64(delta * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC) DispatchQueue.main.asyncAfter(deadline: delay) { - self?.refreshControl?.endRefreshing() + self?.tableView.refreshControl?.endRefreshing() self?.clearUnreadNotifications() if let _ = error { diff --git a/WordPress/Classes/ViewRelated/Notifications/Notifications.storyboard b/WordPress/Classes/ViewRelated/Notifications/Notifications.storyboard index 2a0ff8938578..e6d4c396c788 100644 --- a/WordPress/Classes/ViewRelated/Notifications/Notifications.storyboard +++ b/WordPress/Classes/ViewRelated/Notifications/Notifications.storyboard @@ -1,66 +1,93 @@ -