public interface SectionsApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<SectionResponse> |
createSection(SectionParams sectionParams)
部門の作成
<h2 id=\"\">概要</h2> <p>指定した事業所の部門を作成する</p> <h2 id=\"_2\">レスポンスの例</h2> <pre><code>// プレミアムプラン(個人)、ビジネスプラン(法人)、エンタープライズプラン(法人) { "section" : { "id" : 102, "company_id" : 1, "name" : "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123", "indent_count": 1, "parent_id": 101 } } // それ以外のプラン { "section" : { "id" : 102, "company_id" : 1, "name" : "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123" } }</code></pre>
|
io.reactivex.Completable |
destroySection(Integer id,
Integer companyId)
部門の削除
<h2 id=\"\">概要</h2> <p>指定した事業所の部門を削除する</p>
|
io.reactivex.Observable<SectionResponse> |
getSection(Integer id,
Integer companyId)
<h2 id=\"\">概要</h2> <p>指定した事業所の部門を参照する</p><h2 id=\"_2\">レスポンスの例</h2> <pre><code>// プレミアムプラン(個人)、ビジネスプラン(法人)、エンタープライズプラン(法人) { "section" : { "id" : 102, "company_id" : 1, "name" : "開発部門", "long_name": "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123", "indent_count": 1, "parent_id": 101 } } // それ以外のプラン { "section" : { "id" : 102, "company_id" : 1, "name" : "開発部門", "long_name": "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123" } }</code></pre>
|
io.reactivex.Observable<InlineResponse2009> |
getSections(Integer companyId)
部門一覧の取得
<h2 id=\"\">概要</h2> <p>指定した事業所の部門一覧を取得する</p> <h2 id=\"_2\">レスポンスの例</h2> <blockquote> <p>GET https://api.freee.co.jp/api/1/sections?company_id=1</p> </blockquote> <pre><code>// プレミアムプラン(個人)、ビジネスプラン(法人)、エンタープライズプラン(法人) { "sections" : [ { "id" : 101, "company_id" : 1, "name" : "開発部門", "long_name": "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123", "indent_count": 1, "parent_id": 11 }, ...
|
io.reactivex.Observable<SectionResponse> |
updateSection(Integer id,
SectionParams sectionParams)
部門の更新
<h2 id=\"\">概要</h2> <p>指定した事業所の部門を更新する</p><h2 id=\"_2\">レスポンスの例</h2> <pre><code>// プレミアムプラン(個人)、ビジネスプラン(法人)、エンタープライズプラン(法人) { "section" : { "id" : 102, "company_id" : 1, "name" : "開発部門", "long_name": "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123", "indent_count": 1, "parent_id": 101 } } // それ以外のプラン { "section" : { "id" : 102, "company_id" : 1, "name" : "開発部門", "long_name": "開発部門", "shortcut1" : "DEVELOPER", "shortcut2" : "123" } }</code></pre>
|
@Headers(value="Content-Type:application/json") @POST(value="api/1/sections") io.reactivex.Observable<SectionResponse> createSection(@Body SectionParams sectionParams)
sectionParams - 部門の作成 (optional)@DELETE(value="api/1/sections/{id}")
io.reactivex.Completable destroySection(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - (required)companyId - 事業所ID (required)@GET(value="api/1/sections/{id}")
io.reactivex.Observable<SectionResponse> getSection(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 部門ID (required)companyId - 事業所ID (required)@GET(value="api/1/sections") io.reactivex.Observable<InlineResponse2009> getSections(@Query(value="company_id") Integer companyId)
companyId - 事業所ID (required)@Headers(value="Content-Type:application/json")
@PUT(value="api/1/sections/{id}")
io.reactivex.Observable<SectionResponse> updateSection(@Path(value="id")
Integer id,
@Body
SectionParams sectionParams)
id - (required)sectionParams - 部門の更新 (optional)Copyright © 2020. All rights reserved.