kahmali / meteor-restivus

REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
MIT License
544 stars 117 forks source link

Can not call API to Meteor GraphQL #283

Closed linhnh123 closed 6 years ago

linhnh123 commented 6 years ago

I setup GraphQL in Meteor server, and I created a simple API. I can not call to this api. Please help.

This is API setup:

screen shot 2017-08-10 at 11 56 45 am

This is command line to call api: curl -X POST http://localhost:3000/api/status

This is result:

screen shot 2017-08-10 at 11 58 54 am
linhnh123 commented 6 years ago

I fixed it. The reason is Meteor server and GraphQL are running in the same port (port 3000). We need to change port of GraphQL to other port (for example: 3002, etc). Close this issue.