dreamfactorysoftware / angular-sdk Goto Github PK
View Code? Open in Web Editor NEWAn address book app for AngularJS showing user registration, user login, and CRUD
An address book app for AngularJS showing user registration, user login, and CRUD
Now, when I try to add a contact or a group, the POST request is sent but the response is a 400 with the message: No record(s) detected in request.
The current version of the sdk still uses Angular 1.3 which is quite old. I believe we should upgrade it to 1.6 which has lot of awesome support like components and other fixes.
Components is the feature why I believe we should upgrade this sdk, where we can show some good examples of Angular Components communicating with DF api.
Probably same type of error as in dreamfactorysoftware/javascript-sdk#1
I just started playing with dreamfactory and imported the angular app and think I have everything set up OK. The registration/login page shows but app.css is not used because it was sent using "text/html" and not "text/css" as it should.
Chrome reports Resource interpreted as Stylesheet but transferred with MIME type text/html:
Hi guys
seems like there is a typos in this description
angular.module('your-app', [ 'ngResource' ])
.factory('Model', [
'$resource',
function ($resource) {
return $resource('/api/v2/_table/Model', {
query: {
method: 'GET',
isArray: false // true if response is an array
},
create: {
method: 'POST',
// url: '/api/v2/Model/create' // You can provide different urls for different CRUD operations
},
update: {
method: 'PUT'
},
remove: {
method: 'DELETE'
}
})
}
])
Should be
return $resource('/api/v2/_table/Model', {}, {
otherwise we will have error
Error: [$resource:badcfg] Error in resource configuration for action
query
. Expected response to contain an array but got an object
Example:
Searching for "an" in the Address book returns more hits than displayed on the first page.
Clicking on "NEXT" clears the filtered list and displays the "normal" unfiltered page 2.
Is this behaviour wanted?
Authorization fails, same error and details as for the javascript-sdk example. (Existing user details confirmed via dreamfactory interface, but rejected at login).
ajax post request to:
https://.enterprise.dreamfactory.com/api/v2/user/session/
params include username and password.
There must be some extra config step required?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.