-
Notifications
You must be signed in to change notification settings - Fork 7
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
Expose BFF API #251
Conversation
…cs, but it is still present on the /api endpoints.
@@ -1,7 +1,7 @@ | |||
<?php | |||
/** | |||
* @SWG\Swagger( | |||
* basePath="/api", | |||
* basePath="/", |
There was a problem hiding this comment.
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' => [], |
There was a problem hiding this comment.
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.
I read the Codacy report. I fixed some of the issues it identified. I choose not to fix the others. |
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.