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 needs to be reviewed #32

Open
subnetmarco opened this issue Jun 18, 2015 · 1 comment
Open

API needs to be reviewed #32

subnetmarco opened this issue Jun 18, 2015 · 1 comment

Comments

@subnetmarco
Copy link
Member

  • Responses are JSON values, not JSON objects
  • Documentation is lacking, for example to create a bin the doc first says to make a request to /bin/create/view and then the example makes a request to /bin/create.
  • The response headers are taking over:
Date: Thu, 18 Jun 2015 01:13:32 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 38
Connection: keep-alive
Set-Cookie: __cfduid=dcb1d29558529df081a2c4c362473dd4a1434590012; expires=Fri, 17-Jun-16 01:13:32 GMT; path=/; domain=.mockbin.org; HttpOnly
Vary: X-HTTP-Method-Override, Accept, Accept-Encoding
Location: /bin/923ab34b-b556-4364-8781-fe57082756e5
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST
Access-Control-Allow-Headers: host,connection,accept-encoding,x-forwarded-for,cf-ray,x-forwarded-proto,cf-visitor,user-agent,accept,content-type,cf-connecting-ip,x-request-id,x-forwarded-port,via,connect-time,x-request-start,total-route-time,content-length
Access-Control-Allow-Credentials: true
Etag: W/"26-f46d0bba"
Via: 1.1 vegur
Server: cloudflare-nginx
CF-RAY: 1f8321d9d0a31fee-DFW

Might be a Clouflare problem too.

@subnetmarco subnetmarco changed the title API needs to be reviews API needs to be reviewed Jun 18, 2015
@sonicaghi
Copy link
Member

@ahmadnassri is losing karma points...

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

No branches or pull requests

2 participants