Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

get and post api for pins (bug single-page-api) #365

Closed
wants to merge 1 commit into from
Closed

get and post api for pins (bug single-page-api) #365

wants to merge 1 commit into from

Conversation

andymckay
Copy link
Contributor

No description provided.

@andymckay
Copy link
Contributor Author

@muffinresearch i'll add some docs for this, is there anything else you want before an init commit, this should be safe to do and shouldn't affect anything else


def create(self, request):
res = process_pay_req(request, request.DATA)
if res:
Copy link
Contributor

Choose a reason for hiding this comment

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

If this returns a response from app_error() it will be in HTML. We could alter custom_error() to check the accept header from the request object to make it JSON. Could also file another bug and add a todo for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hah! you already did that. Nice work :)

@muffinresearch
Copy link
Contributor

Looks like this has conflicts.


# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
url(r'^mozpay/api/', include('webpay.api.urls', namespace='api')),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this going to be versioned at some point?

@andymckay
Copy link
Contributor Author

now with docs

@andymckay
Copy link
Contributor Author

just ran some tests against sentry and the PIN isn't sent through to sentry

@andymckay
Copy link
Contributor Author

@muffinresearch what do you want me to do here?

@muffinresearch
Copy link
Contributor

@muffinresearch i'll add some docs for this, is there anything else you want before an init commit, this should be safe to do and shouldn't affect anything else

I don't think I need anything else for the initial commit.

@andymckay
Copy link
Contributor Author

I'll put this behind a settings and turn off in prod and stage till its ready.

@andymckay
Copy link
Contributor Author

I'll wait for #393 to land, because having old SPA code breaks the unit tests if we flip ENABLE_SPA to True for all tests.

@muffinresearch
Copy link
Contributor

@andymckay #393 has landed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants