All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.intesens.kinto_http.ENDPOINTS Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package com.intesens.kinto_http;

/**
 * Created by amalle on 16/09/16.
 * Endpoints templates
 */
public enum ENDPOINTS {
    ROOT(""),
    BATCH(ROOT.path + "/batch"),
    PERMISSIONS(ROOT.path + "/permissions"),
    BUCKETS(ROOT.path + "/buckets"),
    BUCKET(BUCKETS.path + "/{bucket}"),
    HISTORY(BUCKET.path + "/history"),
    COLLECTIONS(BUCKET.path + "/collections"),
    COLLECTION(COLLECTIONS.path + "/{collection}"),
    GROUPS(BUCKET.path + "/groups"),
    GROUP(GROUPS.path + "/{group}"),
    RECORDS(COLLECTION.path + "/records"),
    RECORD(RECORDS.path + "/{record}"),
    ATTACHMENT(RECORD.path + "/attachment");

    private String path;

    ENDPOINTS(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy