danielgtaylor / danielgtaylor/apisprout

Support ETag and Last-Modified in Response

Open
#71 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
719
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Docker Image used: 6c07143937e57095d8478efc8ab7eab52b44e67c7673285f8c0a2bf4a7b137ad

```
openapi: 3.0.3
info:
title: test
version: '1.0'
servers:
- url: 'http://localhost:8000'
paths:
/test:
get:
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
default: 'true'
examples:
a:
value:
ok: true
headers:
ETag:
schema:
type: string
example: '"c561c68d0ba92bbeb8b0f612a9199f722e3a621a"'
Last-Modified:
schema:
type: string
example: Mon, 18 Jul 2016 02:36:04 GMT
```

Will return:

```
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Etag: string
Last-Modified: string
Date: Thu, 23 Apr 2020 22:38:43 GMT
Content-Length: 16
```

Either the example values should be provided or (better) real values should be generated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.