curl -X PUT \
-H "Accept: */*" \
-H "Content-Type: application/json" \
"https://localhost:8443/api/videogames/{id}" \
-d '{
"continent" : "continent",
"ramR" : "ramR",
"image" : true,
"cpuR" : "cpuR",
"ssooM" : "ssooM",
"rating" : 1.4658129,
"description" : "description",
"storageM" : "storageM",
"shortDescription" : "shortDescription",
"history" : "history",
"cpuM" : "cpuM",
"title" : "title",
"imageCompany" : true,
"storageR" : "storageR",
"gpuM" : "gpuM",
"price" : 6.0274563,
"gpuR" : "gpuR",
"genre" : "genre",
"ssooR" : "ssooR",
"imageVg" : true,
"company" : "company",
"ramM" : "ramM",
"id" : 0,
"onePurchaseVideogame" : {
"nick" : "nick",
"lastName" : "lastName",
"image" : true,
"encodedPassword" : "encodedPassword",
"roles" : [ "roles", "roles" ],
"name" : "name",
"id" : 5,
"creditCard" : "creditCard",
"email" : "email"
}
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VideogamesRestControllerApi;
import java.io.File;
import java.util.*;
public class VideogamesRestControllerApiExample {
public static void main(String[] args) {
// Create an instance of the API class
VideogamesRestControllerApi apiInstance = new VideogamesRestControllerApi();
Long id = 789; // Long |
Videogame videogame = ; // Videogame |
try {
Videogame result = apiInstance.updateVideogame(id, videogame);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VideogamesRestControllerApi#updateVideogame");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.VideogamesRestControllerApi;
public class VideogamesRestControllerApiExample {
public static void main(String[] args) {
VideogamesRestControllerApi apiInstance = new VideogamesRestControllerApi();
Long id = 789; // Long |
Videogame videogame = ; // Videogame |
try {
Videogame result = apiInstance.updateVideogame(id, videogame);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VideogamesRestControllerApi#updateVideogame");
e.printStackTrace();
}
}
}
// Create an instance of the API class
VideogamesRestControllerApi *apiInstance = [[VideogamesRestControllerApi alloc] init];
Long *id = 789; // (default to null)
Videogame *videogame = ; //
[apiInstance updateVideogameWith:id
videogame:videogame
completionHandler: ^(Videogame output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenApiDefinition = require('open_api_definition');
// Create an instance of the API class
var api = new OpenApiDefinition.VideogamesRestControllerApi()
var id = 789; // {Long}
var videogame = ; // {Videogame}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.updateVideogame(id, videogame, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class updateVideogameExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new VideogamesRestControllerApi();
var id = 789; // Long | (default to null)
var videogame = new Videogame(); // Videogame |
try {
Videogame result = apiInstance.updateVideogame(id, videogame);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling VideogamesRestControllerApi.updateVideogame: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VideogamesRestControllerApi();
$id = 789; // Long |
$videogame = ; // Videogame |
try {
$result = $api_instance->updateVideogame($id, $videogame);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VideogamesRestControllerApi->updateVideogame: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VideogamesRestControllerApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VideogamesRestControllerApi->new();
my $id = 789; # Long |
my $videogame = WWW::OPenAPIClient::Object::Videogame->new(); # Videogame |
eval {
my $result = $api_instance->updateVideogame(id => $id, videogame => $videogame);
print Dumper($result);
};
if ($@) {
warn "Exception when calling VideogamesRestControllerApi->updateVideogame: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.VideogamesRestControllerApi()
id = 789 # Long | (default to null)
videogame = # Videogame |
try:
api_response = api_instance.update_videogame(id, videogame)
pprint(api_response)
except ApiException as e:
print("Exception when calling VideogamesRestControllerApi->updateVideogame: %s\n" % e)
extern crate VideogamesRestControllerApi;
pub fn main() {
let id = 789; // Long
let videogame = ; // Videogame
let mut context = VideogamesRestControllerApi::Context::default();
let result = client.updateVideogame(id, videogame, &context).wait();
println!("{:?}", result);
}