Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.73 KB

ResultApi.md

File metadata and controls

65 lines (39 loc) · 1.73 KB

.ResultApi

All URIs are relative to https://oas.mieuxvoter.fr

Method HTTP request Description
getForPollResultItem GET /polls/{id}/result Gets the result of a poll

getForPollResultItem

ResultjsonldRead getForPollResultItem()

This endpoint computes a fresh result from the ballots currently received. For now, you may read a poll's result at any time.

Example

import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .ResultApi(configuration);

let body:.ResultApiGetForPollResultItemRequest = {
  // string | Universally Unique IDentifier (UUID) 
  id: "d434a72c-20cb-480f-9955-1fa2ce2e91b1",
};

apiInstance.getForPollResultItem(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

Name Type Description Notes
id [string] Universally Unique IDentifier (UUID) defaults to undefined

Return type

ResultjsonldRead

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/ld+json, application/json, text/html

HTTP response details

Status code Description Response headers
200 Result resource response -
404 Resource not found -

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