I've added database indexes which has increased the speed of
expensive database operations like constructing an atom feed for an
offering by a factor of 8.
I'm planning to change the names of some of the resources so that
they don't conflict with resources which are normally used in generic
portals -- for example I'd like to change 'user' to 'sail-user' or
something equivalent. This will make it easier for me to integrate
external rails plugins which by convention expect certain resource
names. For example:
http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated
This will affect the API for interaction with external portals.
You can now access a user with either the id OR the UUID. I'l extend
this across all resources that have UUIDs.
---- example ----
curl -i -X GET -H 'Accept: application/xml'
http://rails.dev.concord.org/sds/1/user/122
HTTP/1.1 200 OK
Date: Thu, 21 Dec 2006 16:16:43 GMT
Server: lighttpd/1.4.11
Content-Type: application/xml
Location: http://rails.dev.concord.org/sds/1/user/122
Cache-Control: no-cache
Content-Length: 213
<?xml version="1.0" encoding="UTF-8"?>
<user>
<portal-id>1</portal-id>
<uuid>2ee80540-8479-11db-b8e9-0014c2c34555</uuid>
<id>122</id>
<first-name>Trudi</first-name>
<last-name>Tester</last-name>
</user>
[-bash stephen:~/dev/rails/sds]curl -i -X GET -H 'Accept:
application/xml'
http://rails.dev.concord.org/sds/1/user/2ee80540-8479-11db-b8e9-0014c2c34555
HTTP/1.1 200 OK
Date: Thu, 21 Dec 2006 16:17:00 GMT
Server: lighttpd/1.4.11
Content-Type: application/xml
Location:
http://rails.dev.concord.org/sds/1/user/2ee80540-8479-11db-b8e9-0014c2c34555
Cache-Control: no-cache
Content-Length: 213
<?xml version="1.0" encoding="UTF-8"?>
<user>
<portal-id>1</portal-id>
<uuid>2ee80540-8479-11db-b8e9-0014c2c34555</uuid>
<id>122</id>
<first-name>Trudi</first-name>
<last-name>Tester</last-name>
</user>
--
- Stephen Bannasch
Concord Consortium, http://www.concord.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---