https://github.com/rgplvr/echo-http
A simple dropwizard service just to echo the content which is saved in a file good to test the services
https://github.com/rgplvr/echo-http
backend echo-http echo-server frontend-testing mock mock-http mock-json-server mock-server
Last synced: 4 months ago
JSON representation
A simple dropwizard service just to echo the content which is saved in a file good to test the services
- Host: GitHub
- URL: https://github.com/rgplvr/echo-http
- Owner: rgplvr
- License: apache-2.0
- Created: 2018-06-30T15:02:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T03:22:35.000Z (about 3 years ago)
- Last Synced: 2024-05-28T21:50:24.005Z (over 1 year ago)
- Topics: backend, echo-http, echo-server, frontend-testing, mock, mock-http, mock-json-server, mock-server
- Language: Java
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# echo-http
How to start the echo-http application
---
1. Run `mvn clean install` to build your application
1. Start application with `java -jar target/echo-http-1.0-SNAPSHOT.jar`
#Posting an Api.
`curl -X POST \
http://localhost:8080/echo/admin/create \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: a0d2f715-f1ff-7617-911f-c20838440edf' \
-d '{
"headers":{
"auth":"authVal",
"raj":"rajval",
"content-type":"application/json"
},
"responseBody":"{\"raj\":\"raj\",\"test\":\"Test\"}",
"responseCode":"200",
"methodAllowed":["GET","POST"],
"latency":0,
"uri":"/user/getprofile1"
}'`
Please note queryparams are ignored. while creating the config
to get the api respose `http://localhost:8080/`