https://github.com/4lessandrodev/post-back-dev
A simple app to test post back
https://github.com/4lessandrodev/post-back-dev
post-back testing
Last synced: about 1 year ago
JSON representation
A simple app to test post back
- Host: GitHub
- URL: https://github.com/4lessandrodev/post-back-dev
- Owner: 4lessandrodev
- Created: 2022-08-11T16:45:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T21:10:53.000Z (over 3 years ago)
- Last Synced: 2025-01-07T14:23:46.807Z (over 1 year ago)
- Topics: post-back, testing
- Language: JavaScript
- Homepage: https://postback-4dev.onrender.com
- Size: 166 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Post Back Testing
A simple way to test your post back
- Testing if api is online
```sh
$ curl https://postback-4dev.onrender.com
```
- Call the public end point to save your data
- Provide any string as param to identify your temp database
- Body must be json object
```sh
$ curl -X POST https://postback-4dev.onrender.com/your-id \
-H "Content-Type: application/json" \
-d '{ "data": "hello world" }'
```
- Provide your key to get the data.
- It will be available for only 5 minutes
```sh
$ curl https://postback-4dev.onrender.com/your-id
```
---
## Example:
### Before call end-point. Data is null
In this example, the key "key-01" was used, but you can use any value.

### After call end-point with data
So we are pretty sure the postback was called.

> If you call the "endpoint" with the same id multiple times, all data will be stored in the same temp database.