(schemaID, identifier string)
| 194 | } |
| 195 | |
| 196 | func (gohanClientCLI *GohanClientCLI) getResourceIDForSchemaID(schemaID, identifier string) (string, error) { |
| 197 | relatedSchema, err := gohanClientCLI.getSchemaByID(schemaID) |
| 198 | if err != nil { |
| 199 | return "", err |
| 200 | } |
| 201 | return gohanClientCLI.getResourceID(relatedSchema, identifier) |
| 202 | } |
| 203 | |
| 204 | func (gohanClientCLI *GohanClientCLI) getResourceID(s *schema.Schema, identifier string) (string, error) { |
| 205 | url := fmt.Sprintf("%s%s/%s", gohanClientCLI.opts.gohanEndpointURL, s.URL, u.QueryEscape(identifier)) |
no test coverage detected