Update references

This commit is contained in:
Alexander Nozik 2023-10-08 13:17:22 +03:00
parent b0e181aaae
commit af71164b7c
Signed by: altavir
GPG Key ID: B10A55DCC7B9AEBB
2 changed files with 10 additions and 5 deletions

View File

@ -5,6 +5,7 @@ import java.util.concurrent.ConcurrentHashMap
/** /**
* Смотреть доклад тут: https://jokerconf.com/talks/726fdf3540524be28c8f5901c1800583 * Смотреть доклад тут: https://jokerconf.com/talks/726fdf3540524be28c8f5901c1800583
* Репозиторий тут: https://github.com/point-rar/Thread-Wars-WikiGame/blob/main/src/main/kotlin/rar/kotlin/repository/WikiGameCoroImpl.kt
*/ */
interface WikiGame { interface WikiGame {

View File

@ -2,11 +2,15 @@ import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json import kotlinx.serialization.json.Json
import java.net.URI import java.net.URI
const val token = "********" /**
const val BASE_API_URL = "http://gitlab.com/api/v4" * Исходник: https://gist.github.com/Mapkn3/4e8407bf6de64271f4367972024fe64d
const val SECURITY_QUERY_PARAM = "private_token=${token}" */
const val GET_PROJECT_BY_NAME_PATH_TEMPLATE = "$BASE_API_URL/projects?search=%s&$SECURITY_QUERY_PARAM"
const val GET_ALL_TAGS_BY_PROJECT_ID_PATH_TEMPLATE = "$BASE_API_URL/projects/%d/repository/tags?$SECURITY_QUERY_PARAM" private const val token = "********"
private const val BASE_API_URL = "http://gitlab.com/api/v4"
private const val SECURITY_QUERY_PARAM = "private_token=${token}"
private const val GET_PROJECT_BY_NAME_PATH_TEMPLATE = "$BASE_API_URL/projects?search=%s&$SECURITY_QUERY_PARAM"
private const val GET_ALL_TAGS_BY_PROJECT_ID_PATH_TEMPLATE = "$BASE_API_URL/projects/%d/repository/tags?$SECURITY_QUERY_PARAM"
fun main() { fun main() {
val json = Json { ignoreUnknownKeys = true } val json = Json { ignoreUnknownKeys = true }