A Reverse Proxy that serves HTTP endpoints for gRPC Server https://github.com/subbuv26/image-array-grpc
Add a dummy Bearer token with prefix Bearer
GET localhost:8080/images
< HTTP/2 200
< content-type: application/json
< content-length: 116
< apigw-requestid: BjYDVgoOBcwEMTg=
< grpc-metadata-content-type: application/grpc
{
"Images": [
{
"url": "image.png",
"name": "profile",
"size": 1000
},
{
"url": "image2.png",
"name": "profile",
"size": 2000
}
]
}
GET localhost:8080/images/f2a5e510-ef20-4d60-a68f-b50baffdfae6
< HTTP/2 200
< content-type: application/json
< content-length: 116
< apigw-requestid: BjYDVgoOBcwEMTg=
< grpc-metadata-content-type: application/grpc
{
"url": "image2.png",
"name": "profile",
"size": 2000
}
POST localhost:8080/images/
{
"url": "image2.png",
"name": "profile",
"size": 2000
}
< HTTP/2 200
< content-type: application/json
< content-length: 116
< apigw-requestid: BjYDVgoOBcwEMTg=
< grpc-metadata-content-type: application/grpc
{
"id": "f2a5e510-ef20-4d60-a68f-b50baffdfae6"
}
DELETE localhost:8080/images/f2a5e510-ef20-4d60-a68f-b50baffdfae6
< HTTP/2 200
< content-type: application/json
< content-length: 116
< apigw-requestid: BjYDVgoOBcwEMTg=
< grpc-metadata-content-type: application/grpc
{
"success": true
}
- Please add a dummy
Bearer
token with a random value and prefixBearer
on every request