Document Format of ViewpointViewpoint List DTD<?xml encoding="UTF-8"?> <!ELEMENT viewpoints (viewpoint)*> <!ATTLIST viewpoints href CDATA #IMPLIED> <!ELEMENT viewpoint (#PCDATA)> <!ATTLIST viewpoint href CDATA #REQUIRED> Example of Viewpoint List<?xml version='1.0' encoding='UTF-8'?> <viewpoints> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">Software features</viewpoint> <viewpoint href="http://tech-ada.utt.fr/viewpoint/2/">Software creators</viewpoint> </viewpoints> Viewpoint DTD<?xml encoding="UTF-8"?> <!ELEMENT viewpoint (actor*,topic*)> <!ATTLIST viewpoint href CDATA #IMPLIED name CDATA #IMPLIED> <!ELEMENT actor (#PCDATA)> <!ATTLIST actor href CDATA #REQUIRED role CDATA #IMPLIED name CDATA #IMPLIED> <!ELEMENT topic (#PCDATA)> <!ATTLIST topic href CDATA #REQUIRED> Example Viewpoint<?xml version="1.0" encoding="UTF-8"?> <viewpoint name="Software features"> <actor href="http://tech-ada.utt.fr/actor/linux+fans/" name="linux fans" role="read" /> <topic href="http://tech-ada.utt.fr/viewpoint/1/topic/1/">World Wide Web</topic> </viewpoint> XML structure of Viewpoint
Create a New ViewpointAdd a new viewpoint. ArgumentsThis method has no arguments. Note: This method requires an HTTP POST request. Example RequestPOST /viewpoint/ <?xml version="1.0" encoding="UTF-8"?> <viewpoint name="Software features" /> Example Response201 Created Location: /viewpoint/1/ Status Codes201: Created
400:' Bad Request
500: Internal Server Error
503: Service currently unavailable
Update a ViewPointset a specific viewpoint information. Argumentsviewpointid (Required)
Note: This method requires an HTTP PUT request. Example RequestPUT /viewpoint/1/ <?xml version="1.0" encoding="UTF-8"?> <viewpoint name="Software creators" /> Example ResponseThis method has no specific response - It returns status code 205 Reset Content, if it completes without error Status Codes205: Reset Content
400: Bad Request
404: Not Found
500: Internal Server Error
503: Service currently unavailable
Delete a ViewPointDelete a specific viewpoint. Actually the viewpoint will not be deleted, the method just set the viewpoint as inactive. Argumentsviewpointid (Required)
Note: This method requires an HTTP DELETE request. Example RequestDELETE /viewpoint/1/ Example ResponseThis method has no specific response - It returns an empty sucess response if it completes without error. Status Codes200: OK
404: Not Found
500: Internal Server Error
503: Service currently unavailable
Get a List of ViewPointget all viewpoint information. ArgumentsNote: This method requires an HTTP GET request. Example RequestGET /viewpoint/ Example Response<?xml version='1.0' encoding='UTF-8'?> <viewpoints> <viewpoint href="http://tech-ada.utt.fr/viewpoint/1/">Software features</viewpoint> <viewpoint href="http://tech-ada.utt.fr/viewpoint/2/">Software creators</viewpoint> </viewpoints> Status Codes200: OK
500: Internal Server Error
503: Service currently unavailable
Get a ViewPointGet a specific viewpoint information. Argumentsviewpointid (Required)
Note: This method requires an HTTP GET request. Example RequestGET /viewpoint/1/ Example Response<?xml version="1.0" encoding="UTF-8"?> <viewpoint name="Software features"> <actor href="http://tech-ada.utt.fr/actor/linux+fans/" name="linux fans" role="read" /> <topic href="http://tech-ada.utt.fr/viewpoint/1/topic/1/">World Wide Web</topic> </viewpoint> Status Codes200: OK
404: Not Found
500: Internal Server Error
503: Service currently unavailable
![]() |