Professional Documents
Culture Documents
api-designer_ mulesoft
api-designer_ mulesoft
This repository has been archived by the owner on May 10, 2024. It is now read-only.
View license
Star Notifications
carowright last scope fix & update dist 1d5892f · 5 years ago
README License
https://github.com/mulesoft/api-designer 1/4
7/8/24, 11:45 AM GitHub - mulesoft/api-designer: A web editor for creating and sharing RAML API specifications
API Designer
gitter join chat
API Designer is a standalone/embeddable editor for RAML (RESTful API Modeling Language) written in JavaScript using Angular.JS.
By default, the editor uses an in-browser filesystem stored in HTML5 Localstorage.
Running Locally
api-designer
This will start a local designer instance using the in-browser filesystem.
Embedding
The following example details how to embed the API Designer:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>My App</title>
<link rel="stylesheet" href="styles/api-designer-vendor.css">
<link rel="stylesheet" href="styles/api-designer.css">
</head>
<body ng-app="ramlEditorApp">
<raml-editor></raml-editor>
<script src="scripts/api-designer-parser.js"></script>
<script>
if (window.Worker) {
// enable optional web worker for raml parsing
window.RAML.worker = new Worker('scripts/api-designer-worker.js#parser=./api-designer-parser.js&proxy=/proxy/');
}
</script>
<script src="scripts/api-designer-vendor.js"></script>
<script src="scripts/api-designer.js"></script>
<script>
// This part is needed only if you want to provide your own Persistance Implementation
// Angular Module must match "ramlEditorApp"
https://github.com/mulesoft/api-designer 2/4
7/8/24, 11:45 AM GitHub - mulesoft/api-designer: A web editor for creating and sharing RAML API specifications
return deferred.promise;
};
return deferred.promise;
};
return deferred.promise;
};
return deferred.promise;
};
return service;
}
angular.module('ramlEditorApp')
.config(function (fileSystemProvider) {
// Set myFileSystem as the filesystem to use
fileSystemProvider.setFileSystemFactory(myFileSystem);
});
</script>
<style>
html,
body {
height: 100%;
}
</style>
</body>
</html>
Contribution
If you want to contribute to this project, please read our contribution guide first.
https://github.com/mulesoft/api-designer 3/4
7/8/24, 11:45 AM GitHub - mulesoft/api-designer: A web editor for creating and sharing RAML API specifications
License
Copyright 2013 MuleSoft, Inc. Licensed under the Common Public Attribution License (CPAL), Version 1.0
Releases 38
v0.6.0 Latest
on Oct 15, 2019
+ 37 releases
Packages
No packages published
Contributors 36
+ 22 contributors
Languages
https://github.com/mulesoft/api-designer 4/4