<commit_before><link rel="import" href="../../../../bower_components/polymer/polymer.html">

<link rel="import" href="../../../../bower_components/things-ajax/things-ajax.html">
<link rel="import" href="../../../../bower_components/things-i18n-msg/things-i18n-msg.html">
<link rel="import" href="../../../../bower_components/things-form/things-search-form.html">
<link rel="import" href="../../../../bower_components/things-grid/things-resource-grid.html">
<link rel="import" href="../../../../bower_components/things-grid/things-basic-grid.html">

<link rel="import" href="../../things-content/things-resource-menu-content-behavior.html">

<link rel="import" href="./things-base-rest-detail-api.html">

<!--
서버에서 제공하는 모든 REST API를 확인 및 테스트 기능을 제공하는 화면 셋 
-->

<dom-module id="things-base-rest">
	<template>
		<style>
			:host {
				display: block;
				@apply(--layout-vertical)
				@apply(--layout-flex)
			}
			
			.subtitle: before {
				content: '';
				@apply(--things-subtitle-icon);
			}

			.subtitle {
				@apply(--things-default-padding);
				padding-bottom: 7px;
				@apply(--things-subtitle);
			}

			things-resource-grid {
				@apply(--things-default-padding);
				padding-top:0px;
				padding-bottom:0px;
			}

			.rest-main {
				@apply(--layout-flex);
				min-height: 300px;
			}
			
			.rest-api {
				@apply(--layout-horizontal);
				@apply(--layout-flex);
			}

			.api-list {
				@apply(--layout-vertial);
				@apply(--layout-flex);
			}

			.api-params {
				@apply(--layout-vertial);
				@apply(--layout-flex);
			}			
		</style>

		<things-ajax 
			auto
			id="resource-meta"
			method="GET"
			resource-url="[[menuMetaUrl]]"
			last-response="{{metaData}}">
		</things-ajax>

		<things-ajax 
			auto
			id="api-search"
			method="GET"
			last-response="{{apiResponse}}">
		</things-ajax>

		<things-ajax 
			auto
			id="api-detail-search"
			method="GET"
			last-response="{{apiDetailResponse}}">
		</things-ajax>

		<!-- TOP -->
		<things-search-form 
			id="search-form"
			title="[[menuInfo.title]]"
			form-fields="[[searchFormFields]]" 
			action-url="[[menuInfo.resource_url]]" 
			page="{{page}}"
			per-page="[[perPage]]"
			last-response="{{lastResponse}}">
		</things-search-form>

		<things-resource-grid 
			id="grid"
			class="rest-main"
			config="[[gridConfig]]"
			model="[[gridModel]]" 
			columns="[[gridColumns]]"
			data="[[items]]"
			buttons="[[buttons]]"
			fixed-column-count="3"
			export-file-name="[[menuInfo.title]]"
			export-sheet-name="[[menuInfo.title]]"
			!paginatable>
		</things-resource-grid>

		<!-- BOTTOM -->
		<div id="bottom" class="rest-api">

			<!-- BOTTOM LEFT -->
			<div class="api-list layout vertical">
				<span class="subtitle"><things-i18n-msg msgid="title.api_list">API List</things-i18n-msg></span>

				<things-basic-grid 
					id="api-list"
					class="flex"
					model="[[apiGridModel]]" 
					columns="[[apiGridColumns]]"
					fixed-column-count="2"
					data="[[apiItems]]">
				</things-basic-grid>
			</div>

			<!-- BOTTOM RIGHT -->
			<div class="api-params layout vertical">
				<things-base-rest-detail-api 
					id="api-detail" 
					class="flex"
					resource="[[apiDetailResponse]]">
      	</things-base-rest-detail-api>
			</div>
		</div>
	</template>
<commit_msg>rest api layout 구분선 수정<commit_after><link rel="import" href="../../../../bower_components/polymer/polymer.html">

