Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilaborie/demo-feign
Demo for netflix feign API
https://github.com/ilaborie/demo-feign
Last synced: about 2 months ago
JSON representation
Demo for netflix feign API
- Host: GitHub
- URL: https://github.com/ilaborie/demo-feign
- Owner: ilaborie
- Created: 2015-10-31T12:51:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-09T06:13:13.000Z (about 9 years ago)
- Last Synced: 2024-04-17T05:32:31.464Z (9 months ago)
- Language: Java
- Size: 133 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Live coding demo for Feign (15min)
## Requirements
JDK 8 and maven 3.x## Build
```
$ mvn clean install
```## Server
```
java -jar fegin/target/server-1.0-SNAPSHOT.jar
```### A cat
```json
{
"id": "422f9dfb-a900-4c2e-8361-d99c37edc826",
"name": "Isis",
"race": "Sphynx"
}
```### List all cats
```
GET http://localhost:8000/cat
```### Get cat by ID
```
GET http://localhost:8000/cat/:id
```### Create cat
```
POST http://localhost:8000/cat/
{
"name": "Isis",
"race": "Sphynx"
}
```### Update a cat
```
PUT http://localhost:8000/cat/:id
{
"name": "Isis",
"race": "Sphynx"
}
```### Delete a cat
```
DELETE http://localhost:8000/cat/:id
```