Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiyanbo/restful-hub
Helps you build a RESTful server of beauty
https://github.com/aiyanbo/restful-hub
Last synced: about 2 months ago
JSON representation
Helps you build a RESTful server of beauty
- Host: GitHub
- URL: https://github.com/aiyanbo/restful-hub
- Owner: aiyanbo
- License: apache-2.0
- Created: 2014-04-28T11:54:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-04T03:32:43.000Z (almost 10 years ago)
- Last Synced: 2023-03-24T02:27:25.811Z (almost 2 years ago)
- Language: Java
- Homepage:
- Size: 335 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
restful-hub
===========
[![Build Status](https://travis-ci.org/aiyanbo/restful-hub.svg?branch=master)](https://travis-ci.org/aiyanbo/restful-hub)Helps you build a RESTful server of beauty
###状态处理###
```js
Headers:
Location: http://~/$version/domain/:id
Body:
{
"uri": "http://~/$version/domain/:id",
"identity": "id",
"created_at": "created time"
}```
###HATEOAS###
```java
Success.Created.builder(args).link("http://~/$version/domain/:id", LinkRelation.SELF);
```###Using###
```java
Success.Created.build(args);
Success.Deleted.build(args);
Success.Updated.build(args);```
###错误处理###
```js
{
"message": "Error message",
"errors": [
{
"code": "error code",
"message": "exception details"
}
]
}```
###JAX-RS###
```java
context.register(RestfulhubFeature.class);
```