<link rel="import" href="../../../../bower_components/things-ajax/things-ajax.html">
<link rel="import" href="../../../../bower_components/things-i18n-msg/things-i18n-msg.html">
<link rel="import" href="../../../../bower_components/things-form/things-search-form.html">
<link rel="import" href="../../../../bower_components/things-grid/things-resource-grid.html">
<link rel="import" href="../../../../bower_components/things-grid/things-basic-grid.html">

<link rel="import" href="../../things-content/things-resource-menu-content-behavior.html">

<link rel="import" href="./things-base-rest-detail-api.html">

<!--
서버에서 제공하는 모든 REST API를 확인 및 테스트 기능을 제공하는 화면 셋 
-->

<dom-module id="things-base-rest">
	<template>
		<style>
			:host {
				display: block;
				@apply(--layout-vertical)
				@apply(--layout-flex)
			}
			
			.subtitle:before {
				content: '';
				@apply(--things-subtitle-icon);
			}

			.subtitle {
				@apply(--things-default-padding);
				padding-bottom: 7px;
				@apply(--things-subtitle);
			}

			things-resource-grid {
				@apply(--things-default-padding);
				padding-top:0px;
				padding-bottom:0px;
			}

			.rest-main {
				@apply(--layout-flex);
				min-height: 300px;
			}
			
			.rest-api {
				@apply(--layout-horizontal);
				@apply(--layout-flex);
			}

			.api-list {
				@apply(--layout-vertial);
				@apply(--layout-flex);
			}

			.api-params {
				@apply(--layout-vertial);
				@apply(--layout-flex);
			}			
		</style>

		<things-ajax 
			auto
			id="resource-meta"
			method="GET"
			resource-url="[[menuMetaUrl]]"
			last-response="{{metaData}}">
		</things-ajax>

		<things-ajax 
			auto
			id="api-search"
			method="GET"
			last-response="{{apiResponse}}">
		</things-ajax>

		<things-ajax 
			auto
			id="api-detail-search"
			method="GET"
			last-response="{{apiDetailResponse}}">
		</things-ajax>

		<!-- TOP -->
		<things-search-form 
			id="search-form"
			title="[[menuInfo.title]]"
			form-fields="[[searchFormFields]]" 
			action-url="[[menuInfo.resource_url]]" 
			page="{{page}}"
			per-page="[[perPage]]"
			last-response="{{lastResponse}}">
		</things-search-form>

		<paper-card elevation="1">
			<things-resource-grid 
				id="grid"
				class="rest-main"
				config="[[gridConfig]]"
				model="[[gridModel]]" 
				columns="[[gridColumns]]"
				data="[[items]]"
				buttons="[[buttons]]"
				fixed-column-count="3"
				export-file-name="[[menuInfo.title]]"
				export-sheet-name="[[menuInfo.title]]"
				!paginatable>
			</things-resource-grid>
		</paper-card>

		<!-- BOTTOM -->
		<div id="bottom" class="rest-api">

			<!-- BOTTOM LEFT -->
			<paper-card class="api-list layout vertical" elevation="1">
				<span class="subtitle"><things-i18n-msg msgid="title.api_list">API List</things-i18n-msg></span>

				<things-basic-grid 
					id="api-list"
					class="flex"
					model="[[apiGridModel]]" 
					columns="[[apiGridColumns]]"
					fixed-column-count="2"
					data="[[apiItems]]">
				</things-basic-grid>
			</paper-card>

			<!-- BOTTOM RIGHT -->
			<paper-card class="api-params layout vertical" elevation="1">
				<things-base-rest-detail-api 
					id="api-detail" 
					class="flex"
					resource="[[apiDetailResponse]]">
      	</things-base-rest-detail-api>
			</paper-card>
		</div>
	</template>

{'fraction_non_alphanumeric': 0.21921108099969888, 'fraction_numerical': 0.005269497139415839, 'mean_word_length': 2.877991827203736, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4259866', 'n_tokens_mistral': 2989, 'n_tokens_neox': 2393, 'n_words': 310}