With Mac OS X Server's included (or freely available) tools, a background in Objective-C and some rusty familiarity with scripting languages...how might one go about "easily" employing RESTful JSON services under Mac OS X Server?
使用Mac OS X Server包含的(或免费提供的)工具,Objective-C的背景知识以及对脚本语言的熟悉程度......在Mac OS X Server下如何“轻松”使用RESTful JSON服务?
This is mostly for prototyping so simplicity and GUI tools are appealing though not at the expense of a robust foundation.
这主要用于原型设计,因此简单性和GUI工具很有吸引力,但不是以强大的基础为代价。
Edit: Tickling this to see if anything's changed with Snow Leopard
编辑:勾选此项以查看Snow Leopard是否有任何更改
2 个解决方案
#1
Consider using simply Apache + PHP. Stable, fast, tons of knowledge and examples out there. And you may already have it running on your server.
考虑使用简单的Apache + PHP。稳定,快速,大量的知识和例子。并且您可能已经在服务器上运行它。
PHP has a c'ish syntax and is easy to pick up.
PHP有一个c'ish语法,很容易上手。
See this for help in getting it running: http://foundationphp.com/tutorials/php_leopard.php
请参阅此文章以获取有关运行的帮助:http://foundationphp.com/tutorials/php_leopard.php
#2
It really depends on your benchmark for "simple". With OS X Server, you have a lot of choices:
这真的取决于你的“简单”基准。使用OS X Server,您有很多选择:
- Use WebObjects, if you want to leverage your skills with Objective-C (or even Java, for that matter, if you know Java).
- Use PHP... Apache and PHP are built in.
- Use Python and Django/TurboGears/Twisted/Plone/WSGI/ModPython.
- Use Ruby and Rails.
- Use Perl and CGI... or any language and CGI, for that matter.
- Use Java and Tomcat.
- Use Java and Tomcat + JBoss.
如果您想利用Objective-C(甚至Java,如果您了解Java)的技能,请使用WebObjects。
使用PHP ...内置Apache和PHP。
使用Python和Django / TurboGears / Twisted / Plone / WSGI / ModPython。
使用Ruby和Rails。
使用Perl和CGI ......或者任何语言和CGI。
使用Java和Tomcat。
使用Java和Tomcat + JBoss。
It's both a blessing and a curse, in your case, that OS X Server supports almost anything. Heck, you could almost even patch CGI to AppleScript if you wanted to (aside: I'm sure we both just cringed at that :-) ). There are a lot of built-in, free, options with OS X (Client) and OS X (Server).
在您的情况下,OS X Server几乎支持任何内容,这既是一种祝福,也是一种诅咒。哎呀,如果你愿意的话,你几乎可以将CGI修补到AppleScript(除此之外:我确信我们两个都只是为此畏缩:-))。 OS X(客户端)和OS X(服务器)有很多内置的免费选项。
PHP may seem your easiest choice for the default install of Apache and its configuration, but Ruby/Rails or Python are almost as readily available out-of-the-box.
对于Apache及其配置的默认安装,PHP似乎是最简单的选择,但Ruby / Rails或Python几乎可以随时使用。
#1
Consider using simply Apache + PHP. Stable, fast, tons of knowledge and examples out there. And you may already have it running on your server.
考虑使用简单的Apache + PHP。稳定,快速,大量的知识和例子。并且您可能已经在服务器上运行它。
PHP has a c'ish syntax and is easy to pick up.
PHP有一个c'ish语法,很容易上手。
See this for help in getting it running: http://foundationphp.com/tutorials/php_leopard.php
请参阅此文章以获取有关运行的帮助:http://foundationphp.com/tutorials/php_leopard.php
#2
It really depends on your benchmark for "simple". With OS X Server, you have a lot of choices:
这真的取决于你的“简单”基准。使用OS X Server,您有很多选择:
- Use WebObjects, if you want to leverage your skills with Objective-C (or even Java, for that matter, if you know Java).
- Use PHP... Apache and PHP are built in.
- Use Python and Django/TurboGears/Twisted/Plone/WSGI/ModPython.
- Use Ruby and Rails.
- Use Perl and CGI... or any language and CGI, for that matter.
- Use Java and Tomcat.
- Use Java and Tomcat + JBoss.
如果您想利用Objective-C(甚至Java,如果您了解Java)的技能,请使用WebObjects。
使用PHP ...内置Apache和PHP。
使用Python和Django / TurboGears / Twisted / Plone / WSGI / ModPython。
使用Ruby和Rails。
使用Perl和CGI ......或者任何语言和CGI。
使用Java和Tomcat。
使用Java和Tomcat + JBoss。
It's both a blessing and a curse, in your case, that OS X Server supports almost anything. Heck, you could almost even patch CGI to AppleScript if you wanted to (aside: I'm sure we both just cringed at that :-) ). There are a lot of built-in, free, options with OS X (Client) and OS X (Server).
在您的情况下,OS X Server几乎支持任何内容,这既是一种祝福,也是一种诅咒。哎呀,如果你愿意的话,你几乎可以将CGI修补到AppleScript(除此之外:我确信我们两个都只是为此畏缩:-))。 OS X(客户端)和OS X(服务器)有很多内置的免费选项。
PHP may seem your easiest choice for the default install of Apache and its configuration, but Ruby/Rails or Python are almost as readily available out-of-the-box.
对于Apache及其配置的默认安装,PHP似乎是最简单的选择,但Ruby / Rails或Python几乎可以随时使用。