Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	pom.xml
#	restdoc-helper-plugin/pom.xml
#	restdoc-helper-plugin/src/main/java/com/pconil/restdoc/AbstractParser.java
#	restdoc-helper-plugin/src/site/markdown/README.md
#	restdoc-helper-plugin/src/test/java/com/pconil/restdoc/Annotation2JavaParserTest.java
#	restdoc-helper-plugin/src/test/java/com/pconil/restdoc/ParserTest.java
#	restdoc-helper-plugin/src/test/java/com/pconil/restdoc/model/Class1DTO.java
  • Loading branch information
Patrice Conil committed Dec 1, 2016
2 parents 03b308d + 314ae01 commit 5d09e19
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.pconil.restdoc.otmllive.com.pconil.restdoc.model;

import org.springframework.restdocs.payload.FieldDescriptor;
import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWithPath;

public class ChannelFieldDescriptor {
public static FieldDescriptor[] fdChannel = new FieldDescriptor[] {
fieldWithPath("id").description("Identifier of the channel (Corresponds to the EPG identifier)"),
fieldWithPath("name").description("Name of the channel"),
fieldWithPath("zappingNumber").description("Code used to zap on the channel (on a STB ZE)"),
fieldWithPath("slogan").description("The channel slogan (used in case of no EPG description)"),
fieldWithPath("catchupId").description("The associated catchup channel identifier"),
fieldWithPath("bouquets").description("List of bouquets linked to the channel (PA_xxx)"),
fieldWithPath("links").description("List of links which points to entity in relation with the current channel (For now, points to the list of programs for the whole day)"),
fieldWithPath("logos").description("List of logos available for the given channel"),
fieldWithPath("terminalModels").description("List of terminal models available for the given channel") };


public static FieldDescriptor[] fdChannelList = new FieldDescriptor[] {
fieldWithPath("[].id").description("Identifier of the channel (Corresponds to the EPG identifier)"),
fieldWithPath("[].name").description("Name of the channel"),
fieldWithPath("[].zappingNumber").description("Code used to zap on the channel (on a STB ZE)"),
fieldWithPath("[].slogan").description("The channel slogan (used in case of no EPG description)"),
fieldWithPath("[].catchupId").description("The associated catchup channel identifier"),
fieldWithPath("[].bouquets").description("List of bouquets linked to the channel (PA_xxx)"),
fieldWithPath("[].links").description("List of links which points to entity in relation with the current channel (For now, points to the list of programs for the whole day)"),
fieldWithPath("[].logos").description("List of logos available for the given channel"),
fieldWithPath("[].terminalModels").description("List of terminal models available for the given channel") };


}

0 comments on commit 5d09e19

Please sign in to comment.