Skip to content

Declaratively describe REST services with HTML to automatically generate JavaScript clients for those APIs.

Notifications You must be signed in to change notification settings

NorthernLogic/beth-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beth-rest

Declaratively describe REST services with HTML to automatically generate JavaScript clients for those APIs.

Example Usage

<beth-rest base-url="/api">
  <beth-resource name="post"></beth-resource>
</beth-rest>

By default Beth auto-binds itself to the window for easy access from JavaScript. The above service could be used this way:

Beth.post.create({
  title: 'My blog entry',
  body: 'lorem...'
}).then(function(post, err) {
  if (err) {
    // There was a problem.
  } else {
    // Everything happened okay, new Post's body is in `post` variable.
  }
});

About

Declaratively describe REST services with HTML to automatically generate JavaScript clients for those APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages