Mais conteúdo relacionado Semelhante a Atom Publishing Protocol (20) Atom Publishing Protocol19. Service Documents <? xml version = "1.0" encoding = 'utf-8' ?> < service xmlns = " http://www.w3.org/2007/app " xmlns:atom = "http://www.w3.org/2005/Atom" > < workspace > < atom:title > Main Site </ atom:title > < collection href = "http://example.org/blog/main" > < atom:title > My Blog Entries </ atom:title > < categories href = "http://example.com/cats/forMain.cats" /> </ collection > < collection href = "http://example.org/blog/pic" > < atom:title > Pictures </ atom:title > < accept > image/png </ accept > < accept > image/jpeg </ accept > < accept > image/gif </ accept > </ collection > </ workspace > </ service > 20. Service Documents <? xml version = "1.0" encoding = 'utf-8' ?> < service xmlns = " http://www.w3.org/2007/app " xmlns:atom = "http://www.w3.org/2005/Atom" > < workspace > < atom:title > Sidebar Blog </ atom:title > < collection href = "http://example.org/sidebar/list" > < atom:title > Remaindered Links </ atom:title > < accept > application/atom+xml;type=entry </ accept > < categories fixed = "yes" > < atom:category term = "joke" scheme = " http://example.org/extra-cats/ " /> < atom:category term = "serious" scheme = " http://example.org/extra-cats/ " /> </ categories > </ collection > </ workspace > </ service > 23. Collection <? xml version = "1.0" encoding = "utf-8" ?> < feed xmlns = "http://www.w3.org/2005/Atom" > < title > Example Feed </ title > < link href = "http://example.org/" /> < updated > 2003-12-13T18:30:02Z </ updated > < author > < name > John Doe </ na me > </ author > < id > urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6 </ id > < entry > < title > Atom-Powered Robots Run Amok </ title > < link href = "http://example.org/2003/12/13/atom03" /> < id > urn:uuid:1225c695-cfb8-4ebb- aaaa -80da344efa6a </ id > < updated > 2003-12-13T18:30:02Z </ updated > < summary > Some text. </ summary > </ entry > </ feed > 32. Methoden HTTP Methode URI Returns CREATE POST Collection URI Member Representation 201 Created Location: Member URI READ GET Member URI 200 Ok Member Representation UPDATE PUT Member URI Member Representation 200 Ok DELETE DELETE Member URI 200 Ok