File content¶
Read-only
This resource type refers to a feed file’s content.
In other Collection+JSON resource representations this resource type is linked by any link relation with attribute:
"rel": "file_resource"
-
GET
/api/v1/files/
(int: file_id)/filename/
¶ Synopsis: Gets the content of a feed file. Example request:
GET /api/v1/files/30/new_out.txt HTTP/1.1 Host: localhost:8000 Accept: */*
Example response:
HTTP/1.1 200 OK Allow: GET Content-Type: */* This is the content of this file.
Request Headers: - Accept – /
Response Headers: - Content-Type – /
Status Codes: - 200 OK – no error
- 401 Unauthorized – authentication credentials were not provided
- 403 Forbidden – you do not have permission to perform this action
- 404 Not Found – not found