-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
34 changed files
with
563 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
lapis2/src/main/kotlin/org/genspectrum/lapis/controller/Headers.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
package org.genspectrum.lapis.controller | ||
|
||
import org.springframework.http.MediaType | ||
|
||
object LapisHeaders { | ||
const val REQUEST_ID = "X-Request-ID" | ||
const val LAPIS_DATA_VERSION = "Lapis-Data-Version" | ||
} | ||
|
||
object LapisMediaType { | ||
const val TEXT_X_FASTA = "text/x-fasta" | ||
const val TEXT_CSV = "text/csv" | ||
const val TEXT_CSV_WITHOUT_HEADERS = "text/csv;$HEADERS_ACCEPT_HEADER_PARAMETER=false" | ||
const val TEXT_TSV = "text/tab-separated-values" | ||
const val APPLICATION_YAML = "application/yaml" | ||
const val TEXT_X_FASTA_VALUE = "text/x-fasta" | ||
val TEXT_X_FASTA = MediaType.parseMediaType(TEXT_X_FASTA_VALUE) | ||
const val TEXT_CSV_VALUE = "text/csv" | ||
const val TEXT_CSV_WITHOUT_HEADERS_VALUE = "text/csv;$HEADERS_ACCEPT_HEADER_PARAMETER=false" | ||
const val TEXT_TSV_VALUE = "text/tab-separated-values" | ||
const val APPLICATION_YAML_VALUE = "application/yaml" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.