-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
Previously, it was not possible to check request/response bodies samples in API documentation. This commit solves this error by refactoring the API documentation by using yaml for all api schemas/samples and decomposition of the open-api.yaml file. - decompose the mod-search.yaml file. - move all the paths into separate yaml files with corresponded folders inside paths folder. - move all the parameters into separate yaml files inside the parameters folder. - create yaml versions for all the examples. - create yaml versions for all the schemas. - delete example files with sample extension. - delete schemas files with json extension. Closes MSEARCH-546.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.folio.search.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ResourceId { | ||
|
||
private String id; | ||
|
||
public ResourceId id(String id) { | ||
this.id = id; | ||
return this; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.folio.search.model; | ||
|
||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ResourceIds { | ||
|
||
private Integer totalRecords; | ||
private List<ResourceId> ids; | ||
|
||
public ResourceIds totalRecords(Integer totalRecords) { | ||
this.totalRecords = totalRecords; | ||
return this; | ||
} | ||
|
||
public ResourceIds ids(List<ResourceId> ids) { | ||
this.ids = ids; | ||
return this; | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.