Questions tagged [restivus]
13 questions
2
votes
3 answers
Error while instanciating Restivus "Cannot find name 'Restivus' "
I imported restivus using :
meteor add nimble:restivus
And while using Restivus I encounter this error on meteor startup :
"Cannot find name 'Restivus' ".
I can although GET requests but I wonder if it impacts the behavior of the app.
Here is…

Pierrick Brun
- 73
- 8
1
vote
1 answer
How can i get POST raw body in Meteor restivus?
How can i get POST raw body in Meteor restivus?
tried something, but it's not working.
this is the code.
if(Meteor.isServer) {
var Api = new Restivus({
useDefaultAuth: true
});
Api.addRoute('test', {authRequired: false}, {
…

kevin 00
- 11
- 1
1
vote
0 answers
Module.exports in meteor
I want to use oauth2-server in my meteor project which is an api provider implemented using restivus. In documentation for oauth2-server they specify to require the model in configuration which obviously need to export the model js file. How to use…

Deepak Jose
- 76
- 6
0
votes
0 answers
Multipart file uploading using meteor restivus
I am using Meteor-Restivus for exposing API Endpoints.
https://github.com/kahmali/meteor-restivus/
But here I am unable to upload Multipart File.
What I have tried so far is:
Api.addRoute('questions/:question/photo', {authRequired: true}, {
…

StormTrooper
- 1,731
- 4
- 23
- 37
0
votes
1 answer
How do I post a plain file buffer instead of binary-encoded-file when posting with nodejs/npm's request package?
I am using npm's request package to do a post of a file-buffer to a REST api written using meteor.js restivus package. My node.js client code that posts to the api is as follows:
url =…

yusha uzumo
- 211
- 1
- 4
- 15
0
votes
1 answer
First Logging in is not required when using meteor restivus
I am using meteor restivus to create a rest api. The issue I have is that the api does not force me to login to do posts and gets
My code is as follows:
Articles = new Mongo.Collection('articles');
if (Meteor.isServer) {
// Global API…

yusha uzumo
- 211
- 1
- 4
- 15
0
votes
0 answers
Optional authentication with Meteor Restivus REST API
I'm using Meteor 1.6 and Restivus v0.8.12 to define a few REST endpoints.
Restivus has only two options for authRequired:
true -> auth is required and API function isn't called otherwise
false -> authorization isn't performed even if credentials…

Hashcut
- 833
- 1
- 5
- 19
0
votes
1 answer
nimble-restivus package does not work in Meteor GraphQL
I setup GraphQL in Meteor server, and I created a simple API using nimble-restivus package. But I can not call to this API. Please help.
This is API setup:
var Api = new Restivus({
useDefaultAuth: true,
prettyJson: true,
});
…

linhnh
- 111
- 1
- 1
- 6
0
votes
1 answer
Restivus authentication for Meteor methods
I'm trying to make my meteor-app for REST services available. For this I use the package "Restivus" which also works just fine. But once I'd like to run a meteor method this.userId is undefined.
Api.addRoute('addArticle', {authRequired: true}, {
…

laren0815
- 265
- 1
- 5
- 22
0
votes
2 answers
Restivus return HTML template?
I'm trying to make an api for my METEOR application.
I looked at https://atmospherejs.com/simple/rest and https://atmospherejs.com/xcv58/collection-api but that didn't work.
Now i'm on restivus : https://atmospherejs.com/nimble/restivus
The problem…

Bloodbee
- 827
- 8
- 23
0
votes
1 answer
Not able to find Restivus after having added with meteor add nimble:restivus
I have a functioning Angular2-Meteor installation.
On top of this, I have installed Restivus via the command
meteor add nimble:restivus
The installation does not show any problem.
Following the example found on the Restivus page…

Picci
- 16,775
- 13
- 70
- 113
0
votes
2 answers
Restivus does not set up endpoint Meteor 1.4
I have trouble creating an API Endpoint in a Meteor 1.4.1 app using Restivus.
Here is my current code :
import { Restivus } from 'meteor/nimble:restivus'
import { Stripe } from '../stripe/stripe'
export const loadApi = function(){
…

Eric Burel
- 3,790
- 2
- 35
- 56
0
votes
1 answer
Meteor Restivus API call returns "Unauthorized"
I am trying to access Restivus API with Meteor user hashedToken
Here is my code:
Transfer= new Mongo.Collection("transfer");
var Api = new Restivus({
useDefaultAuth: true,
auth: {
token: 'auth.apiKey',
user: function () {
…

Anis D
- 761
- 11
- 25