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

API-2: basic endpoints #571

Merged
merged 3 commits into from
Oct 13, 2018

Conversation

wvengen
Copy link
Member

@wvengen wvengen commented Oct 13, 2018

Part two of #429 in chunks, continued from #570: basic endpoints

  • /api/v1/user
  • /api/v1/config
  • /api/v1/navigation

@wvengen wvengen added the api label Oct 13, 2018
@wvengen wvengen added this to the API v1 milestone Oct 13, 2018
@wvengen wvengen requested a review from paroga October 13, 2018 14:04
@@ -0,0 +1,9 @@
class Api::V1::UsersController < Api::V1::BaseController

before_action :authenticate
Copy link
Member

Choose a reason for hiding this comment

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

can we make it the default in BaseController and just skip it where we don't need it?

@@ -0,0 +1,30 @@
class ConfigSerializer < ActiveModel::Serializer
attributes :name, :homepage, :contact,
Copy link
Member

Choose a reason for hiding this comment

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

what about sorting them?

Copy link
Member Author

Choose a reason for hiding this comment

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

They're now somewhat grouped by similarity, so that when you first inspect the API output, it is easier to read. I'll make this more explicit.

@wvengen wvengen force-pushed the feature/api-2-endpoints-basic branch from 59dc732 to 9a2cbdf Compare October 13, 2018 18:29
@wvengen wvengen merged commit 554be09 into foodcoops:master Oct 13, 2018
@wvengen wvengen deleted the feature/api-2-endpoints-basic branch October 13, 2018 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants