https://github.com/ovr/mapper-http
https://github.com/ovr/mapper-http
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ovr/mapper-http
- Owner: ovr
- Created: 2015-11-09T18:02:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-13T16:43:39.000Z (over 9 years ago)
- Last Synced: 2025-01-13T09:08:26.448Z (5 months ago)
- Language: PHP
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple HTTP Mapper
==================It's a simple async HTTP server (with async HTTP request to another REST API server)
Example:
You are getting an array of users from another service
and you need to response a JSON```
----> request
GET /feed?type=1-> Getting an array(1,2,...n) of new posts
-> Trying to get post from hot cache in memory else create an async request to another service api.local/post/1
```#### <--- response
```json
[
{
id: 1,
title: "..",
...
},
{
id: 2,
title: "..",
...
},
....
{
id: n,
title: "..",
...
},
]
```