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

com.yahoo.elide.swagger.property.Relationship Maven / Gradle / Ivy

There is a newer version: 7.1.4
Show newest version
/*
 * Copyright 2016, Yahoo Inc.
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root for terms.
 */
package com.yahoo.elide.swagger.property;

import io.swagger.models.properties.ObjectProperty;
import io.swagger.models.properties.StringProperty;

/**
 * Represents a JSON-API resource identifier.
 */
public class Relationship extends ObjectProperty {

    /**
     * Constructs a singular resource identifier.
     * @param relationshipType the type of resource.
     */
    public Relationship(String relationshipType) {
        super();
        property("type", new StringProperty()._enum(relationshipType));
        property("id", new StringProperty());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy