Download
Desenvolver
Conta
Download
Desenvolver
Login
Forgot Account/Password
Criar Conta
Linguagem
Ajuda
Linguagem
Ajuda
×
Login
Nome de acesso
Senha
×
Forgot Account/Password
Estado tradução de Português
Category:
Software
People
PersonalForge
Magazine
Wiki
Pesquisa
OSDN
>
Pesquisar Software
>
Internet
>
WWW/HTTP
>
Dynamic Content
>
CMS
>
ぺったんR
>
Wiki
>
ProviderStatusesShow
ぺったんR
Fork
pettanr
clientJs
Descrição
Project Summary
Developer Dashboard
Página da Web
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
Histórico
Downloads
List of Releases
Stats
Código Fonte
Code Repository list
Git
pettanr
clientJs
Tíquete
Ticket List
Milestone List
Type List
Lista de componentes
List of frequently used tickets/RSS
Submit New Ticket
Documents
FrontPage
Title index
Recent changes
Communication
Fóruns
List of Forums
Developers (1347)
Ajuda (1)
公開討議 (1)
Mailing Lists
list of ML
News
edit
|
Title Index
|
Recent Changes
|
最近の更新 (Recent Changes)
2015-10-25
YasushiIto
2015-10-19
Event
FrontPage
2015-09-19
PettanCommonLicense
2015-08-25
HowToSetOmniAuth
2015-08-19
WhatsPettan
2015-08-07
HowToUseHeroku
2015-08-04
HowToInstall
2015-07-12
HowToInstallRmagick
2015-05-10
AboutYasapp
2015-04-02
ResourcePicturePictureSpec
ReferenceIndex
2015-02-07
ForDevelopers
2015-01-16
PanelEditor
2015-01-12
AboutManifest
2014-12-19
ManifestModel
2014-10-18
ManifestListGroup
ManifestSystemResources
2014-10-11
OriginalPictureSpec
2014-09-29
PictureSpec
2014-08-29
ManifestController
2014-08-27
ManifestProfiler
2014-07-13
SkypeMeeting
2014-06-21
ResourcePictureSpec
LicenseGroupSpec
2014-06-20
PictureModel
ResourcePictureModel
2014-06-19
OriginalPictureLicenseSpec
OriginalPictureLicenseGroupSpec
2014-06-16
PetanizeTemplate
Últimas Arquivo Comunicados
This Project Has Not Released Any Files
Wikiガイド(Guide)
Wikiの文法
リンクの種類と文法
ブロックプロセッサ
拡張文法
サイドバー
プロジェクトWikiでの広告設定
サイドバー (Side Bar)
このサイドバーについて
このサイドバーの編集
show @
ProviderStatusesController
借受状況詳細
url
http://localhost:3000/provider_statuses/1
http://localhost:3000/provider_statuses/1.json
解説
管理者が借受状況の情報を得るための機能。
セッションまたは認証トークンから管理者アカウントを特定する。
借受状況モデルに単体取得を問い合わせ、その結果を対象借受状況として取得する。
要求されたidと管理者アカウントを渡す。
取得した借受状況データを返す。
urlパラメータ
id
借受状況のid
POSTデータ
auth_token
外部からjsonで要求する場合、認証処置として認証トークンが必要。
戻り値
正常系
htmlのとき、ステータスコード200 OKとともに、テンプレートから起こしたページを返す。
jsonのとき、ステータスコード200 OKとともに、json構造のデータを返す。
出力フォーマットは借受状況モデルのjson一覧出力オプションに従う
参考:
ProviderStatusesShowView
例外系
管理者アカウントでサインインしてなかった。(Devise)
htmlなら、ステータスコード302 Foundを返すとともに、サインインを促すページ(/admins/sign_in)へ遷移する。
jsonなら、ステータスコード401 Unauthorizedを返すとともに、応答メッセージにUnauthorizedを返す。
対象借受状況が存在しなかった。(
ProviderStatusModel
)
htmlなら、例外404 not_foundを返す
jsonなら、例外404 not_foundを返す
対象借受状況に対する閲覧権限がなかった。(
ProviderStatusModel
)
例外403 forbiddenを返す
例外403 forbiddenを返す