ProjectIterationResource Resource

Deprecated. See Project Version projectSlug: Project Identifier. iterationSlug: Project Iteration identifier.

GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}

This method has been deprecated.

Returns data for a single Project iteration.

Response Body
media type data type description
application/json Project Version (JSON) The following response status codes will be returned from this operation:
OK(200) - Contains the Project iteration data.
NOT FOUND(404) - response, if a Project iteration could not be found for the given parameters.
INTERNAL SERVER ERROR(500) - If there is an unexpected error in the server while performing this operation.
application/vnd.zanata.project.iteration+json Project Version (JSON)
application/vnd.zanata.project.iteration+xml Project Version (XML)
application/xml Project Version (XML)

Example

Request
GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "id" : "my-iteration",
  "links" : [ { }, { } ],
  "status" : "ACTIVE",
  "projectType" : "Podir"
}
                
              

HEAD /projects/p/{projectSlug}/iterations/i/{iterationSlug}

This method has been deprecated.

Returns header information for a project iteration.

Response Body
media type data type description
application/json object (JSON) The following response status codes will be returned from this operation:
OK(200) - Response with an "Etag" header for the requested project iteration.
NOT FOUND(404) - If a project iteration could not be found for the given parameters.
INTERNAL SERVER ERROR(500) - If there is an unexpected error in the server while performing this operation.
application/vnd.zanata.project.iteration+json object (JSON)
application/vnd.zanata.project.iteration+xml anyType (XML)
application/xml anyType (XML)

Example

Request
HEAD /projects/p/{projectSlug}/iterations/i/{iterationSlug}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

PUT /projects/p/{projectSlug}/iterations/i/{iterationSlug}

This method has been deprecated.

Creates or modifies a Project iteration.

Request Body
media type data type
application/json Project Version (JSON)
application/vnd.zanata.project.iteration+json Project Version (JSON)
application/vnd.zanata.project.iteration+xml Project Version (XML)
application/xml Project Version (XML)
Response Body
media type data type description
application/json object (JSON) The following response status codes will be returned from this operation:
OK(200) - If an already existing project iteration was updated as a result of this operation.
CREATED(201) - If a new project iteration was added.
NOT FOUND(404) - If no project was found for the given project slug.
FORBIDDEN(403) - If the user was not allowed to create/modify the project iteration. In this case an error message is contained in the response.
UNAUTHORIZED(401) - If the user does not have the proper permissions to perform this operation.
INTERNAL SERVER ERROR(500) - If there is an unexpected error in the server while performing this operation.
application/xml anyType (XML)

Example

Request
PUT /projects/p/{projectSlug}/iterations/i/{iterationSlug}
Content-Type: application/json
Accept: application/json

                
{
  "id" : "my-iteration",
  "links" : [ { }, { } ],
  "status" : "READONLY",
  "projectType" : "Podir"
}
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...
                
              

GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}/config

This method has been deprecated.

Get a project iteration's sample general configuration file(zanata.xml). Note: this will only be a sample configuration which does not contain any customization done on the client side, such as, locale mapping and/or command hooks.

Response Body
media type data type description
application/xml anyType (XML) The following response status codes will be returned from this operation:
OK(200) - Contains the Project iteration config xml.
NOT FOUND(404) - response, if a Project iteration could not be found for the given parameters.
INTERNAL SERVER ERROR(500) - If there is an unexpected error in the server while performing this operation.

Example

Request
GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}/config
Accept: application/xml

              
Response
HTTP/1.1 200 OK
Content-Type: application/xml

                
...