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

Restful HTTP Endpoint #306

Open
2 tasks
chpapa opened this issue Sep 4, 2017 · 4 comments
Open
2 tasks

Restful HTTP Endpoint #306

chpapa opened this issue Sep 4, 2017 · 4 comments

Comments

@chpapa
Copy link

chpapa commented Sep 4, 2017

py-skygear have a restful resources shorthand: https://docs.skygear.io/guides/cloud-function/restful-http-endpoint/python/

skygear-js cloud functions would better have a counter part for consistency.

  • Skygear SDK Date/Version:
  • JS runtime:
  • Skygear Server Date/Version:
  • Is this a regression?
  • Attached logs, screenshots

Expected Results

skygear.restful(func_index, func_create, func_delete, func_update, func_get)

Actual Results

No such function

@chpapa
Copy link
Author

chpapa commented Sep 4, 2017

@rickmak you mentioned there are internal code, can you post it here for reference?

@cheungpat
Copy link
Contributor

Let’s open source the restful API from skygear-cms and put it here?

https://github.com/oursky/skygear-cms/blob/master/lib/restful.js

@chpapa
Copy link
Author

chpapa commented Sep 4, 2017

Let’s open source the restful API from skygear-cms and put it here?

https://github.com/oursky/skygear-cms/blob/master/lib/restful.js

Great, I think that should be exactly what @rickmak mentioned.

@rickmak
Copy link
Member

rickmak commented Sep 4, 2017

Let me paste the code here for reference before we have time to polish that. https://gist.github.com/rickmak/c6ded242ad149d968f25c6686cc2a533

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

No branches or pull requests

3 participants