Power.Dev Hangfire Services

<back to all web services

PowerPlantEmissionsMonthlySaveRequest

The following routes are available for this service:
POST/power-plants-emissions-monthly-save
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using powerDev.ISO.ServiceModels;

namespace powerDev.ISO.ServiceModels
{
    public partial class PowerPlantEmissionsMonthlySaveRequest
    {
        public PowerPlantEmissionsMonthlySaveRequest()
        {
            RequestedYears = new List<int>{};
            RequestedMonths = new List<int>{};
        }

        public virtual List<int> RequestedYears { get; set; }
        public virtual List<int> RequestedMonths { get; set; }
    }

}

C# PowerPlantEmissionsMonthlySaveRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /power-plants-emissions-monthly-save HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"requestedYears":[0],"requestedMonths":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}