PJ Dietz
ebe4021b95
Add change log
2013-05-27 14:53:02 -04:00
PJ Dietz
e693e138d0
Add support for OPTIONS and generate Allow header from Handler. Close #4
2013-05-27 14:13:16 -04:00
PJ Dietz
fafce16e9e
Update README. Add default 500 error to Router. Close #3
2013-05-27 12:59:55 -04:00
PJ Dietz
8aae07660c
Add port to Request class. Allow user to supply cURL options. Close #2
...
Caller can now supply array of options for use with curl_setopt_array() when calling Request::request()
2013-05-26 18:32:26 -04:00
PJ Dietz
98e04ab63b
Define interfaces more clearly and clean up code.
2013-05-26 14:55:48 -04:00
PJ Dietz
ac752bb446
Add interfaces for requests and responses
2013-05-23 20:26:32 -04:00
PJ Dietz
b28b53aa11
Add interfaces for Route and Handler
2013-05-23 19:49:43 -04:00
PJ Dietz
47ec8f5f96
Code cleanup and refactoring
2013-05-19 12:59:57 -04:00
PJ Dietz
20fb124cd5
Rewrite README
2013-05-19 12:54:57 -04:00
PJ Dietz
3018d4c660
Fix typo
2013-03-29 14:00:45 -04:00
PJ Dietz
9863bee7f5
Set headers and headerLookup arrays in Message::__constructor to prevent warning
2013-03-29 13:53:51 -04:00
PJ Dietz
972f8e9c26
Update Request and Response
...
Add constructor for Request to provide URI and method on instantiation.
Add success property and getSuccess() method Response.
Closes #1
2013-03-26 21:05:36 -04:00
PJ Dietz
b0133d9173
Add license to composer.json
2013-02-02 10:24:05 -05:00
PJ Dietz
184dae595c
Add license to README
...
Fix typos
Update composer install sample code to reflect new version
2013-02-01 21:38:23 -05:00
PJ Dietz
6c58c1446b
Update README.md
2013-01-31 21:26:02 -05:00
PJ Dietz
206b7d5c2a
Update README.md
2013-01-31 20:46:05 -05:00
PJ Dietz
d626b5120b
Update README.md
2013-01-31 20:38:23 -05:00
PJ Dietz
cd6b78c054
Update README.md
2013-01-31 20:36:37 -05:00
PJ Dietz
0380b1afff
Update composer.json to match renamed repo
2013-01-31 19:36:42 -05:00
PJ Dietz
6606b02f24
Update README.md
2013-01-30 20:18:07 -05:00
PJ Dietz
d0ef6a62fb
Updates to documentation for better documentation generation
...
Refactored WellrestedException to WellRESTedException
2013-01-29 20:59:55 -05:00
PJ Dietz
4285636088
Merge branch 'master' of git://github.com/pjdietz/WellRESTed
...
Conflicts:
src/pjdietz/WellRESTed/Message.php
2013-01-28 22:24:54 -05:00
PJ Dietz
e419aaba7d
Add page-level doc blocks to each script
...
Update comments
Update magic accessors
Update accessor and add islet and unset methods
2013-01-28 22:15:33 -05:00
PJ Dietz
1bad8e35a0
Send headers when making a request.
...
Add headerLines property to Message
Remove invalid default value for protocol in Response
2013-01-28 15:53:18 -05:00
PJ Dietz
0bae1c1b48
Remove last file from samples. Remove Doxygen file.
2013-01-27 21:27:19 -05:00
PJ Dietz
a44c98efb3
Fix error in Request.php where wrong namespace was used for Exceptions
...
Remove sample APi
2013-01-27 18:07:07 -05:00
PJ Dietz
871f76f008
Update documentation
...
Add config file for Doxygen
2013-01-27 14:14:45 -05:00
PJ Dietz
22db41c0e5
Rename Exceptions directory to match namespace spelling.
2013-01-27 10:03:22 -05:00
PJ Dietz
298bdab35f
Update Router and Route to require autoloading
...
Update samples to use new Router and Route
Refactor ApiSample namespace
2013-01-24 21:48:44 -05:00
PJ Dietz
8597b9be06
Refactor for better PSR compliance. Still need to finish with samples.
2013-01-24 21:27:57 -05:00
PJ Dietz
3ff2371edd
Make specifying the path to the handler script optional in Route since it is not needed if using an autoloader.
2013-01-10 21:21:57 -05:00
PJ Dietz
331bdae7ec
Refactor library files into src/pjdietz/WellRESTed
2013-01-10 20:54:22 -05:00
PJ Dietz
3ab7b84a51
Remove ".inc" from filenames.
2013-01-10 20:28:57 -05:00
PJ Dietz
e4972e1bf0
Refactored namespace
...
Added autoload to composer.json
2013-01-10 20:09:07 -05:00
PJ Dietz
2f328bb5e8
Add composer.json
2013-01-10 19:45:55 -05:00
PJ Dietz
d4f62642e7
Add case insensitive lookup for headers gathered from the request made to the server.
2012-12-28 17:25:35 -05:00
PJ Dietz
40ca6bea87
Make field names for headers case insensitive.
2012-12-27 08:41:56 -05:00
PJ Dietz
06717be66f
Add to-do notes Request and Response.
2012-12-26 19:03:49 -05:00
PJ Dietz
471abda822
Refactor ArticleControler to ArticleController
...
Fix some typos
2012-12-24 08:42:44 -05:00
PJ Dietz
c788c9ee70
Move ArticleControler.php
2012-12-05 16:20:28 -05:00
PJ Dietz
2f3ced6b8d
Fix namespace error.
2012-12-05 16:11:12 -05:00
PJ Dietz
a2255bebd9
Namespace API sample.
...
Add and update comments.
2012-12-05 16:08:30 -05:00
PJ Dietz
ff331935d2
API Sample now supports minimal GET, POST, PUT, and DELETE actions.
2012-12-05 15:35:23 -05:00
PJ Dietz
e910418ab1
Add API Sample. Demonstration API using a route table.
2012-12-05 10:16:05 -05:00
PJ Dietz
c51577a43a
Clean up comments. Remove trailing comments after functions and classes, etc.
2012-12-04 14:33:25 -05:00
PJ Dietz
c970eee4bb
Add protocol and protocolVersion members and their accessors.
2012-12-04 14:27:52 -05:00
PJ Dietz
b3f997136f
Made Response->statusCode into a property and added ->reasonPhrase.
...
PhpDoc updates.
When you set the ->statusCode to a standard HTTP status code, the instance will set the reason phrase appropriately. You may also set statusCode and reasonPhrase separately, or set them at once by passing two parameters to setStatusCode();
2012-11-30 16:33:04 -05:00
PJ Dietz
7ee4ee39b9
Base Request and Response off of base class Message
2012-11-29 16:58:14 -05:00
PJ Dietz
85e51bbca9
Simplified samples.
2012-11-29 16:10:50 -05:00
PJ Dietz
bb44b27787
Fix comments. Work on sample scripts.
2012-11-29 15:47:10 -05:00