Table of Contents

InternalForcesApi

Method Description
GetSectionLoading Get section loading
SetSectionLoading Set section loading

GetSectionLoading

string GetSectionLoading (Guid projectId, int sectionId)

Get section loading

Parameters

Name Type Description Notes
projectId Guid
sectionId int

Return type

string

Example

Note: this example is autogenerated.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.RcsApi.Api;
using IdeaStatiCa.RcsApi.Client;
using IdeaStatiCa.RcsApi.Model;

namespace Example
{
    public class GetSectionLoadingExample
    {
        public static void Main()
        {
            // Create the client which is connected to the service.
            ConnectionApiClientFactory clientFactory = new ConnectionApiClientFactory("http://localhost:5000");
            using (var conClient = await clientFactory.CreateConnectionApiClient())
            {
                
                sectionId = 56;  // int | 

                try
                {
                    // Get section loading
                    string result = conClient.InternalForces.GetSectionLoading(projectId, sectionId);
                    Debug.WriteLine(result);
                }
                catch (ApiException  e)
                {
                    Console.WriteLine("Exception when calling InternalForces.GetSectionLoading: " + e.Message);
                    Console.WriteLine("Status Code: " + e.ErrorCode);
                    Console.WriteLine(e.StackTrace);
                }
                finally
                {
                }
            }
        }
    }
}

Code Samples

Warning

It looks like the sample you are looking for does not exist.

Looking for a code sample? request some help on our discussion page.

REST Usage

Http Request

All URIs are relative to http://localhost

GET /api/1/projects/{projectId}/sections/{sectionId}/internal-forces

Using the GetSectionLoadingWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // Get section loading
    ApiResponse<string> response = conClient.InternalForces.GetSectionLoadingWithHttpInfo(projectId, sectionId);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling InternalForcesApi.GetSectionLoadingWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SetSectionLoading

string SetSectionLoading (Guid projectId, int sectionId, RcsSectionLoading rcsSectionLoading = null)

Set section loading

Parameters

Name Type Description Notes
projectId Guid
sectionId int
rcsSectionLoading RcsSectionLoading [optional]

Return type

string

Example

Note: this example is autogenerated.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.RcsApi.Api;
using IdeaStatiCa.RcsApi.Client;
using IdeaStatiCa.RcsApi.Model;

namespace Example
{
    public class SetSectionLoadingExample
    {
        public static void Main()
        {
            // Create the client which is connected to the service.
            ConnectionApiClientFactory clientFactory = new ConnectionApiClientFactory("http://localhost:5000");
            using (var conClient = await clientFactory.CreateConnectionApiClient())
            {
                
                sectionId = 56;  // int | 
                var rcsSectionLoading = new RcsSectionLoading(); // RcsSectionLoading |  (optional) 

                try
                {
                    // Set section loading
                    string result = conClient.InternalForces.SetSectionLoading(projectId, sectionId, rcsSectionLoading);
                    Debug.WriteLine(result);
                }
                catch (ApiException  e)
                {
                    Console.WriteLine("Exception when calling InternalForces.SetSectionLoading: " + e.Message);
                    Console.WriteLine("Status Code: " + e.ErrorCode);
                    Console.WriteLine(e.StackTrace);
                }
                finally
                {
                }
            }
        }
    }
}

Code Samples

Warning

It looks like the sample you are looking for does not exist.

Looking for a code sample? request some help on our discussion page.

REST Usage

Http Request

All URIs are relative to http://localhost

POST /api/1/projects/{projectId}/sections/{sectionId}/internal-forces

Using the SetSectionLoadingWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // Set section loading
    ApiResponse<string> response = conClient.InternalForces.SetSectionLoadingWithHttpInfo(projectId, sectionId, rcsSectionLoading);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling InternalForcesApi.SetSectionLoadingWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/xml, text/xml, application/+xml, application/json-patch+json, application/json, text/json, application/+json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]