package cz.inventi.inventiskeleton.data.common.remote

import cz.inventi.inventiskeleton.data.post.Post
import io.reactivex.Observable
import retrofit2.http.GET

/**
 * Created by tomas.valenta on 5/16/2017.
 */

interface RemotePlaceholderService {
    @GET("posts")
    fun postList(): Observable<List<Post>>

    @GET("post/{id}")
    fun post(postId: Int): Observable<Post>
}

package cz.inventi.inventiskeleton.data.common.remote

import cz.inventi.inventiskeleton.data.post.Post
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * Created by tomas.valenta on 5/16/2017.
 */

interface RemotePlaceholderService {
    @GET("posts")
    fun postList(): Observable<List<Post>>

    @GET("posts/{id}")
    fun post(@Path("id") id: Int): Observable<Post>
}

Fix route for single post
Fix route for single post

InventiDevelopment/AndroidSkeleton,InventiDevelopment/AndroidSkeleton