Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
type RequestResult<Data> = Promise<{ response: Response; data: Data; }>; | |
type ApiV1UsersRegisterPostParams0 = { "body"?: { "username"?: string; "display_name"?: string; "password"?: string; "avatar_url"?: string; }; }; | |
type ApiV1UsersRegisterPostAddedParams0 = { "header"?: { "accept": "application/json"; "Content-Type": "text/plain"; }; }; | |
type ApiV1UsersRegisterPostResult0 = RequestResult<{ "id"?: string; "username"?: string; "display_name"?: string; "avatar_url"?: string; }>; | |
/** | |
* Creates a user. | |
*/ | |
export function apiV1UsersRegisterPost(params: ApiV1UsersRegisterPostParams0 & ApiV1UsersRegisterPostAddedParams0): ApiV1UsersRegisterPostResult0; |
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
type RequestResult<Data> = Promise<{ response: Response; data: Data; }>; | |
type ApiV1UsersRegisterPostParams0 = { "body"?: { "username"?: string; "display_name"?: string; "password"?: string; "avatar_url"?: string; }; }; | |
type ApiV1UsersRegisterPostAddedParams0 = { "header"?: { "accept": "application/json"; "Content-Type": "text/plain"; }; }; | |
type ApiV1UsersRegisterPostResult0 = RequestResult<{ "id"?: string; "username"?: string; "display_name"?: string; "avatar_url"?: string; }>; | |
/** | |
* Creates a user. | |
*/ | |
export function apiV1UsersRegisterPost(params: ApiV1UsersRegisterPostParams0 & ApiV1UsersRegisterPostAddedParams0): ApiV1UsersRegisterPostResult0; |
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
type RequestResult<Data> = Promise<{ response: Response; data: Data; }>; | |
type ApiV1UsersRegisterPostParams0 = { "body"?: { "username"?: string; "display_name"?: string; "password"?: string; "avatar_url"?: string; }; }; | |
type ApiV1UsersRegisterPostAddedParams0 = { "header"?: { "accept": "application/json"; "Content-Type": "text/plain"; }; }; | |
type ApiV1UsersRegisterPostResult0 = RequestResult<{ "id"?: string; "username"?: string; "display_name"?: string; "avatar_url"?: string; }>; | |
/** | |
* Creates a user. | |
*/ | |
export function apiV1UsersRegisterPost(params: ApiV1UsersRegisterPostParams0 & ApiV1UsersRegisterPostAddedParams0): ApiV1UsersRegisterPostResult0; |
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
// Crowd Parlay API 1.0 | |
// --- | |
// This file is automatically generated by openapi with preset openapi-preset-effector | |
// Do not edit this file directly. Instead open openapi config file and follow the link in "file" | |
import { createEffect } from 'effector-root'; | |
import * as typed from 'typed-contracts'; | |
import { fetchFx } from '../lib/fetch'; | |
//#region prebuilt code | |
const custom = { any: (valueName: string, value: unknown): any => value } |
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
// Crowd Parlay API 1.0 | |
// --- | |
// This file is automatically generated by openapi with preset openapi-preset-effector | |
// Do not edit this file directly. Instead open openapi config file and follow the link in "file" | |
import { createEffect } from 'effector'; | |
import * as typed from 'typed-contracts'; | |
import { requestFx } from './request'; | |
//#region prebuilt code | |
const custom = { any: (valueName: string, value: unknown): any => value } |
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
public async Task Update_Positive(){ | |
var registerRequest = new Register.Command("zanli_0", "Степной ишак", "qwerty123!", avatarUrl: null); var registerMessage = await _client.PostAsJsonAsync("/api/v1/users/register", registerRequest); | |
var registerResponse = await registerMessage.Content.ReadFromJsonAsync<Register.Response>()!; | |
var data = new Dictionary<string, string> { | |
{ "grant_type", "password" }, { "username", "zanli_0" }, | |
{ "password", "qwerty123!" } }; | |
var exchangeMessage = await _client.PostAsync("~/connect/token") _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token); | |
var updateRequest = new Update.Command( | |
registerResponse!.Id, Username: "akavi", | |
DisplayName: "Akavi", AvatarUrl: "https://example.com/avatar.jpg", |
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
#include <iostream> | |
#include <ctime> | |
#include <cstdio> | |
#define n 20 | |
using namespace std; | |
void input(int k, int* a); |
OlderNewer