This project maintains a collection of public UK Parliament API endpoints. The data is stored in Azure Table storage, simplifying the discovery and use of public UK Parliament data.
-
GET /api/ParliamentEndpoint
- Description: Retrieves a list of all stored Parliament API endpoints.
- Response: JSON array of endpoint objects.
-
GET /api/ParliamentEndpoint/{id}
- Description: Retrieves a specific Parliament API endpoint by its ID.
- Parameters:
id
(string) - The ID of the endpoint. - Response: JSON object of the endpoint details.
-
POST /api/ParliamentEndpoint
- Description: Adds a new Parliament API endpoint.
- Request Body: JSON object with endpoint details.
- Response: JSON object of the created endpoint.
-
PUT /api/ParliamentEndpoint/{id}
- Description: Updates an existing Parliament API endpoint by its ID.
- Parameters:
id
(string) - The ID of the endpoint. - Request Body: JSON object with updated endpoint details.
- Response: JSON object of the updated endpoint.
-
DELETE /api/ParliamentEndpoint/{id}
- Description: Deletes a specific Parliament API endpoint by its ID.
- Parameters:
id
(string) - The ID of the endpoint. - Response: Status message indicating the result of the operation.
To run this project, you need to configure your Azure Table connection string.
- Open the configuration file.
- Add your Azure Table connection string in the appropriate section.
- Clone the repository:
git clone https://github.com/ChrisBrooksbank/UKParliamentEndpoints.git
- Navigate to the project directory:
cd UKParliamentEndpoints
- Configure your Azure Table connection string.
- Build and run the project.