doc.com.rallydev.rest.request.CreateRequest.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rally-rest-api Show documentation
Show all versions of rally-rest-api Show documentation
A java toolkit for interacting with the Rally Rest API
CreateRequest (Rally Rest API for Java 2.1)
com.rallydev.rest.request
Class CreateRequest
- java.lang.Object
-
- com.rallydev.rest.request.Request
-
- com.rallydev.rest.request.CreateRequest
-
public class CreateRequest
extends Request
Represents a WSAPI request to create an object.
-
-
Constructor Summary
Constructors
Constructor and Description
CreateRequest(String type,
JsonObject obj)
Create a new create request with the specified type and values.
-
Method Summary
Methods
Modifier and Type
Method and Description
String
getBody()
Get the JSON encoded string representation of the object to be created.
Fetch
getFetch()
Get the current list of fields to be returned on the created object.
void
setFetch(Fetch fetch)
Set the current list of fields to be returned on the created object.
String
toUrl()
Convert this request into a url compatible with the WSAPI.
-
-
Constructor Detail
-
CreateRequest
public CreateRequest(String type,
JsonObject obj)
Create a new create request with the specified type and values.
- Parameters:
type
- the WSAPI object type to be created, e.g. Defectobj
- the JSON representation of the values of the object
-
Method Detail
-
getBody
public String getBody()
Get the JSON encoded string representation of the object to be created.
- Returns:
- the JSON encoded object
-
getFetch
public Fetch getFetch()
Get the current list of fields to be returned on the created object.
By default only the underscore fields such as _ref will be returned in the response.
- Returns:
- the current list of fields.
-
setFetch
public void setFetch(Fetch fetch)
Set the current list of fields to be returned on the created object.
- Parameters:
fetch
- the list of fields to be returned.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy