Sails version: 1.1.0
Node version: 8.11.3
NPM version: 6.1.0
DB adapter name: N/A
DB adapter version: N/A
Operating system: Ubuntu 18.04 64bit
Hi, I am facing blueprint api issue.
when I create Empty sails app and generate api using CLI
sails generate api Product
then get rest api like localhost:1337/product
But create sails app with Web App option and generate api using CLI, like:
sails generate api Product
I did not get any rest api
NB: I try change config/blueprint.js but did not work. Thank you
Hi @mahfuzur! It looks like you missed a step or two when you created your issue. Please edit your comment (use the pencil icon at the top-right corner of the comment box) and fix the following:
As soon as those items are rectified, post a new comment (e.g. “Ok, fixed!”) below and we'll take a look. Thanks!
*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact [email protected]
@mahfuzur I was able to reproduce this case myself, however after changing rest: false to rest: true then re-lifting sails and logging in to the example WebApp with login: [email protected] / pass: abc123 - the route to my api worked in the new WebApp. Have you tried this yet?
@johnabrams7 Thank you, now it works. After login blueprints API works.
Most helpful comment
@mahfuzur I was able to reproduce this case myself, however after changing
rest: falsetorest: truethen re-lifting sails and logging in to the example WebApp with login: [email protected] / pass: abc123 - the route to my api worked in the new WebApp. Have you tried this yet?