Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Page not found with Grid API

Page not found with Grid API

Added by Christian Sicari about 6 years ago

I'm trying to use the Openproject api to extract the grid of the Cost Report. I registered the api key as mentioned in the guide, and I started with the example in the guide:

http://myinstallation.com/api/v3/grids?filters=[{ "page": { "operator": "=", "values": ["/my/page"] } }]

Passing the authentication token in the authentication section (i'm using Postman).

But i get: 404 Page not Found.

My installation: Docker container  openproject/community:8.2.0-psql


Replies (2)

RE: Page not found with Grid API - Added by Oliver Günther about 6 years ago

Hi Christian,

you're using 8.2.0 which does not include the new my page grid. It got added in 8.3.0. In comparison, here's the API result of this community for your account:

https://community.openproject.com/api/v3/grids?filters=%5B%7B%22scope%22:%7B%22operator%22:%22=%22,%22values%22:%5B%22/my/page%22%5D%7D%7D%5D

RE: Page not found with Grid API - Added by Christian Sicari about 6 years ago

Thank you very much, I runned a container with 8.3 version and it works.

Now in the page /projects/prova/cost_reports

I've that a grid with that: 

04/17/2019 OpenProject Admin Management Task #42: task none prova 5.00 hours 250.00 EUR

If I use http://mydomain/api/v3/grids?filters=[{ "page": { "operator": "=", "values": ["/projects/prova/cost_reports"] } }]

I get 

{
    "_type": "Collection",
    "total": 0,
    "count": 0,
    "pageSize": 30,
    "offset": 1,
    "_embedded": {
        "elements": []
    },
    "_links": {
        "self": {
            "href": "/api/v3/time_entries?offset=1&pageSize=30"
        },
        "jumpTo": {
            "href": "/api/v3/time_entries?offset=%7Boffset%7D&pageSize=30",
            "templated": true
        },
        "changeSize": {
            "href": "/api/v3/time_entries?offset=1&pageSize=%7Bsize%7D",
            "templated": true
        }
    }
}

I should see the formatted previous table, shouldn't I?

  • (1 - 2/2)
Loading...