All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.apitrary.api.request.PostRequest Maven / Gradle / Ivy

/*
 * Copyright 2012-2013 Denis Neuling 
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 */
package com.apitrary.api.request;

import java.io.Serializable;

import com.apitrary.api.annotation.Body;
import com.apitrary.api.annotation.Method;
import com.apitrary.api.annotation.Path;
import com.apitrary.api.annotation.PathVariable;
import com.apitrary.api.annotation.Required;
import com.apitrary.api.common.HttpMethod;
import com.apitrary.api.response.PostResponse;

/**
 * 

* AddRequest class. *

* * @author Denis Neuling ([email protected]) * */ @Method(HttpMethod.POST) @Path("/${entity}") public class PostRequest extends Request implements Serializable { private static final long serialVersionUID = 7454490450438849781L; @Required @PathVariable("${entity}") private String entity; @Body private String requestPayload; /** *

* Constructor for AddRequest. *

*/ public PostRequest() { } /** *

* Getter for the field entity. *

* * @return a {@link java.lang.String} object. */ public String getEntity() { return entity; } /** *

* Setter for the field entity. *

* * @param entity * a {@link java.lang.String} object. */ public void setEntity(String entity) { this.entity = entity; } /** *

* Getter for the field requestPayload. *

* * @return a {@link java.lang.String} object. */ public String getRequestPayload() { return requestPayload; } /** *

* Setter for the field requestPayload. *

* * @param requestPayload * a {@link java.lang.String} object. */ public void setRequestPayload(String requestPayload) { this.requestPayload = requestPayload; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy