NAME

WebService::UK::Parliament::Treaties - Query the UK Parliament Treaties API

VERSION

Version 0.04

SYNOPSIS

        use WebService::UK::Parliament::Treaties;

        my $client = WebService::UK::Parliament::Treaties->new();

        my $data = $client->$endpoint($params);

DESCRIPTION

The following documentation is automatically generated using the UK Parliament OpenAPI specification.

An API exposing details of the treaties laid before Parliament.

Sections

BusinessItem

getBusinessItem

Returns the business item for the given ID.

Method

get

Path

/api/BusinessItem/{id}

Parameters

id

Business item with the ID specified

string

GovernmentOrganisation

getGovernmentOrganisation

Returns all government organisations.

Method

get

Path

/api/GovernmentOrganisation

SeriesMembership

getSeriesMembership

Returns all series memberships.

Method

get

Path

/api/SeriesMembership

Treaty

getTreaty

Returns a list of treaties.

Method

get

Path

/api/Treaty

Parameters

SearchText

Treaties which contains the search text specified

string

GovernmentOrganisationId

Treaties with the government organisation id specified

integer

format: int32

Series

Treaties with the series membership type specified

string

CountrySeriesMembership EuropeanUnionSeriesMembership MiscellaneousSeriesMembership

ParliamentaryProcess

Treaties where the parliamentary process is concluded or notconcluded

string

NotConcluded Concluded

DebateScheduled

Treaties which contain a scheduled debate

boolean

MotionToNotRatify

Treaties which contain a motion to not ratify

boolean

RecommendedNotRatify

Treaties which are recommended to not ratify

boolean

Skip

The number of records to skip from the first, default is 0

integer

format: int32

Take

The number of records to return, default is 20

integer

format: int32

getTreaty1

Returns a treaty by ID.

Method

get

Path

/api/Treaty/{id}

Parameters

id

Treaty with ID specified

string

getTreatyBusinessItems

Returns business items belonging to the treaty with ID.

Method

get

Path

/api/Treaty/{id}/BusinessItems

Parameters

id

Business items belonging to treaty with the ID specified

string

AUTHOR

LNATION, <thisusedtobeanemail at gmail.com>

BUGS

Please report any bugs or feature requests to bug-webservice-uk-parliament at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-UK-Parliament. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc WebService::UK::Parliament

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

The first ticehurst bathroom experience

This software is Copyright (c) 2022 by LNATION.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)