Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose BFF API #251

Merged
merged 14 commits into from
Nov 18, 2018
Merged

Conversation

carlschroedl
Copy link
Member

This PR addresses part of #234 by building and exposing a BFF API (POST /open/try). This PR also includes a human interface for the service (GET /open/try). This PR does not complete #234 because it does not switch existing pivot election results calculation to use the new BFF API.

@@ -1,7 +1,7 @@
<?php
/**
* @SWG\Swagger(
* basePath="/api",
* basePath="/",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this because I wanted the /open-prefixed services to be featured in the Swagger documentation, not just the /api-prefixed services.

@@ -44,7 +44,7 @@
|--------------------------------------------------------------------------
*/
'middleware' => [
'api' => ['web', 'auth'],
'api' => [],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes auth from the Swagger HTML GUI that documents our REST APIs. The APIs themselves still require auth.

@carlschroedl
Copy link
Member Author

I read the Codacy report. I fixed some of the issues it identified. I choose not to fix the others.

@carlschroedl carlschroedl merged commit f9cf078 into pivot-libre:master Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant