Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add Rest API Endpoints #54

Merged
merged 31 commits into from
Jan 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d494cbd
add .gitignore
pgk Jul 21, 2017
48f30f4
add .mixtapefile
pgk Jul 21, 2017
838ec13
initial rest api commit
pgk Jul 21, 2017
63b0270
add tests
pgk Jul 21, 2017
0e2b910
get latest build_mixtape script
pgk Aug 2, 2017
65b43b1
Add 'get_zones' endpoint
ice9js Jul 30, 2017
e30eaaf
Fix typo
ice9js Aug 2, 2017
679d067
Add create_zone endpoint
ice9js Aug 3, 2017
6cbfe4b
Use 'update' permissions for 'add_post_to_zone'
ice9js Aug 3, 2017
3371bd9
Add tests
ice9js Aug 3, 2017
ea1dd84
Update code style
ice9js Aug 3, 2017
ea20d5e
Remove unnecessary properties from zones index response.
ice9js Aug 4, 2017
90b25a7
Use name as the default for slug on create_zone
ice9js Aug 9, 2017
5a6163f
Suffix get_zone_posts with /posts
pgk Aug 11, 2017
764a255
Fix _get_params not always assigning a default value.
ice9js Aug 29, 2017
ebaef7b
Combine adding, removin and reordering zone posts into update_zone
ice9js Aug 30, 2017
5f937ac
Add update & delete zone endpoints
ice9js Sep 4, 2017
53dc66e
Prevent 'null' responses
ice9js Sep 4, 2017
c535fa1
Don't throw an error when a zone has no posts
ice9js Sep 5, 2017
959915a
Fix unit tests
ice9js Sep 6, 2017
a292ee6
Remove unused REST endpoints
ice9js Sep 7, 2017
d3b0d29
Update tests
ice9js Sep 7, 2017
0fb2d99
migrate to mixtape on npm
pgk Sep 8, 2017
b09191f
change signatures after upgrading to latest mixtape
pgk Sep 8, 2017
33c934f
remove acceptance tests for now (we can always restore them latef fro…
pgk Sep 8, 2017
3fc98ba
Prevent characters from being removed from name & description during …
ice9js Nov 10, 2017
5e32ceb
Add a test for zone details containing special characters
ice9js Dec 15, 2017
2d337d4
Ensure WP-Admin interface also properly escapes htmlentities
ice9js Dec 15, 2017
518a8f1
Restore lock-zone REST endpoint
ice9js Dec 26, 2017
de75603
Add timeout and max_lock_period properties to the lock endponint's re…
ice9js Jan 1, 2018
4dfda5d
Build Mixtape
ice9js Jan 31, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 208 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
tests/vendor
/nbproject/private/
nbproject

# <genignore windows>

# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


# </genignore windows>


# <genignore node>

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env



# </genignore node>


# <genignore macos>

*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


# </genignore macos>


# <genignore c>

# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
modules.order
Module.symvers
Mkfile.old
dkms.conf


# </genignore c>


# <genignore linux>

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*


# </genignore linux>

tmp
vendor
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: php

notifications:
email:
on_success: never
on_failure: change

php:
- 5.3
- 5.6

env:
- WP_VERSION=latest WP_MULTISITE=0

matrix:
include:
- php: 5.3
env: WP_VERSION=latest WP_MULTISITE=1

before_script:
- bash tests/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION

script: phpunit
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "automattic/zoninator",
"description": "Zone Editor",
"type": "test suite",
"require": {
"phpunit/phpunit": "4.8",
"wp-cli/wp-cli": "^0.21.1",
"psy/psysh": "^0.6.1"
},
"license": "GPL v2",
"authors": [
{
"name": "Automattic",
"email": "info@automattic.com"
}
],
"minimum-stability": "dev"
}
Loading