Skip to content

Instantly share code, notes, and snippets.

@hassansin
Created December 24, 2015 03:55
Show Gist options
  • Save hassansin/495ce4603f77682398a0 to your computer and use it in GitHub Desktop.
Save hassansin/495ce4603f77682398a0 to your computer and use it in GitHub Desktop.
Blueprint Circular Reference Error
FORMAT: 1A
HOST: https://api-sandbox.foxycart.com
# FoxyCart
# FoxyCart API Root [/]
## API starting point [GET]
+ Request
+ Headers
FOXY-API-VERSION: 1
Accept: application/hal+json
+ Response 200 (application/hal+json)
+ Attributes (HAL Resource)
# Data Structures
## HAL Resource (object)
### Properties
- `_embedded` (object)
- Properties
- *(Relation)* (array[HAL Resource])
## Relation (string)
HAL introduces for Link relation types an extended representation of RFC 5988:
{
"statusCode":400,
"message":"base type 'HAL Resource' circularly referencing itself",
"type":"parseError",
"location":[
{
"index":439,
"length":35
}
],
"line":31,
"code":4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment