Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
api:api_applications_123_flags_1 [2014/06/25 11:07] – [Syntax] Lauri Elevantapi:api_applications_123_flags_1 [2014/06/26 19:21] (current) – removed Lauri Elevant
Line 1: Line 1:
-====== /api/applications/123/flags/1 ====== 
- 
- 
-===== HEAD, GET ===== 
- 
-Use the ''HEAD'' verb to test if the application in question has this flag set (identified by the flag's ID). A request with the ''GET'' verb returns some additional information about the flag ( FIXME ). 
- 
-==== Syntax ==== 
- 
-  GET /api/applications/123/flags/12 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: application/json 
-  Content-Length: 1234 
- 
-==== Response codes ==== 
- 
-| ''200 OK'' | The flag is set | 
-| ''404 Not Found'' | The flag was not set | 
- 
- 
-===== PUT ===== 
- 
-Set the flag (identified by it's ID) to the application in question.  
- 
-==== Syntax ==== 
- 
-  PUT /api/applications/123/flags/12 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: text/plain 
-  Content-Length: 0 
- 
-==== Response codes ==== 
- 
-| ''200 OK'' | Flag was successfully set | 
- 
- 
-===== DELETE ===== 
- 
-Remove the flag (identified by it's ID) from the application in question. 
- 
-==== Syntax ==== 
- 
-  DELETE /api/application/123/flags/12 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: text/plain 
-  Content-Length: 0 
- 
-==== Response codes ==== 
- 
-| ''204 No Content'' | Flag was successfully deleted |